我需要您的帮助来解决问题。 之后的某个时间,我得到了令牌时一试,以获取有关用户的数据此错误发生:图形API - 无法打开流:HTTP请求失败! HTTP/1.0 400错误请求
A PHP Error was encountered
Severity: Warning
Message: file_get_contents(https://graph.facebook.com/me?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
的代码执行是这样的:
$url = "https://graph.facebook.com/me?access_token=".$token;
$dados = @json_decode(file_get_contents($url));
我怎样才能解决这个问题呢?为什么会发生?
我搜索了很多,但没有找到解决方案。请有人帮助我。
谢谢。
将您的访问令牌粘贴到[debugger](https://developers.facebook.com/tools/debug)中。它是有效的和*用户*访问令牌? – cpilko