get picture object from facebook post with graph api

后端 未结 5 1187
情书的邮戳
情书的邮戳 2021-02-05 13:21

I\'m able to get a picture-url from a specific facebook-post through the facebook graph-api (ie https://developers.facebook.com/tools/explorer?method=GET&path=19611830383339

5条回答
  •  生来不讨喜
    2021-02-05 13:51

    You can simply get the object_id if the post type is a photo directly on the first request to graph api by passing arguments like this

    https://graph.facebook.com/$id/posts?fields=id,message,created_time,type,object_id&access_token=$accessToken

提交回复
热议问题