Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get list of current online users of a facebook application?

I am trying to create ajax based chat for my application users; I need to get list of All currently online users of the application ..Is there a way to retrieve such a list with facebook aPI? if not how can I implement that?

I appreciate your valuable suggestions..

like image 410
byasker Avatar asked Nov 19 '25 06:11

byasker


1 Answers

You can get a user's online presence via an FQL Query but there is a little bit of a delay when a user changes status.

First, you need to request online_presence permission (https://developers.facebook.com/docs/reference/api/permissions/)

Next user FQL to query the user table for 'online_presence'. https://developers.facebook.com/docs/reference/fql/user/

like image 190
Constantin Koumouzelis Avatar answered Nov 21 '25 18:11

Constantin Koumouzelis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!