Sign in Quickblox using twitter gives Bad Authenti

2019-04-14 01:32发布

问题:

i have successfully Signed in using facebook but when i tried twitter it says Bad Authentication request. I have orivided both Access token and Secret key. Heres code snippet

QBASessionCreationRequest *extendedAuthRequest = [QBASessionCreationRequest request];
extendedAuthRequest.socialProvider = socialProvider;
extendedAuthRequest.socialProviderAccessToken = @"ACCESS_TOKEN";
extendedAuthRequest.socialProviderAccessTokenSecret = @"ACCESS_TOKEN_SECRET";

[QBAuth createSessionWithExtendedRequest:extendedAuthRequest delegate:self];

回答1:

Are you set API KEY, API SECRET and callback for your app? http://quickblox.com/developers/Social_Networks_Integration_Manual

I have same error while don't read this article.