Facebook api - check if post to embed has been removed or the privacy settings have been changed

时间:2017-08-05 11:19:26

标签: facebook facebook-graph-api

I'm currently pulling in reviews via the /{page-id}/ratings endpoint that facebook's graph api provides. From here I get the id of the user that made the review, and also the post id by adding the query parameter "fields=open_graph_story" to the query string. After this I build the fully qualified url's to embed the post. As you can see below certain reviews display fine but others can't since they're no longer available due to being removed or their privacy settings having been changed. My question is how can I determinate if a post is "no longer available" using facebook's graph api so that I can filter out those posts which won't display properly. The endpoints discussed earlier are of no use since that information isn't available. Thanks for any help!

http://i.imgur.com/y1JI6tp.png

0 个答案:

没有答案