Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook connection error #176

Open
Morbids opened this issue May 20, 2022 · 0 comments
Open

Facebook connection error #176

Morbids opened this issue May 20, 2022 · 0 comments

Comments

@Morbids
Copy link

Morbids commented May 20, 2022

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 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant