开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜