How to display facebook real time update on the browser
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?
Easy: JS setinterval, poll server for updates every x seconds. Harder: HTML5 Websockets (not that hard when you get into it though).
It seems you need the Real time update Graph API from Facebook.
精彩评论