如何在facebook api v2.8中获取页面总页数

Kru*_*hah 4 facebook facebook-graph-api

https://developers.facebook.com/docs/graph-api/reference/v2.8/object/likes

total_count属性:喜欢的总人数.仅在设置标志summary = true时返回.

我想知道在哪里设置summary = true

我正在使用FB节点模块

以下是我的代码段

FB.api('xxxxx', {
    fields: ['id', 'name', 'likes', 'checkins', 'talking_about_count'],
    access_token: accessToken
}, function(res) {
    console.log(res);
});
Run Code Online (Sandbox Code Playgroud)

Tob*_*obi 14

您可以使用对象的fan_count字段Page.

看到