开发者

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

开发者 https://www.devze.com 2023-03-18 15:28 出处:网络
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:

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

精彩评论

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

关注公众号