开发者

How can I fetch my Facebook status (online or not) and manipulate it in PHP?

I开发者_Go百科'd like to display my chat status on my website, so I can tell my customers they can reach my through Facebook chat. Is there any way to do it?


Try this link: http://developers.facebook.com/docs/reference/rest/status.get/ or search on "make an FQL query (fql.query) on the status (FQL) table", taken from that same link, which should do you nicely.

I guess you could make a PHP script that uses the status.get or fql.query (on status table) to pull your status on page load. Maybe place it in the header/footer that is shared across your site. This way as soon a someone comes to your page they'll see your current FB status.


Why do you want to do that? Customers can't even use the chat if they aren't friend with you ? Just create an anchor from your facebook profile page

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜