com.facebook.sdk error 2 on iOS

后端 未结 9 1671
误落风尘
误落风尘 2020-12-05 22:53

I have a Phonegap app that runs on both iOS and Android. The app has a Facebook login feature which worked until a few days ago. A few of our beta testers have reported an \

9条回答
  •  余生分开走
    2020-12-05 23:35

    I was figuring out the reason of this error for a long time as far as I work with old iOS 5.0 for bigger devices coverage. I've just recieved error 400 through facebook request debug. So finally, I figured out that the reason was in unknown FBSessionDefaultAudience for FBSession (was testing at 6.0+ and native facebook api gave me an error reason). And when I used

    + (BOOL)openActiveSessionWithPublishPermissions:(NSArray*)publishPermissions
                                    defaultAudience:(FBSessionDefaultAudience)defaultAudience
                                       allowLoginUI:(BOOL)allowLoginUI
                                  completionHandler:(FBSessionStateHandler)handler;
    

    this error finally dissappeared.

提交回复
热议问题