我想通过页面在帖子中发布所有文字和图片。
目前我有点像
https://graph.facebook.com/ {page ID} / posts?& access_token = {access token}。
作为回应,我收到帖子列表,但在每个帖子中只有一个图片链接即将到来,同时有多个图片上传到该帖子。如何获取帖子中上传的所有图片?
回应:
https://docs.google.com/document/d/1c-pkorfy-ib4CjRhMEl3SME1WkyZ6DP8hLiJR96AfS0/edit?usp=sharing
先谢谢。
答案 0 :(得分:0)
在您致电https://graph.facebook.com/ {page ID} / posts?& access_token = {access token}后,您可以获得 ID 。因此,请将此ID用作 post_id 。假设post_id是555361861181187_706802686037103,那么你可以进行FQL查询:
SELECT attachment,created_time FROM stream WHERE POST_ID = '555361861181187_706802686037103'
截图:
作为替代方法,您只需使用FQL而不是graph.facebook.com/ {page ID} / posts端点。假设555361861181187是页面ID,例如
SELECT附件,消息,created_time FROM流WHERE source_id ='555361861181187'和created_time< = now()ORDER BY created_time DESC LIMIT 200
截图:
FQL文档:https://developers.facebook.com/docs/reference/fql/
最后,请在https://developers.facebook.com/x/apps/ {APP_ID} /信息中心/
重设您的 App Secret