Social Login Error

Hi all ,

I have added Login with facebook button in my store.

It was working properly before but now it is not .

I am getting error :

Error Authentication failed. The user has canceled the authentication or the provider refused the connection

how can I solve this error? :confused:

Please help.

Screenshot_1.png

Hi all ,

I have added Login with facebook button in my store.

It was working properly before but now it is not .

I am getting error :

Error Authentication failed. The user has canceled the authentication or the provider refused the connection

how can I solve this error? :confused:

Please help.

CS-Cart uses outdated Facebook API. They know about this issue and working on it.

CS-Cart uses outdated Facebook API. They know about this issue and working on it.

How much time it will take ???

any idea?

Thank you..!

How much time it will take ???

any idea?

Thank you..!

I do not know. Please contact CS-Cart support team

I do know. Please contact CS-Cart support team

Ok..

Thanks for your reply.. :rolleyes:

http://forum.cs-cart.com/tracker/issue-6687-social-login-facebook/?gopid=26306#entry26306

http://forum.cs-cart.com/tracker/issue-6687-social-login-facebook/?gopid=26306#entry26306

The error is almost comes in all versions.

i have this error too! i hope will be solved fast

i have this error too! i hope will be solved fast,my version is Multi-Vendor 4.3.7

Facebook API was updated in CS-Cart 4.5.2 (http://blog.cs-cart.com/2017/04/06/cs-cart-and-multi-vendor-4-5-2-are-here)

For some reason mine is not even showing the Facebook option for social login.

I have uninstalled the social add on and reinstalled and still get the same result.

Please make sure that Facebook exists in the following scheme

app/addons/hybrid_auth/schemas/hybrid_auth/providers.php

Also check permissions of the following file

app/addons/hybrid_auth/Tygh/HybridProvidersFacebookNewScope.php

Please make sure that Facebook exists in the following scheme

app/addons/hybrid_auth/schemas/hybrid_auth/providers.php

Also check permissions of the following file

app/addons/hybrid_auth/Tygh/HybridProvidersFacebookNewScope.php

I checked and have that file providers.php.

I tried replacing both of them with a new one and the permissions on HybridProvidersFacebookNewScope.php are 644

Still not showing up. I have uninstalled and cleared cache and then installed social login and same result.

I did notice at the bottom of the providers.php showed this I am wondering if this is the issue.

I did remove this code and it showed up. But I may have an unsupported version of php.

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
unset($schema['facebook']);

I did see an option in my hosting to update to php 5.4 so I just started that and will see if that fixes the issue.

Thanks again.

Scott

FYI, As soon as I updated the site to PHP 5.4 facebook started working. My hosting default was 5.3.

Thanks @eComLabs for your help.

Scott

FYI, As soon as I updated the site to PHP 5.4 facebook started looking. My hosting default was 5.3.

Thanks @eComLabs for your help.

Scott

Thank you for keeping us updated. Hope it will help someone else

Hello,

I had the same error.

I solved it replacing this code :

$response_params = array();
    parse_str($access_token_response, $response_params);
    if (!isset($response_params['access_token'])) {
      return false;
    }
return $response_params['access_token'];

by this :

$response = json_decode($access_token_response);
    if (!isset($response->access_token)) {
      return false;
    }
return $response->access_token;

in /app/addons/hybrid_auth/lib/Hybrid/thirdparty/base_facebook.php

I have also an error with Google login :

Error User profile request failed! Google returned an invalid response.

Hello,

I had the same error.
I solved it replacing this code :

$response_params = array();
    parse_str($access_token_response, $response_params);
    if (!isset($response_params['access_token'])) {
      return false;
    }
return $response_params['access_token'];
by this :
$response = json_decode($access_token_response);
    if (!isset($response->access_token)) {
      return false;
    }
return $response->access_token;
in /app/addons/hybrid_auth/lib/Hybrid/thirdparty/base_facebook.php

I have also an error with Google login :

[b]Error [font='Open Sans'][size=3] [/size][/font][/b][font='Open Sans'][size=3]User profile request failed! Google returned an invalid response.[/size][/font]

Hello,

I had the same error.
I solved it replacing this code :

$response_params = array();
    parse_str($access_token_response, $response_params);
    if (!isset($response_params['access_token'])) {
      return false;
    }
return $response_params['access_token'];

by this :

$response = json_decode($access_token_response);
if (!isset($response->access_token)) {
return false;
}

return $response->access_token;

in /app/addons/hybrid_auth/lib/Hybrid/thirdparty/base_facebook.php


I have also an error with Google login :


Error [font=Open Sans][size=3] [/size][/font][font=Open Sans][size=3]User profile request failed! Google returned an invalid response.[/size][/font]






Try to change theme.php with new one


app/tygh/themes/theme.php