打开图表api,使Feed返回不一致的结果 [英] Open Graph api for feed returning inconsistent results

查看:84
本文介绍了打开图表api,使Feed返回不一致的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调用https://graph.facebook.com/{id}/feed网址是随机丢失的数据。

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

这是我做的


  • 使用publish_stream和read_stream权限为我的沙箱模式应用程序创建测试用户

  • 通过POST将其添加到墙上以graph.facebook.com/{id}/feed?access_token={token}

  • 以测试用户身份登录,并确认发布已添加到他们的新闻资讯

  • GET on graph.facebook.com/{id}/feed to view JSON data

  • 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

所以当我点击Feed时,有时成功创建的Feed Post是JSON,有时它不是。不断点击API端点(即在我的浏览器中一遍又一遍地刷新)将无法识别出数据。

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.

我不知道我是什么可能做错了,或者只是Facebook这个问题。可能是什么问题?

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

推荐答案

我也经历过这个。我的解决方案:将user_groups添加到所需权限的列表中。注销,再次登录,所有内容都应该正常工作。

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.

这篇关于打开图表api,使Feed返回不一致的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆