Topic-icon Twitter login showing error

Active Subscriptions:

None
6 months 3 weeks ago #68649 by eashery
Hi Team, 

We are using Version: 9.0.244 of JFBC, But from a long time Twitter login of JFBC is not working. It is throwing a error of "Bad request token!" when we click on login button.. Please help to resolve it.

Thanks
The topic has been locked.
Support Specialist
6 months 3 weeks ago #68650 by mel
Replied by mel on topic Twitter login showing error
First, please verify what version API access your Twitter account is enabled for? Version 1.1 accounts have been suspended due to v1.1 API being deprecated. This is the top reason why an existing app would stop working and throw that error. (I coincidentally deleted our 1.1 standalone app while looking at this and am having trouble creating a free v2 app for our project... ugh)

Please verify that the callback URL for your application is correct. It should be in the form "www.yourdomain.com/index.php"

Next, please verify the App ID and Secret Key and that they match what's in the JFBConnect > Provider > Twitter area. I'd suggest regenerating the secret key and copying from the app again.

Another older setting "Enable Callback Locking" in the Twitter app needed to be enabled. I'm not sure if this option is available any more.

Let us know the results of above and we'll go from there.

-Melissa
The topic has been locked.
Support Specialist
6 months 3 weeks ago #68651 by mel
Replied by mel on topic Twitter login showing error
Actually hold off on trying those. I was able to create a new app and am having the same problems. A code change will be needed. Working on it now and I'll get back to you.
The topic has been locked.
Support Specialist
6 months 3 weeks ago #68657 by mel
Replied by mel on topic Twitter login showing error
I have quite a few changes made for both the Twitter provider plugin and the core OAuth2 code in JFBConnect. I have some cleanup to do, but am able to successfully log in on a new v2 app with the Free developer access. There were quite a few deviations that Twitter made from the standard base OAuth2 implementation that were causing issues.

When I have it ready do you want a) me to send you a test build, b) you send me FTP credentials in a Contact Us form or c) wait for a release to go up that's more tested? This is pretty raw right now and may have some bugs.

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 months 2 weeks ago #68685 by joomleb
Replied by joomleb on topic Twitter login showing error
Hi Mel,
I'm writing here because I suppose the Error 0 I'm having back clicking on the Twitter button is the same. I add an image here for you.

Please, Can you confirm?
If yes, I'd like to receive asap the patch fixing for testing the solution...

PS - photos.app.goo.gl/9qvuGJVR8KCqvUUB8
Because:
Attachment image size exceed limit allowed by configuration
The topic has been locked.
Support Specialist
6 months 2 weeks ago #68691 by mel
Replied by mel on topic Twitter login showing error
I was testing my fixes some more and encountered some bugs, specifically with the channels feature blowing up. Plus we only have an app with the Free API access so I keep getting locked out of making requests while debugging, making progress a little slower. I think I should be able to get a test build out tonight or early tomorrow morning.
The following user(s) said Thank You: joomleb
The topic has been locked.
Support Specialist
6 months 2 weeks ago - 6 months 2 weeks ago #68697 by mel
Replied by mel on topic Twitter login showing error
Sorry for the delay. We were having trouble with our build server that had to get resolved first. I've added you both to a Beta Test group. If you go into your My Account > My Subscriptions, there should be a 9.0.255 beta build available.

There's still some wonkiness to our build server, so I couldn't do a build for just this release (i.e. there's other changes in this build as well). If you'd like to unzip to a different directory and copy over the following files, these are the ones used for this bug fix:

Twitter Plugin (You can find these files in packages/plugins/jfbconnect/provider_twitter.zip)
plugins/jfbconnect/provider_twitter/profile/twitter.php
plugins/jfbconnect/provider_twitter/provider/twitter.php
plugins/jfbconnect/provider_twitter/provider/twitter/config/config.xml
plugins/jfbconnect/provider_twitter/provider/twitter/channel/stream_outbound.xml
plugins/jfbconnect/provider_twitter/provider/twitter/channel/stream.php
plugins/jfbconnect/provider_twitter/translations/en-GB.plg_jfbconnect_provider_twitter.ini

JFBConnect core (You can find these files in frontend directory)
component/frontend/libraries/authentication/oauth2.php
component/frontend/libraries/authentication/oauth2base.php

I highly recommend backing up your site and the original files before you copy over. This is not fully tested. Also to note, we only have Free Access, so I can authenticate with Twitter and I can post to Twitter in channels. We do not currently have the ability to test Twitter stream data coming back to channels right now.
Last edit: 6 months 2 weeks ago by mel.
The topic has been locked.
Active Subscriptions:

None
6 months 1 week ago - 6 months 1 week ago #68712 by joomleb
Replied by joomleb on topic Twitter login showing error
Hi Mel,
there is no any "translations" folder.
Here an image for you: photos.app.goo.gl/MFiM6SXp6YRSR64KA

Please, Do we have to create it ?
Last edit: 6 months 1 week ago by joomleb.
The topic has been locked.
Support Specialist
6 months 1 week ago #68716 by mel
Replied by mel on topic Twitter login showing error
I'm in the midst of changing JFBConnect for Joomla 5 support and Bootstrap 5.3.2. It's possible I broke something with the translations when I sent that. I'll have to get it a little more stable before I share another build.

-Melissa
The following user(s) said Thank You: emmanuelkatto
The topic has been locked.
Active Subscriptions:

None
6 months 6 days ago #68721 by joomleb
Replied by joomleb on topic Twitter login showing error
...staying tuned, Thank You...
The topic has been locked.