简体   繁体   English

Facebook 图表 API 和限制

[英]Facebook Graph API and limits

I am working with the Graph API but I have found it to be rather limited.我正在使用 Graph API 但我发现它相当有限。 In the news feed on the Facebook website you might see "X and 14 other friends likes Y page."在 Facebook 网站的新闻提要中,您可能会看到“X 和其他 14 个朋友喜欢 Y 页面”。 or "X and 3 other friends has changed their profile picture."或“X 和其他 3 个朋友更改了他们的头像。”

In the Graph API it will look like the code below when X and 14 other friends has liked the same page.在图表 API 中,当 X 和其他 14 位朋友喜欢同一页面时,它将如下面的代码所示。 The Graph API only returns the name of X but not how many friends other than X who have liked the page.图表 API 只返回 X 的名字,但不返回 X 以外有多少朋友喜欢该页面。

{
    application =     {
        id = 01010101;
        name = Pages;
    };
    comments =     {
        count = 0;
    };
    "created_time" = "2011-08-15T08:35:47+0000";
    description = "Description of page.";
    from =     {
        id = 1111;
        name = "X";
    };
    icon = "---";
    id = "http://static.ak.fbcdn.net/rsrc.php/v1/yN/r/xC785tTCIQO.gif";
    link = "http://..../";
    name = "Y";
    picture = "---";
    type = link;
    "updated_time" = "2011-08-15T08:35:47+0000";
}

I don't see any way to get this information.我看不到任何获取此信息的方法。 Am I right or am I missing something?我是对的还是我错过了什么?

It depends on the type of object you are accessing.这取决于您访问的 object 的类型。 Recently, Facebook have begun to hide useful info such as who specifically liked something, I'd imagine because they don't want people writing analytics packages for facebook but would prefer users to use the facebook system.最近,Facebook 已经开始隐藏有用的信息,比如谁特别喜欢某样东西,我想是因为他们不希望人们为 facebook 编写分析包,但更希望用户使用 Z26CAE7718C32180A4A0F8E19D 系统。

I know when it comes to images you can only get the number of likes, but not who they actually came from.我知道当涉及到图像时,你只能得到喜欢的数量,而不是它们的实际来源。

Your best bet is to use FQL which still lets you retrieve some of this information.您最好的选择是使用 FQL,它仍然可以让您检索其中的一些信息。

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

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