Topic-icon Bad Request token while twitter login

Active Subscriptions:

None
9 years 6 months ago #60330 by vinay123
Hello Team,

I have JFB Connect on my website which is used for logging the user using social sites. I have setup a/c of FB, google plus, linkedin and twitter. Out of 4 3 are working except the twitter login. To try issue at your end go to www.atma.ac and try to login using twitter you will find the error. I have followed the step described by you in the documentation and got the consumer key and access token. I have also attached the error image.

Please help me resolve this issue as the site is live and it is having the problem which needs to be resolved asap.

Thanks & Regards
vinay
File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
9 years 6 months ago #60332 by mel
The 5 most common causes of that issue are:

1. Your Twitter Application wasn't set up properly.
2. You didn't copy the API Key and Secret properly to JFBConnect.
3. Your Access Token / Secret may need to be regenerated. This can be done inside the Twitter Development area for your app with the "Regenerate My Access Token and Access Secret" button.
4. Your Twitter API and Secret Keys may need to be regenerated in your Twitter application. This may be done inside the Twitter Development area for your app.
5. Your server time is incorrect (uncommon)

Since you followed our application guide, I would suggest trying #3 and then #4 first. Let me know if this has any improvement.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 6 months ago #60337 by vinay123
Hello Melissa,

I have implemented the step #3 and #4 as per your suggestion but didn't work out. To regenerate error at your end go to www.atma.ac which is our website and try to login using twitter you will come to know the exact issue for it.

Also when i do Test OAuth it gives me "sorry that page doesn't exist"

Can this be helpful to you

Thanks & regards,
Vinay
The topic has been locked.
Support Specialist
9 years 6 months ago #60340 by mel
* Could you please go back and re-check that your Consumer Key (API Key) and Consumer Secret (API Secret) settings from apps.twitter.com matches the values you added to the JFBConnect backend. Sometimes dashes or other characters can get cutoff when copying/pasting.
* Check the time on your server. It needs to be accurate to within about 10 minutes. If the time and date are off by too much, Twitter will think the authentication request is a forgery and can fail.

Has Twitter ever been set up on this site and working properly or is this the first time it's being configured now?

If it doesn't help, please set the "Enable Debug Mode" option in JFBConnect to 'Yes' and try again. Then, let us know the exact error message that appears along with any numerical code, that is displayed when you try to authenticate.

Finally, please post from the account you subscribed to JFBConnect from. Priority support is for active subscribers only.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 6 months ago - 9 years 6 months ago #60350 by ATMAIndia
* Could you please go back and re-check that your Consumer Key (API Key) and Consumer Secret (API Secret) settings from apps.twitter.com matches the values you added to the JFBConnect backend. Sometimes dashes or other characters can get cutoff when copying/pasting.
Ans: Yes, I checked the consumer API key and secret key at backend and twitter app too the keys are same and no issues with it.

* Check the time on your server. It needs to be accurate to within about 10 minutes. If the time and date are off by too much, Twitter will think the authentication request is a forgery and can fail.
Ans: I don't think this would be an issue because twitter was setup before.

Has Twitter ever been set up on this site and working properly or is this the first time it's being configured now?
Ans: Yes. twitter was setup and configured before.It was working fine but suddenly it stopped. then i created new app and then configured twitter with new ids but it didn't started.

If it doesn't help, please set the "Enable Debug Mode" option in JFBConnect to 'Yes' and try again. Then, let us know the exact error message that appears along with any numerical code, that is displayed when you try to authenticate.
Ans: I have enabled the debug mode but same bad request token error is coming which is coming from the start. Exact error message or any code didn't appeared on front end.

Finally, please post from the account you subscribed to JFBConnect from. Priority support is for active subscribers only.
Ans: Actually i am active subscriber with this id.
Last edit: 9 years 6 months ago by ATMAIndia.
The topic has been locked.
Support Specialist
9 years 6 months ago #60367 by alzander
We're unsure what's causing this. The 7.0.1 release of JFBConnect had some fixes for Twitter authentication that had the same symptoms as what you describe, however, you look to be using 7.0.1 (or later).

Can you send us FTP credentials for your site and we'll help investigate further.

Thanks,
Alex
The topic has been locked.
Support Specialist
9 years 6 months ago #60368 by alzander
Oh yeah, you can send a Private Message with those credentials by clicking the mail icon under my name to the left.

Also, could you send a picture of your Twitter app configuration so we can see how things are setup there?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi,
Just to let you know that I have the same issue, however I have discovered that it appears to be caused when the Enable Callback Locking is selected within the Twitter App management settings page.
Regards,
Justin.
The topic has been locked.
Support Specialist
9 years 6 months ago #60373 by mel
Justin,

Thanks for letting us know. I'll make a note of that in our Twitter application setup guide.

-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #60396 by vinay123
Hello Justin,

Thanks for the help.
I disabled the Enable Callback Locking option from the twitter app management and it worked.

Thanks Alex and Melissa for your help.

One last question: By disabling the Enable Callback Locking option it won't affect anything right? Are you able to get my point?

-Thanks
Vinay
The topic has been locked.