Error when using [FBSession openActiveSessionWithPublishPermissions: ..]

后端 未结 4 784
轮回少年
轮回少年 2020-12-14 13:30

I\'m updating an app to use the latest Facebook SDK in order to gain access to the iOS6 native Facebook support. It currently uses a pretty old version of the Facebook SDK.

4条回答
  •  执念已碎
    2020-12-14 14:30

    Sorry but for me in ios6 the line

    ACAccountType* at = [as accountTypeWithAccountTypeIdentifier: @"com.apple.facebook"];
    

    Does not return nil even if the user does not have an account configured...

    Which means you can just check what is the ios version of the user (5 or 6)

    NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
    

    This link can be helpful.

提交回复
热议问题