如何通过图形API从Facebook帐户获取关注者列表? [英] how to get followers list from facebook account by graph api?

查看:180
本文介绍了如何通过图形API从Facebook帐户获取关注者列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过图形API从Facebook帐户获取关注者列表?

how to get followers list from facebook account by graph api?

我通过Facebook帐户认识了朋友

I got friends from facebook account by

FB.api('/me/friends?access_token='+accessToken, {
                        fields : 'id, name, picture'
                    }, function(response) {
});

有什么方法可以吸引我的Facebook帐户的关注者?

There is any way to get my Facebook account's followers?

推荐答案

过时的答案

从API版本2.0开始,您无法获得用户的订阅者

You cannot get a user's subscribers as of API version 2.0


是的.跟随特定用户的用户是其 subscribers ,端点


Yes there is. The User's who follow a particular User are his subscribers, and the endpoint

https://graph.facebook.com/<user_id>/subscribers

如果您没有user_subscriptionsfriends_subscriptions权限,这将向您显示总数,如果您具有这些权限,则将获得跟随用户的用户的名称和ID.

This will show you the total count if you don't have user_subscriptions or friends_subscriptions permission, if you have those you would get name and ids of the Users who follow a User.

这篇关于如何通过图形API从Facebook帐户获取关注者列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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