Praveen
Praveen

Reputation: 1851

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?

Upvotes: 0

Views: 264

Answers (2)

Hoàng Long
Hoàng Long

Reputation: 10848

It seems you need the Real time update Graph API from Facebook.

Upvotes: 0

Christian
Christian

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

Related Questions