- Home /
How to show Facebook friends status (online or offline) in unity
I am getting the list of friend using Facebook api and showing them as custom list in my game.
Now i am trying to show online / offline status of all friends in my list but i am not getting any support from api . please any one can tell me..
Reference of friends status is Bowling King . in Bowling king they show friends status like online or time from last online.
Answer by HarshadK · May 12, 2017 at 06:10 AM
You are right, Facebook API does not provide online status of friends now. Facebook Graph API had this option earlier in V2 but they removed it in next versions. Since Facebook does not provide the online status, you need to keep track of it by yourself. You can keep track of login and logout behaviour of players and register these behaviour changes along with their date & time on your server. And then you can use this to check which friends of user are online and/or their last online time. Note that this will work only with the friends who are a user of your game and login to your game with Facebook.
Your answer
![](https://koobas.hobune.stream/wayback/20220612121830im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers