Facebook API login fails with FB app installed on phone

前端 未结 5 2503
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 16:10

I am building an app, which is going to have support for facebook. I have downloaded facebook API and their sample called \"Hackbook\" from original Git repos. The problem i

5条回答
  •  失恋的感觉
    2020-12-02 16:35

    In my case the problem was that the user-login gets cancelled when the facebook app is installed on the device even after generating right keys.

    I added following line before login and it works great.

    LoginManager.getInstance().logOut();
    

提交回复
热议问题