Scripts can be written, politicians have basically been nothing but actors for years as it is. It wouldn't be hard to control social media accounts and they all have handlers. Hillary even wore an earpiece for the debates.
I bet this is what POTUS was talking about when saying that BO knew something about Biden that was keeping him from endorsing.