所以我没主意了,我不知道要检查或调试什么了,但是我得到了一个例外:
string(188203) "Facebook\FacebookAuthorizationException Object ( [statusCode:Facebook\FacebookRequestException:private] => 400 [rawResponse:Facebook\FacebookRequestException:private] => {"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request","type":"OAuthException","code":100,"fbtrace_id":"DqCCKoiN0r4"}} [responseData:Facebook\FacebookRequestException:private] => Array ( [error] => Array ( [message] => Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request [type] => OAuthException [code] => 100 [fbtrace_id] => DqCCKoiN0r4 ) ) [message:protected] => Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request [string:Exception:private] => [code:protected] => 100
Dharmesh Gos.. 6
我相信您redirect_uri
在Facebook应用设置和Oauth API代码中使用了不同的内容。那就是为什么您收到此错误。
对于Facebook登录,您必须在两个地方都设置相同的redirect_uri。
我相信您redirect_uri
在Facebook应用设置和Oauth API代码中使用了不同的内容。那就是为什么您收到此错误。
对于Facebook登录,您必须在两个地方都设置相同的redirect_uri。