I am having difficulty with this and see the following message after visiting /user/login/twitter

You could not be authenticated, please contact the administrator

I have install the recommended versioins of social_api, social_auth and social_auth_twitter with composer and from what I understand, I have valid api keys.

Any suggestion of where I should be looking for problems?

Comments

MrPaulDriver created an issue. See original summary.

gvso’s picture

Hi!

Please provide more info on when this happens. Are you being redirected to Twitter for authentication?

mrpauldriver’s picture

No redirection of any kind. Just dropped the the user/login page, showing the message mentioned above.

gvso’s picture

In that case, it might be failing somewhere in the try block in redirectToTwitter. Maybe the SDK library is not beind loaded. Make sure you have the directory abraham/twitteroauth inside the vendor folder of your root directory.

gvso’s picture

It seems like this error is caused because of these changes in Twitter API. Make sure you include the correct callback url.

mrpauldriver’s picture

Thanks for that. I'll take a look and report back.

gvso’s picture

Did this fix your issue?

uditrawat’s picture

I also having the same issue,
All keys are correct and also have abraham/twitteroauth package in my vendor directory.

It didn't redirect me to twitter for authentication but simply throws below error.
"You could not be authenticated, please contact the administrator."

uditrawat’s picture

Hi all

There is no notification in backend to add callback url for twitter app however after adding callback url ( https://domain.com/user/login/twitter/callback ) to twitter app resolve my issue.

gvso’s picture

As noted in #7, this requirement is new in Twitter. I'll create a patch to provide the callback url in the settings form as we do it in other implementers.

gvso’s picture

Title: Error: You could not be authenticated, please contact the administrator » Provide callback URL in settings form
Version: 8.x-2.0-alpha2 » 8.x-2.x-dev
Category: Support request » Task

  • gvso committed 3613062 on 8.x-2.x
    Issue #2985592: Provide callback URL in settings form
    
gvso’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.