SocialConnect/auth

Facebook connection error

Morbids opened this issue · 0 comments

Hey!

Issue

Facebook connection error

Fatal error: Uncaught SocialConnect\OAuth2\Exception\InvalidState: State parameter inside Request is not similar to value from Session, possible CSRF attack in /var/www//system/library/social/vendor/socialconnect/auth/src/OAuth2/AbstractProvider.php:167 Stack trace: #0 /var/www//catalog/controller/extension/module/sociallogin.php(264): SocialConnect\OAuth2\AbstractProvider->getAccessTokenByRequestParameters(Array) #1 /var/www//system/storage/modification/system/engine/action.php(51): ControllerExtensionModuleSociallogin->FacebookLogin() #2 /var/www//catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #3 /var/www//system/storage/modification/system/engine/action.php(51): ControllerStartupRouter->index() #4 /var/www//system/engine/front.php(34): Action->execute(Object(Registry)) #5 /var/www//system/engine/front.ph in /var/www//system/library/social/vendor/socialconnect/auth/src/OAuth2/AbstractProvider.php on line 167

My env

PHP: 7.4

Library: socialconnect/auth/src/OAuth2/Provider/Facebook.php

Provider: Facebook

Provider options:

[
    'options' => [
						'identity.fields' => [
							'id',
							'email',
							'name',
							'first_name',
							'last_name',
							'picture.width(99999)'
						],
					]
];

Thanks 😺