- Home /
Check to see if facebook user has logged into device
I am integrating Facebook into my game, but it is a precondition for Facebook Composer that the user has logged in their details into their device. A user can use and login to Facebook without having logged into their facebook section of their phone. I would like to know how I can check to see if the user has logged into the Facebook section of their device.
Answer by Swaminathan · Mar 05, 2014 at 10:40 AM
Try FB.IsLoggedIn() which returns the boolean value.
if it is true then user had logged in to facebook,
if it is false then user didn't logged in to facebook.
you can watch it by displaying FB.IsLoggedIn() in GUI.Text
try this code.
public GUIText FB_check;
FB_check.text = "FB Status"+FB.IsLoggedIn();
Your answer
Follow this Question
Related Questions
Facebook login crash on Android. FB.Login 2 Answers
unishare help!!!! 1 Answer
Facebook Unity SDK login permission request pop up for authorized user 0 Answers
Facebook integration problem 1 Answer
Facebook Unity SDK Auto Login not works? 0 Answers