How to “rerequest” email permission using Facebook iOS SDK 4.x?

前端 未结 2 1565
野性不改
野性不改 2020-12-11 01:44

I am integrating FacebookSDK 4.x integration with custom UI and using following method to log-in and also getting email permission from user.

FBSDKLoginManag         


        
2条回答
  •  执念已碎
    2020-12-11 02:14

    You actually don't need to pass or call auth_type:rerequest. This is already done by facebook. If you check FBSDKLoginManager, the code does it for you.

    -(NSDictionary *)logInParametersWithPermissions:(NSSet *)permissions
    {
        if ([FBSDKAccessToken currentAccessToken]) 
           {
                 loginParams[@"auth_type"] = @"rerequest";
           }
    }
    

提交回复
热议问题