Abhijit Sen
Abhijit Sen

Reputation: 181

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

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

I got friends from facebook account by

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

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

Upvotes: 16

Views: 30639

Answers (2)

Anvesh Saxena
Anvesh Saxena

Reputation: 4466

OUTDATED ANSWER

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


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

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

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.

Upvotes: 5

HoangHieu
HoangHieu

Reputation: 2840

Now in new version 2.0 subscribers has been remove in this version, but you can use v1.0 to get follows user

FB->api("v1.0/me/subscribers"); (Javas script);

require permission user_subscribers ...

Upvotes: 3

Related Questions