Facebook Graph Bad Request

时间:2014-09-10 10:37:21

标签: facebook

我使用脸谱图api来获取一个事件的封面图片。 我正在使用这个网址:

https://graph.facebook.com/134692733275104/events?fields=cover?access_token=APP_ID|APP_SECRET

但我收到了错误:

file_get_contents(https://graph.facebook.com/134692733275104/events?fields=cover?access_token=****|****) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

当我使用没有?fields = cover部分的链接时,它可以工作。

1 个答案:

答案 0 :(得分:0)

您需要将第二个?替换为&,如下所示:

https://graph.facebook.com/134692733275104/events?fields=cover&access_token=APP_ID|APP_SECRET