How to retrieve an Facebook-AuthToken from the accounts saved on Android

前端 未结 4 955
春和景丽
春和景丽 2020-12-10 07:29

I\'m trying to retrieve the AuthToken for Facebook (saved by Facebook for Android) by using the following piece of code.

AccountManager am =         


        
4条回答
  •  囚心锁ツ
    2020-12-10 07:48

    Try calling AccountManager.blockingGetAuthToken instead. If that works, then there's something more interesting at fault here...

    Also, make sure your manifest has the USE_CREDENTIALS permission set correctly.

提交回复
热议问题