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.
@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.
@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:
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
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.