Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6245627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:32:24+00:00 2026-05-24T12:32:24+00:00

I’ve been testing graph API and ran into a problem. How can I get

  • 0

I’ve been testing graph API and ran into a problem. How can I get like count from photos of a page/group?

I’m administrator/creator of a group. When entering in https://developers.facebook.com/tools/explorer/ certain photo ID from that group it brings almost all data, even comments, but not the like count. For like part it needs (according to docs) access token despite the fact that anyone can access that info.

How to get access token of my page/group with required permissions and how to use it to get info I need?

If possible I would like to get JSON from a single address if it is possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:32:25+00:00Added an answer on May 24, 2026 at 12:32 pm

    This is possible with a page (even without an access token!) and here’s how:

    Visit the page on the graph

    Get the page’s id by going to the page’s url:

    https://www.facebook.com/pages/platform/19292868552

    The number on the end of the URL is the page’s id. Take that id and use it with the graph explorer (here) or just visit it directly.

    Visit the page’s albums

    Now appending albums to that url will give you all the albums the page has, including wall photos:

    https://graph.facebook.com/19292868552/albums

    The output looks like this:

    {
       "data": [
          {
             "id": "10150160810478553",
             "from": {
                "name": "Facebook Platform",
                "category": "Product/service",
                "id": "19292868552"
             },
             "name": "Bringing Operation Developer Love to Europe",
             "description": "Blog post: http://developers.facebook.com/blog/post/479\n\nVideos and presentations uploaded here: http://developers.facebook.com/videos/",
             "location": "Berlin, Paris, London",
             "link": "https://www.facebook.com/album.php?fbid=10150160810478553&id=19292868552&aid=285301",
             "cover_photo": "10150160811078553",
             "count": 32,
             "type": "normal",
             "created_time": "2011-04-06T23:05:44+0000",
             "updated_time": "2011-04-06T23:33:20+0000",
             "comments": {
             ..... etc ....
    

    Selecting an album

    For each object in the data array there is an id and a name. Using these two fields you can select the album that contains the photos you want. The first album in this result is “Bringing Operation Developer Love to Europe”. Lets look at this albums photos.

    Seeing Photos

    If you’ve followed the answer up to this point the next step should be fairly obvious. Use the id for the album you want and append photos to the graph url:

    https://graph.facebook.com/10150160810478553/photos

    Seeing a Photo’s likes

    Much like selecting an album, simply use an id in the output of the above step and append likes to the url to see a photos likes:

    https://graph.facebook.com/10150160813853553/likes

    Output:

    {
       "data": [
          {
             "id": "1163036945",
             "name": "Aditya Pn"
          },
          {
             "id": "1555885347",
             "name": "Nadin M\u00f6ller"
          },
          {
             "id": "100001643068103",
             "name": "Umut Ayg\u00fcn"
          },
          {
             "id": "100000165334510",
             "name": "Alessandra Milfont"
          },
          {
             "id": "100001472353494",
             "name": "Sayer Mohammad Naz"
          },
          {
             "id": "1051008973",
             "name": "Jenson Daniel Chambi"
          },
          {
             "id": "100000233515895",
             "name": "Ruby Atiga"
          },
    

    Using this output you can simply count the number of entries in the data array to get the like count.


    Note that all of this is possible from using the graph explorer by clicking on ids in the output box and the connections sidebar (except for the last /likes connection, which will hopefully be added soon. I hope this helps. Also, you do not need an access token to do any of this because pages are public. Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I'm making a simple page using Google Maps API 3. My first. One marker
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.