简体   繁体   English

Facebook Graph API:在用户的供稿源上浏览照片

[英]Facebook Graph API : get satuses with photos on user's feed

I'm trying to get user's own posts on with images on his feed. 我正在尝试在其供稿上获取用户自己的帖子以及图像。

GET https://graph.facebook.com/USER_ID/photos/uploaded

will get me the uploaded images but without the status they were posted on . 将为我获取上载的图像,但没有发布状态

on the other hand, 另一方面,

GET https://graph.facebook.com/USER_ID/feed?fields=message 

will work just fine , but 会很好,但是

GET https://graph.facebook.com/USER_ID/feed?fields=message,attachments

is returning me this 还给我这个

 { "error": { "type": "http", "message": "unknown error", "status": 500 } } 

(FYI as for v2.1 FQL is deprecated) (不建议使用FYI v2.1 FQL)

help? 救命?

To my knowledge, you have to do USER_ID/feed and then filter out the posts that aren't images. 据我所知,您必须执行USER_ID/feed ,然后过滤掉不是图像的帖子。 In those kinds of objects, there is no attachment field. 在这些对象中,没有attachment字段。 There isn't any way of filtering content in Graph API like you could do in FQL. 不能像在FQL中那样在Graph API中过滤内容。 You would have to get the post type which I'm pretty sure is the field type . 您将必须获得职位类型,我很确定是字段type

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM