Topic-icon Twitter docs updated?

Active Subscriptions:

None
5 years 2 months ago #65085 by dwreski
Are the docs on the site for configuring twitter for use with JFBConnect accurate and updated? They don't appear to reflect the configuration I see on Twitter, and I'm having a problem. I'm following the docs here:

www.sourcecoast.com/jfbconnect/docs/soci...er-application-setup

When attempting to login using twitter, I receive a message that says "BAD REQUEST TOKEN!". I know I've configured the token correctly. There just isn't all that much to configure, so I'm unsure what the problem could be.
The topic has been locked.
Support Specialist
5 years 2 months ago #65088 by alzander
Replied by alzander on topic Twitter docs updated?
Twitter has updated the look of their app area, but all the settings are pretty much the same. If there's a setting you are confused about or can't find, please let us know what it is.

As for the Bad Token message.. there's a couple odd things going on. First, when I click the login with Twitter or LinkedIn, the JFBConnect code calls a link on your site like:
https://www.YOURSITE.com/nullindex.php?option=com_jfbconnect&task=authenticate.login&provider=linkedin&return=null&t=1
The t=1, return=null and nullindex.php are all incorrect values. I'm unsure where those are coming from.. but LinkedIn actually still works (strangely) yet Twitter throws the Bad Token error.

I see a lot of 'optimization' stuff running in the code to minimize and re-arrange Javascript. I'd recommend trying to disable that to see if it fixes things. There is a certain order that our Javascript code needs to be placed on the site to ensure it executes properly and it's possible the optimizations are causing issues there.

Beyond that, normally, a Bad Token Error indicates a couple other server problems, primarily that your servers' time is way off. That's something to look into if you still have issues after testing with the optimizations turned off.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
5 years 2 months ago #65093 by dwreski
Replied by dwreski on topic Twitter docs updated?
I have tried and disabled the minification and disabled all the optimizations but it still doesn't work. Is there a way we can bypass it? For now I have disabled JFB by simply removing the keys.

It doesn't seem practical to expect optimizations to be disabled in order for it to work properly. Perhaps it's not configured properly?

How can I troubleshoot this further? The developers who we have working on this project for us are familiar with joomla and how it's configured and believe this is an issue with JFBConnect.
The topic has been locked.
Active Subscriptions:

None
5 years 1 month ago #65099 by dwreski
Replied by dwreski on topic Twitter docs updated?
Anyone have any updates on this? I really need to get this working.
The topic has been locked.
Support Specialist
5 years 1 month ago #65100 by alzander
Replied by alzander on topic Twitter docs updated?
Sorry or the delay. You should be able to run JFBConnect with optimizations enabled. However, while debugging, we absolutely recommend disabling them to ensure that they aren't causing issues as it removes one more possible problem area.

As for debugging, the steps we'd recommend are:
* Verify that the time on your server is accurate to GMT/UTC time. Twitter is extremely picky in making sure that requests are sent within a very short timespan of the current time. If your server time is off by a few minutes from UTC time, then those requests will get rejected.
* Double check that you have followed all steps of the Twitter configuration guide, with special attention to step 4, for the OAuth Callback URL(s)
* Disable SEF URLs (temporarily) to see if authentication works.

Please let us know how that goes, and if you still have issues, we'll gladly help further.

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

None
5 years 1 month ago #65101 by dwreski
Replied by dwreski on topic Twitter docs updated?
Can I ask you to ensure the Twitter docs for your software are updated? That was the original reason for this post, but now that you mention I should make sure twitter is set up properly, it's even more important that the docs accurately reflect how it should be configured.

There were a couple of inconsistencies, or inaccuracies, that made it more difficult than it needed to be, and I had to kind of guess how it should be done.

Also, I believe one of our developers had some questions about exactly where the javascript should be placed within joomla. Is it possible this was done wrong, or would it not work at all?
The topic has been locked.
Support Specialist
5 years 1 month ago #65104 by alzander
Replied by alzander on topic Twitter docs updated?
The Twitter documents are as up to date as we can make them currently. The issue with Twitter, and all social networks, is that they roll out new admin interfaces regularly and they usually do it in a staged process by rolling it out to waves of accounts at a time. It's very possible that you are seeing a different interface than what is in our documents. Unfortunately, because you see it, doesn't mean we do in our development accounts.

Our guides always strive to give field names and details to help guide you through any inconsistencies. However, if there's any particular place you are getting stuck, please let us know what that inconsistency or inaccuracy is and we'll gladly help provide an answer.

Finally, your developer should not have to place any Javascript anywhere. JFBConnect handles this by interfacing with Joomla itself and has your template render the Javascript in the correct place. This is why we recommend disabling optimizations that may be moving things around. Then, test and verify things work, and then re-enable those optimizations and check again.

Thanks,
Alex
The topic has been locked.