简体   繁体   English

Facebook Graph API获得喜欢的人

[英]Facebook Graph API to get what someone likes

Is it possible to get what someone likes using the Graph API? 使用Graph API是否可以得到别人喜欢的东西?

I mean, I do can get my likes with /me?fields=likes 我的意思是,我可以通过/me?fields=likes

But I can't get other's likes with /{OTHER_ID}?fields=likes 但我无法通过/{OTHER_ID}?fields=likes获得其他人的喜欢/{OTHER_ID}?fields=likes

Even if the OTHER_ID likes page are set public. 即使OTHER_ID喜欢页面设置为公开。

I was trying to use jquery ajax with the user ID, but the ajax requests from facebook are all encrypted since they use https. 我试图将jquery ajax与用户ID一起使用,但是来自Facebook的ajax请求均已加密,因为它们使用https。

Thanks. 谢谢。

But I can't get other's likes with /{OTHER_ID}?fields=likes 但我无法通过/ {OTHER_ID}获得其他人的喜欢?fields = likes

Even if the OTHER_ID likes page are set public. 即使OTHER_ID喜欢页面设置为公开。

That doesn't matter - you need user_likes permission from the user who's likes you want to query; 没关系-您需要想要查询的用户的user_likes权限; the privacy setting does not matter. 隐私设置无关紧要。

I was trying to use jquery ajax with the user ID, but the ajax requests from facebook are all encrypted since they use https. 我试图将jquery ajax与用户ID一起使用,但是来自Facebook的ajax请求均已加密,因为它们使用https。

That would not be allowed anyway. 无论如何,这是不允许的。 Your app is only allowed to use what the API explicitly provides access to. 您的应用只能使用API​​明确提供的访问权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM