2016-09-20 132 views
3

目前,我使用的FBSDKLoginManager與Facebook應用程序ID通過Facebook登錄到我的應用程序。我有.plist文件中所需的東西。一切正常。單個iOS應用程序的多個Facebook應用程序ID

enter image description here

但現在我在用不同的Facebook應用程序ID應用程序的其他部分進行登錄。我怎樣才能在各個領域的單個應用程序中使用不同的Facebook應用程序ID。

以前有人已經詢問this question。從答案,我發現

FBSession *session = [[FBSession alloc] initWithAppID:@"AN_APP_ID" 
              permissions:nil 
             defaultAudience:FBSessionDefaultAudienceNone 
             urlSchemeSuffix:nil 
            tokenCacheStrategy:nil]; 
[session openWithCompletionHandler:^(FBSession *session, FBSessionState status, NSError *error) { 
    // do stuff here 
}]; 

但答案並不爲我工作作爲FBSession不可用。任何想法?建議?

回答

相關問題