Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Graph API Read Followers Count

Using the Facebook Graph API or some other means, is there a currently-available way to get a user's follower count? You'd think it would be a simple readable metric field at the user level, but after hours of searching, I cannot find such a field.

I know Facebook considers the concept of followers to be valid, because they have a working "edge" for it with their web interface, https://www.facebook.com/user_name/followers as well as listing the account on the user's main page (see image example below).

Certainly it seems the capability to read, or at least derive, the followers count existed previously in the form of reading the "subscribers" list for a user, but that's now obsolete. An alternative method seems to have been to use FQL to query the data. This method is now also obsolete. And there are stackoverflow questions about it, a good example is here, but they seem to relate to previous capabilities no longer available.

Example from Facebook user page

like image 725
robbpriestley Avatar asked Jun 01 '16 15:06

robbpriestley


People also ask

How do I check my followers on Facebook graph?

From your News Feed, click Pages in the left menu. Go to your Page. Tap Activity at the top of your Page. Scroll down and tap Followers.

What data can I get from Facebook Graph API?

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

Is Facebook Graph API deprecated?

API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.


2 Answers

According to the docs, there is no possibility to get the follower count: https://developers.facebook.com/docs/graph-api/reference/user

The subscribers endpoint was removed with v2.0 already: https://developers.facebook.com/docs/apps/changelog#v2_0

Other threads about the same topic:

  • how to get followers list from facebook account by graph api?
  • facebook graph api to get follower count of different account
like image 128
andyrandy Avatar answered Sep 30 '22 19:09

andyrandy


If you have an access_token, you can call {profile-id}/insights/page_fans_country and retrieve the number of people who like the page aggregated by country. This works for any public profile.

https://graph.facebook.com/{profile-id}/insights/page_fans_country?access_token={access-token}

You could then sum up the countries to get the total number of followers. If you need to retrieve followers for your own profile, you can call page_fans which provides the total number of people who have liked your page.

like image 31
Evan Appleby Avatar answered Sep 30 '22 19:09

Evan Appleby