Android Facebook SDK: Check if the user is logged in or not

后端 未结 10 1484
南旧
南旧 2020-12-04 12:43

I\'m have a feature on my Android app where the user authorizes the app and shares a link.

I also need to give an option for the user to logout of facebook and I nee

10条回答
  •  囚心锁ツ
    2020-12-04 13:20

    I was using FB sdk for just for login.. Facebook developers reject my app, Because whenever user login, I send logout.. I dont matter user profile data... I just use FB for login.. FB tells if user login... dont send lgout...

    I find Hacking way... Now my app doesnot send logout whenever user login.... Whatever user login with,Google,Facebook,or normal.. When they click logout... In this three condition I use LoginManager.getInstance().logOut();

    No matter which platform they use... There is no crash :)

提交回复
热议问题