AccessToken token:ACCESS_TOKEN_REMOVED in Facebook Android SDK

后端 未结 5 1795
无人共我
无人共我 2021-02-04 23:52

I am using the Facebook SDK but I want to create the photo album but I am getting ACCESS_TOKEN_REMOVED in the session.

Getting this in session

{Session sta

5条回答
  •  旧时难觅i
    2021-02-05 00:31

    Same problem that i was facing from last 2 days and finally i get to know this. Facebook SDK will not log access tokens to logcat (to avoid leaking user tokens via the log as said in decsription).

    Just add these lines after FacebookSdk.sdkInitialize(), i would recomend you do this only in debug mode:

    if (BuildConfig.DEBUG) {
        FacebookSdk.setIsDebugEnabled(true);
        FacebookSdk.addLoggingBehavior(LoggingBehavior.INCLUDE_ACCESS_TOKENS);
    }
    

提交回复
热议问题