【问题标题】:Facebook Graph API doesn't return the latest picture for an eventFacebook Graph API 不返回事件的最新图片
【发布时间】:2011-08-29 16:32:51
【问题描述】:

很确定这是一个缓存(服务器端而非客户端)问题,但不知道如何解决。

当我尝试获取图像时,一些事件只会返回正常的“问号”静态图像(即没有图像)。

但是当我在 facebook 上查看时,我可以看到图片。

这是在服务器端,因为它是通过调用 urllib2.urlopen 获取图像的我的 python 脚本。

例如:

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

我能看到图片吗?

任何帮助将不胜感激。

【问题讨论】:

    标签: python facebook-graph-api facebook-opengraph


    【解决方案1】:

    我认为图片没有出现是因为the event's information is not accessible through the Graph API。查看活动页面,似乎是为a non-public group 创建的。我认为您可能需要成为该组的成员才能通过 Graph API 访问有关其事件的信息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多