使用 Facebook Graph API 可以追溯到多久之前?
我正在尝试在 iPhone 应用程序中获取照片和状态更新。但似乎在大约 10-15 次 API 调用之后,您就无法再转到下一页了。我注意到 Facebook 并没有在一个图形调用中提供所有内容,他们会在每个 API 调用结束时给你这个东西:
"paging":{"previous":"https:\/\/graph.
facebook.com\/myid\/statuses?access_token=somebigvalue","next":"https:\/\/graph
.facebook.com\/myid\/statuses?access_token=anothersomebigvalue"}}
现在我想知道是否有任何方法可以返回并抓取早期的照片(即状态更新)我在加入 Facebook 的头几天就被标记了)。有人有任何线索吗?
I'm trying to get my photos and status updates in my iphone app. But it seems that after about 10-15 API calls you can't go to the next page anymore. I noticed that Facebook does not give everything in one graph call, they'll give you this thig at the end of each API call:
"paging":{"previous":"https:\/\/graph.
facebook.com\/myid\/statuses?access_token=somebigvalue","next":"https:\/\/graph
.facebook.com\/myid\/statuses?access_token=anothersomebigvalue"}}
Now I wonder if there's any way I could go back and grab photos from very early days (i.e. status updates which I was tagged the first few days I joined to facebook). Has anyone got any clue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我终于发现我只能回溯一年半,直到2009年6月。我对此不满意,我可能会提出另一个问题,看看是否可以用其他方法回溯得更远。
I finally figured out that I can only go back one and a half year, until June 2009. I'm not happy with this, and I might open another question to see if I can go further back with other methods.
我尝试使用 Java 的 REST 框架使用 facebook api,并且能够获取一年前的状态消息。因此,如果您对一年的间隔感到满意 - 这就是您可以获得的。
I tried facebook api with REST framework for Java and I was able to get my status messages for an year ago. So if you are pleased with an interval of one year - this is what you can get.