Facebook and Quickblox integration for iOS

谁说我不能喝 提交于 2019-12-11 12:31:49

问题


I am working on an iOS app which uses Quickblox SDK for chatting purpose. Also used Facebook SDK for login purpose. When used facebook login, quickblox uses loginWithSocialProvider method to login using facebook which always returns error. With Facebook api version upto 2.3 I'm able to create account and able to get successful response. But Facebook api version 2.4 and above I'm getting error response even with latest quickblox sdk 2.5 and FB SDK 4.6.0. Please help me figure out why this is happening. Please advice.


回答1:


Double check your facebook token permissions, it should return correct email address in order to 'loginWithSocialProvider' work. Also please check that you are using this method in a correct way:

[QBRequest logInWithSocialProvider:@"facebook" accessToken:[[FBSDKAccessToken currentAccessToken] tokenString] accessTokenSecret:nil successBlock:^(QBResponse * _Nonnull response, QBUUser * _Nullable user) {
        //
        NSLog(@"Logged in as %@", [user description]);
    } errorBlock:^(QBResponse * _Nonnull response) {
        //
        NSLog(@"Error: %@", [response.error description]);
    }];


来源:https://stackoverflow.com/questions/33873110/facebook-and-quickblox-integration-for-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!