从Facebook阅读公共时间表 [英] Read Public Timeline from Facebook

查看:134
本文介绍了从Facebook阅读公共时间表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS Facebook sdk上是新的。我使用版本 3.1.1 。我可以通过sdk到达我的个人资料信息。但我想知道如何访问和阅读其他用户的公共时间表?我在网上搜索,但找不到任何东西。感谢您的答案

解决方案

在Facebook上,您有一个USER_ID和别名。您可以通过访问其公开的个人资料来获取别名。
例如 - https://www.facebook.com/shireesh.asthana 其中给你别名shireesh.asthana



现在,您可以通过访问以下方式获取实际的User_Id:



https://graph.facebook.com/shireesh.asthana



其中给您我的User_id为631951716



现在您可以在631951716 / feed上做一个GET请求,这将帮助您获取该用户的帖子那你当然可以看作一个非朋友)。



希望有帮助!


I am new on iOS Facebook sdk. I am using version version 3.1.1. I can reach my profile's information via sdk. But I am wondering How can I access and read from other user's public timeline? I search on web but I couldn't find anything. Thanks for answers

解决方案

At Facebook, you have a USER_ID and an alias. You can get the alias by accessing their public profile. For example- https://www.facebook.com/shireesh.asthana which gives you the alias shireesh.asthana

Now you can get the actual User_Id by going to:

https://graph.facebook.com/shireesh.asthana

which gives you my User_id as 631951716

Now you can just do a GET request on 631951716/feed which will help you get the posts of that user(which of course you can see as a non friend).

Hope that helps!

这篇关于从Facebook阅读公共时间表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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