There is an update on Facebook SDK and Facebook login. So that it affects who are all used Joysale script with FB Login. For that issue our developing team had found the solution. So please follow the instructions that given below; by using this coding you can fix up this problem.

Download the latest hybridauth(v2.9.1) from the below link

https://github.com/hybridauth/hybridauth/archive/v2.9.1.zip

Unzip the above file to the following folder

protected/extensions/HybridAuth/

Change the version name in the following file

protected/components/HybridAuthIdentity.php

const VERSION = ‘2.2.2’; 

To

const VERSION = ‘2.9.1’;

You do need to get the Facebook SDK from https://github.com/facebook/php-graph-sdk and extract first. Next copy the Facebook folder from the following location “php-graph-sdk-5.4/src/Facebook”  to “protected/extensions/HybridAuth/hybridauth-2.9.1\hybridauth\Hybrid\thirdparty” Folder.

Then, on your project, you’ll need to include both the Hybridauth and the Facebook SDK.

Update the following code in the below mentioned file

protected/components/HybridAuthIdentity.php

Search the below code

require_once $path . ‘/hybridauth-‘ . self::VERSION . ‘/hybridauth/Hybrid/Auth.php’;

And paste the following code after that
require_once $path . ‘/hybridauth-‘ . self::VERSION . ‘/hybridauth/Hybrid/thirdparty/Facebook/autoload.php’;

On following path protected/extensions/HybridAuth/hybridauth-2.9.1\hybridauth\, index.php and live.php, add a new line under

“require_once( “Hybrid/Endpoint.php” );”.

Example:

require_once( “Hybrid/Auth.php” );
require_once( “Hybrid/Endpoint.php” );
require_once( “Hybrid/thirdparty/Facebook/autoload.php” );

That’s about it.

appkodes
Follow me

appkodes

Appkodes Branded by Hitasoft Technology Solutions Pvt Ltd. Specialized in Mobile App Development For Both Android and iOS Devices. Transparent App Development Process That Brings Down Your Overall Development Budget Without Compromising the experience. Beautiful User Experience For Seamless Navigation, user retention and Communication. This Is Why We Are Trusted Mobile App and Web Development Company.
appkodes
Follow me