[英]suddenly, getUser became to return 0.(PHP 3.1.1 SDK)
Only 10 hours ago, if I call $facebook->getUser()
, I can get the correct user_id
, but now, it always returns 0. Of cource, I have not changed my code. 仅仅10个小时前,如果我调用
$facebook->getUser()
,我可以获得正确的user_id
,但现在,它总是返回0.对于cource,我没有更改我的代码。
There is another strange point. 还有一个奇怪的观点。
redirect_url
contains: redirect_url
包含:
?sate=9b1772342342...&code=9b177asd2l..&base_domain=9b1772.3423# =
?sate = 9b1772342342 ...&code = 9b177asd2l ..&base_domain = 9b1772.3423# =
I can't release the site.. Please help! 我无法发布该网站..请帮忙!
I think this is a Facebook bug, I just finished figuring it out myself. 我认为这是一个Facebook漏洞,我刚刚完成了自己搞清楚。 You need to alter the Base_Facebook class, and add in a new query param to strip out.
您需要更改Base_Facebook类,并添加一个新的查询参数以进行删除。 The base_domain param is being accidentally appended to the redirect url, hopefully a fix will be rolled out soon.
base_domain param被意外地附加到重定向url,希望很快就会推出一个修复程序。
/**
* List of query parameters that get automatically dropped when rebuilding
* the current URL.
*/
protected static $DROP_QUERY_PARAMS = array(
'code',
'state',
'signed_request',
'base_domain', // this is the one you need to add
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.