Reputation: 1851
I have a callback.php file that gets called by facebook and the update is stored in $updates. I want to display the contents of $updates on the webpage every time $updates changes. How can i do this? I have heard about Comet and Ajax.. what is the best way to go about doing this?
Upvotes: 0
Views: 264
Reputation: 10848
It seems you need the Real time update Graph API from Facebook.
Upvotes: 0
Reputation: 19750
Easy: JS setinterval, poll server for updates every x seconds. Harder: HTML5 Websockets (not that hard when you get into it though).
Upvotes: 1