简体   繁体   English

Facebook sdk4的OAuth redirect_uri opencart

[英]OAuth redirect_uri opencart by facebook sdk4

am New to opencart 1.5.5.1 almost did all configuration to make the site have login facebook but no use. 我是opencart的新手1.5.5.1差不多做了所有配置,使网站登录facebook但没有用。

Graph returned an error: Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request

I tried to play with url from my side nothing work as checked on internet like add slash after the link and so on 我尝试从我身边玩url没有任何工作,如在互联网上检查,如链接后添加斜杠等等

this is the requested site 这是请求的网站

https://www.facebook.com/v2.4/dialog/oauth?client_id=4444&state=444444&response_type=code&sdk=php-sdk-5.0.0&redirect_uri=http%3A%2F%2Flocalhost%2Fmarkaforyou%2Fwholesale%2F%3Froute%3Dfacebook%2Ffacebook&scope=email%2Cuser_birthday%2Cuser_location%2Cuser_hometown https://www.facebook.com/v2.4/dialog/oauth?client_id=4444&state=444444&response_type=code&sdk=php-sdk-5.0.0&redirect_uri=http%3A%2F%2Flocalhost%2Fmarkaforyou%2Fwholesale%2F%3Froute% 3Dfacebook%2Ffacebook&范围=电子邮件%2Cuser_birthday%2Cuser_location%2Cuser_hometown

this url redirected to my site 此网址重定向到我的网站

http://localhost/markaforyou/wholesale/?route=facebook%2Ffacebook&code=AQAB3eJHlzqyopMX0SSxRvChkEmoRE6LtQfghd54634645vb6ybhfgbhfghdfghjfdgh fgZAZdYe4ivu94IsPf36hrpyfq3K4uyi7dx50&state=69e8f620cdbcdfdf43185fba9b70dc43# = http:// localhost / markaforyou / wholesale /?route = facebook%2Ffacebook&code = AQAB3eJHlzqyopMX0SSxRvChkEmoRE6LtQfghd54634645vb6ybhfgbhfghdfghjfdgh fgZAZdYe4ivu94IsPf36hrpyfq3K4uyi7dx50&state = 69e8f620cdbcdfdf43185fba9b70dc43# =

is there any thing I must need to do in configuration 在配置中我是否需要做任何事情

it was a problem with facebook sdk url clearer in the FacebookRedirectLoginHelper.php change the line 这是facebook sdk url更清楚的问题在FacebookRedirectLoginHelper.php更改行

$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['state']); $ redirectUrl = FacebookUrlManipulator :: removeParamsFromUrl($ redirectUrl,['state']);

with

$redirectUrl = substr($redirectUrl, 0, strpos($redirectUrl, '&state')); $ redirectUrl = substr($ redirectUrl,0,strpos($ redirectUrl,'&state'));

and all thing work perfectly 一切都很完美

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OAuth后,Facebook redirect_uri无法识别用户 - Facebook redirect_uri does not recognize user after OAuth Facebook PHP SDK 上的“redirect_uri URL 必须是绝对的”错误 - “The redirect_uri URL must be absolute” error on Facebook PHP SDK 在getLoginUrl中包含redirect_uri时出错(Facebook PHP SDK) - Error when including redirect_uri with getLoginUrl (Facebook PHP SDK) redirect_uri URL必须是绝对的Facebook登录PHP SDK - The redirect_uri URL must be absolute Facebook login PHP SDK Facebook php sdk问题:请确保您的redirect_uri与您在OAuth对话框请求中使用的相同 - Facebook php sdk problom: Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request facebook PHP SDK redirect_uri到页面选项卡 - facebook PHP SDK redirect_uri to page tab php sdk的Facebook'redirect_uri'参数未重定向到传递的uri(重定向仅返回首页) - Facebook 'redirect_uri' param for php sdk not redirecting to passed uri (redirects only return to homepage) Facebook应用无法重定向到redirect_uri - Facebook app failing to redirect to redirect_uri Facebook OAuth redirect_uri问题'应用程序配置不允许使用URL。' - Facebook OAuth redirect_uri problem 'Given URL is not permitted by the application configuration.' Facebook 登录:请确保您的 redirect_uri 与您在 OAuth 对话框中使用的相同 - Facebook login: Please make sure your redirect_uri is identical to the one you used in the OAuth dialog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM