E107: Issue: Social Plugin - Twitter

Created on 14 Mar 2016  路  11Comments  路  Source: e107inc/e107

AS you may know I have a few social login options on my website (defiantz.org) and all seem to be working but Twitter, it could be that I screwed something up in the Twitter API registration but I am getting this error on my site when trying to login with Twitter

Error
[5]Authentication failed! Twitter returned an error. 401 Unauthorized.

Now I google and get this - #335
It says it could be the web host server time is off - check the time and all is good so idk if it is script related or not.

bug

Most helpful comment

@CaMer0n Got it to work!!!! and great news - nothing is wrong with the code - it is a setting on Twitter's side that is causing the error.

Having Enable Callback Locking (It is recommended to enable callback locking to ensure apps cannot overwrite the callback url) checked will block the login - having it uncheck will allow people to login to site.

capture

All 11 comments

@LaocheXe I need to get Twitter working on a project too. Will try it and let you know.

Failing for me too.

@CaMer0n I also notice someone said something about a space in the config - as you said e107 doesn't use the config that the Hybrth uses.

@CaMer0n Got it to work!!!! and great news - nothing is wrong with the code - it is a setting on Twitter's side that is causing the error.

Having Enable Callback Locking (It is recommended to enable callback locking to ensure apps cannot overwrite the callback url) checked will block the login - having it uncheck will allow people to login to site.

capture

@LaocheXe Cool! I'm gonna try that! :+1:

@LaocheXe It didn't fix it for me

   [5]Authentication failed! Twitter returned an error. 401 Unauthorized.

@CaMer0n Do you have your preferences set up? This is what I have:

capture1
capture2
capture3

If you have just Read & Wright access, change it and reapply/update/create a new key to get a new key and salt

Thanks @LaocheXe that helped! I did get a failure because there was no email. Do you have yours set to get email somehow? Or did you disable this requirement in e107?

This works like a charm now! Thank you for your help @LaocheXe . Closing...

I just got past the 401 by

  • Unchecking the Enable Callback Locking
  • Regenerate keys
Was this page helpful?
0 / 5 - 0 ratings

Related issues

chimcen picture chimcen  路  3Comments

Jimmi08 picture Jimmi08  路  5Comments

Jimmi08 picture Jimmi08  路  5Comments

Jimmi08 picture Jimmi08  路  3Comments

CaMer0n picture CaMer0n  路  4Comments