Facebook Graph API 不返回事件的最新图片
很确定这是一个缓存(服务器端而不是客户端)问题,但不知道如何解决。
当我尝试获取图像时,某些事件仅返回正常的“问号”静态图像(即没有图像)。
但当我在 Facebook 上查看实际情况时,我可以看到图片。
这是在服务器端,因为它的 python 脚本通过调用 urllib2.urlopen 获取图像。
例如:
http://graph.facebook.com/103299156441265/?fields= picture&type=large
返回
{
"picture": "http://static.ak.fbcdn.net/rsrc.php/v1/yA/r/gPCjrIGykBe.gif"
}
(这是静态问题标记图像),
但在真实事件页面上:
http://www.facebook.com/event.php?eid=103299156441265
我可以看到图片了吗?
任何帮助将不胜感激。
Pretty sure this is a caching (server side not client) issue but no idea how to resolve.
Some events when I try and get the image just return the normal "question mark" static image (i.e. no image).
But when I check on facebook actual i can see the picture.
This is on the server side as its my python scripts that are getting the image via a call to urllib2.urlopen.
For Example:
http://graph.facebook.com/103299156441265/?fields=picture&type=large
returns
{
"picture": "http://static.ak.fbcdn.net/rsrc.php/v1/yA/r/gPCjrIGykBe.gif"
}
(which is the static quesitonmark image)
but on the real event page:
http://www.facebook.com/event.php?eid=103299156441265
I can see the image?
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为图片没有出现是因为无法通过 Graph API 访问事件信息。查看活动页面,它似乎是为非公开群组。我认为您可能需要成为该组的成员才能通过 Graph API 访问有关其事件的信息。
I think the picture does not appear because the event's information is not accessible through the Graph API. Looking at the event page, it seems to have been created for a non-public group. I think it is likely that you need to be a member of the group in order to access information about its events through the Graph API.