enupal / socializer

Enables users to login to your website through more than 35 social networks.
Other
7 stars 3 forks source link

Facebook & Twitter provider don't seem to be working #7

Open bymayo opened 4 years ago

bymayo commented 4 years ago

I can't seem to get this plugin to work.

I've got Facebook & Twitter setup, input the Client API Key & Client Secret with the correct callbacks.

I can see it's trying to do something as it takes me to Facebook or Twitter, asks if I want the site to access the account then redirects me back to my site. But when it does, it doesn't login me in or in the CMS show that it's created any users.

Any ideas what I could be missing?

User registration is also turned on.

I checked the logs and I can see the Twitter one is saying:

2020-10-03 17:25:37 [-][-][-][error][enupal\socializer\controllers\LoginController::actionLogin] Signed API request to https://api.twitter.com/oauth/request_token has returned an error. HTTP error 403. Raw Provider API response: <?xml version='1.0' encoding='UTF-8'?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>.
2020-10-03 17:25:37 [-][-][-][info][application] $_GET = [
    'p' => 'socializer/login'
    'redirect' => '?'
    'provider' => 'twitter'
]

But the callback URL for the application in Twitter is correct from the one in the provider settings. No logs for any errors for Facebook though.

andrelopez commented 4 years ago

Hi @bymayo I was able to recreate the Twitter issue. However, it looks like they add new settings in their apps site (https://developer.twitter.com/en/apps/) Please create a new one and make sure to enable the "Allow sign in with Twitter" and give the email address permissions

bymayo commented 4 years ago

@andrelopez I'll give this a go, thanks!

bymayo commented 3 years ago

@andrelopez I setup the app again in Twitter and connected it again to Craft, but I'm still having the same issue get logged.

andrelopez commented 3 years ago

@bymayo it looks like there is an issue when generating the URL. Could you please recreate the issue and send back to us a zip file of your storage/logs folder? Please send the file to support@enupal.com