简体   繁体   中英

Facebook and Quickblox integration for iOS

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.

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]);
    }];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM