有时候,Facebook Graph API object_id丢失 [英] Facebook Graph API object_id missing sometimes
问题描述
我的请求网址是:
xxxxxxxxxxxxxx / feed?fields = from ,id,created_time,picture,link,object_id,message,likes.fields(id)
使用object_id,我想获得该帖子的大图,使用以下网址:
http://graph.facebook.com/OBJECT_ID/picture ?type = normal
图片返回字段始终被填充,但是在某些帖子中没有返回object_id。为什么是这样?我真的需要高分辨率的图片,没有找到另一种获取方式。
仅返回object_id如果附件是Facebook对象(例如用户上传的图像)。 Feed中的一些故事根本没有图片,一些图片不是Facebook对象(例如,共享链接的缩略图)。
I am using the Facebook Graph API to get the news feed of a user.
My request URL is: xxxxxxxxxxxxxx/feed?fields=from,id,created_time,picture,link,object_id,message, likes.fields(id)
With the object_id, I want to get the big picture of the post, using the following url: http://graph.facebook.com/OBJECT_ID/picture?type=normal
The picture return field is always filled, but the object_id is not being returned at some posts. Why is this? I really need the high res picture, and didn't find another way to acquire this..
The object_id is only returned if the attachment is a facebook object (e.g. an image uploaded by the user). Some stories in feed don't have a picture at all, and some pictures are not facebook objects (e.g. thumbnails for shared links).
这篇关于有时候,Facebook Graph API object_id丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!