Graph API how get facebook page members/likes

facebook api get page likes count
facebook api check if user likes page
facebook api get page followers count
facebook page like api
facebook graph api explorer
facebook page like graph
facebook graph api example
get facebook page reviews api

Facebook like check

I've found an interesting app . This fb-app get all likes from any fanpage and sort it by mass and country!

My question:

how do these app get the data from the graph api ?

First: get the fanpage-object no access token needed

https://graph.facebook.com/cocacola/

{
   "about": "The Coca-Cola Facebook Page is a collection of your stories showing how people from around the world have helped make Coke into what it is today.",
   "checkins": 146,
   "description": "Created in 1886 in Atlanta, Georgia, by Dr. John S. Pemberton, Coca-Cola was first offered as a fountain beverage at Jacob's Pharmacy by mixing Coca-Cola syrup with carbonated water. \n\nCoca-Cola was patented in 1887, registered as a trademark in 1893 and by 1895 it was being sold in every state and territory in the United States. In 1899, The Coca-Cola Company began franchised bottling operations in the United States. \n\nCoca-Cola might owe its origins to the United States, but its popularity has made it truly universal. Today, you can find Coca-Cola in virtually every part of the world.\n\nCoca-Cola Page House Rules: http://CokeURL.com/q28a",
   "founded": "1886",
   "is_published": true,
   "location": {
      "street": "",
      "zip": "",
      "latitude": 48.886763644968,
      "longitude": 2.2428464993582
      },
  "talking_about_count": 903212,
  "username": "coca-cola",
  "website": "http://www.coca-cola.com",
  "were_here_count": 0,
  "category": "Food/beverages",
  "id": "40796308305",
  "name": "Coca-Cola",
  "link": "https://www.facebook.com/coca-cola",
  "likes": 58345623, 
  "cover": {
     "cover_id": "10152037156953306",
     "source": "http://sphotos-b.ak.fbcdn.net/hphotos-ak-ash4/s720x720/602289_10152037156953306_1443207674_n.jpg",
     "offset_y": 0
  }
}

second: get the likes from the facebook object:

https://graph.facebook.com/cocacola/likes?access_token=xxxxxxx

now i will receive all fan-page which "cocacola" like, but i need all users which like cocacola!

Maby its only possible with FQL Query ?

With FB 2.6 API you can get total likes with fan_count field.

http://graph.facebook.com/cocacola/?fields=fan_count&access_token={value}

Graph API Reference v8.0: Page Likes, Graph API Reference v8.0: Page Likes. Reading. The Pages that this Page has liked GET /v8.0/{page-id}/likes HTTP/1.1 Host: graph.facebook.com The Page must also be able to like the object (whether via API or on Facebook.com). The object must not have already been liked by the Page. If the Page has already reacted to an object (wow, sad) then a like will succeed, but the reaction will not change.

Facebook will not give you a list of users who like a page. You don't need this to create this app. You can get this data by querying publicly available insights data.

This URL will get you the raw data this app uses to create this graph:

https://graph.facebook.com/cocacola/insights/page_fans_country?access_token=XXXXXX

You can get this information with any valid access_token.

Object Likes - Graph API, Graph API Reference v8.0: User Likes. If you want to learn how to use the Graph API, read our Using Graph API guide. Time the object liked the page. Getting Facebook page likes history by countries using Graph API Step 1:Get access Token from the Facebook Graph API explorer. In order to retrieve Facebook data through their Graph API, we must get an access token from the Facebook Graph API explorer.The access token is a special key which the app uses to call the Graph API on behalf of you

https://graph.facebook.com/cocacola/?fields=fan_count&access_token=#######

You can get the facebook page member likes using the field fan_count. But you have to pass page access token rather than the user access_token.

Graph API Reference v8.0: User Likes, Get fields and edges on a Page. If you want to learn how to use the Graph API, read our Using Graph API guide. The number of users who like the Page. Facebook provides the Graph API Explorer, a useful tool for working with the Graph API. Here I request the node for Senator Warner’s page: Each node has a numerical id, but some nodes also have string identifiers (e.g., “MarkRWarner”). In addition, each node has a type. Depending on the type, the Graph API will return certain fields by

Page - Graph API Reference, If you want to learn how to use the Graph API, read our Using Graph API guide. The number of users logged in to Facebook who saw tabs on your Page. The number of new people who have liked your Page broken down by paid and� On May 5, 2020, we released six new Page permissions to replace the manage_pages and publish_pages permissions.. Please visit our V7.0 Blog post, Graph API Changelog, and Pages API Overview for more information.

Page/insights - Graph API, If you want to learn how to use the Graph API, read our Using Graph API guide. Notes added by viewing page on this User. A company specified unique identifier of employee users within a company. Sports teams the User likes. PHP / Facebook Graph API Call to Retrieve and Display URL Data. Of course, I know some of you would like to access the Facebook Graph API data for a given URL. So, the code below shows how to retrieve and display the URL data using PHP and PHP’s built-in curl method.

Graph API User, If you want to learn how to use the Graph API, read our Using Graph API guide. Parameters. This� When a person visiting your webpage clicks the Like button, an App Event is triggered to log this like on Facebook. Get a Customized Like Button Use the Like Button Configurator to get the Like button code to insert into your webpage.

Comments
  • Appears to also work with v3.2 graph.facebook.com/v3.2/[page_id]/…
  • I tried this solution and even with a valid access_token I get an empty data object.
  • I just tried this in the Graph API Explorer and it still works for me.
  • This works great, thanks. Do you know why other options from your linked page return an empty result? I've replaced page_fans_country with page_fans_city or page_fans_gender_age and just gettig back empty pages with paging
  • @Dev-otchka you have to request for the Extended Permission called read_insights. You will now get the number of likes for a page for each country.