FBSDKLoginManager logInWithPublishPermissions always returns isCancelled=YES

前端 未结 11 1392

I am having trouble figuring out how to log a user into my app. [FBSDKAccessToken currentAccessToken] is nil, so I am calling:

[[[FBSDKLoginMana         


        
11条回答
  •  盖世英雄少女心
    2020-12-01 14:31

    call this methord,

    FBSDKLoginManager *loginManager = [[FBSDKLoginManager alloc] init];
    [loginManager logInWithReadPermissions:@[@"user_friends"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
       code
    }];
    

提交回复
热议问题