parse-community / parse-php-sdk

The PHP SDK for Parse Platform
https://parseplatform.org/
Other
811 stars 346 forks source link

Facebook login not working. Fatal error: Uncaught Parse\ParseException: Facebook auth is invalid for this user. #391

Closed MianAzhar closed 6 years ago

MianAzhar commented 6 years ago

Hey,

When I am trying to login with facebook I get this error:

Fatal error: Uncaught Parse\ParseException: Facebook auth is invalid for this user. in website.com\src\Parse\ParseClient.php:604 Stack trace: #0 website.com\src\Parse\ParseUser.php(306): Parse\ParseClient::_request('POST', 'users', '', '{"authData":{"f...') #1 website.com\src\Parse\ParseUser.php(195): Parse\ParseUser::logInWith('facebook', Array) #2 website.com\fb-callback.php(125): Parse\ParseUser::logInWithFacebook('192529015754153...', 'EAACTPHLbrwQBAC...') #3 {main} thrown in website.com\src\Parse\ParseClient.php on line 604

I am successfully getting user id and access token from facebook but when I call ParseUser::logInWithFacebook($userId, $accessToken); I get this error.

Can anyone tell me how to solve this issue?

anthonywebster commented 6 years ago

me too

image

MianAzhar commented 6 years ago

@anthonywebster I was able to fix this issue by setting "Require App Secret" to "No" in Facebook app advance settings: screenshot_6

anthonywebster commented 6 years ago

@MianAzhar Thanks, now is working :+1: