Open Graph api for feed returning inconsistent results

谁说我不能喝 提交于 2019-12-11 04:34:12

问题


Called the https://graph.facebook.com/{id}/feed url is randomly missing data.

Here's what I did

  • Create a test user for my sandbox mode app with publish_stream and read_stream permissions
  • Add a post to their wall via POST to graph.facebook.com/{id}/feed?access_token={token}
  • Login as test user and confirm post was added to their news feed
  • GET on graph.facebook.com/{id}/feed to view JSON data

So when I hit the feed, sometimes the successfully created Feed Post is in the JSON, and sometimes it's not. Continually hitting that API endpoint (i.e. hitting refresh over and over in my browser) will have the data pop in and out in no discernable pattern.

I have no idea what I could be doing wrong, or if it's just Facebook for that matter. What could be the problem?


回答1:


I experienced this as well. My solution: Add 'user_groups' to the list of required permissions. Log out, log in again and everything should work.



来源:https://stackoverflow.com/questions/9643148/open-graph-api-for-feed-returning-inconsistent-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!