开发者

Facebook Graph API doesn't return the latest picture for an event

开发者 https://www.devze.com 2023-03-31 07:35 出处:网络
Pretty sure this is a caching (server side not开发者_运维技巧 client) issue but no idea how to resolve.

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消