图形API-来自非朋友的公开身份 [英] Graph api - public status from non-friend

查看:57
本文介绍了图形API-来自非朋友的公开身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Graph API,是否可以假设非公开对象从非朋友那里获取状态?

Using the Graph API, is it possible to retrieve status from a non-friend assuming that they are public?

我曾尝试通过发出带有参数'/user id/statuses'的GET请求来使用Facebook C#SDK检索公共状态,但是即使知道某些状态是公开可用的,我也得到了一个空的结果.

I have tried retrieving public statuses using the Facebook C# SDK by issuing a GET request with parameters '/user id/statuses', but I am getting an empty result even though I know that some statuses are publicly available.

更新:今天,我似乎可以通过阅读/posts (有时甚至是/statuses )来查看非朋友的公开身份).有人知道来自Facebook的已解决错误吗?

UPDATE: Today it seems that I am able to see public statuses from non-friends by reading /posts (sometimes even /statuses) on the user. Anyone aware of a resolved bug from Facebook?

更新:今天又无法正常工作了.它可以与Graph API Explorer一起使用,但不能与我的测试应用程序请求的令牌一起使用

UPDATE: And today not working again. It works with the Graph API Explorer, but not with a token requested from my test application

推荐答案

您可以通过 Feed 获取帖子,如下所示:

You can get the posts through Feed like this:

$facebook->api("/USER_ID/feed");

如果该用户不是您的朋友,这将获取该用户的所有公开帖子.

This will fetch all the public posts of the user, if he is not your friend.

这篇关于图形API-来自非朋友的公开身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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