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

  • Home
  • SEARCH
  • 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 6671617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:24:34+00:00 2026-05-26T03:24:34+00:00

If exist a facebook fan page like this: https://www.facebook.com/HuffingtonPost I suppose to get likes

  • 0

If exist a facebook fan page like this:

https://www.facebook.com/HuffingtonPost 

I suppose to get likes count calling graph API:

https://graph.facebook.com/https://www.facebook.com/HuffingtonPost

Infact here I get:

{
    "id": "https://www.facebook.com/HuffingtonPost",
    "shares": 435839
}

On the other hand if I call

https://graph.facebook.com/HuffingtonPost

I get a more verbose output:

{
   "id": "18468761129",
   "name": "The Huffington Post",
   "picture": "http://profile.ak.fbcdn.net/hprofile-ak-ash2/188072_18468761129_6398033_s.jpg",
   "link": "http://www.facebook.com/HuffingtonPost",
   "likes": 435832,
   "category": "Website",
   "website": "http://www.facebook.com/HuffingtonPost",
   "username": "HuffingtonPost",
   "company_overview": "The Internet Newspaper\nNews | Blogs | Video | Community",
   "description": "The Huffington Post - The Internet Newspaper. - Company Overview: The Internet Newspaper News | Blogs | Video | Community | Facebook",

       [... omissis ...]

}

Can anybody tell me what’s difference between these two opengraph objects?
There is also a slight difference between number of shares and likes. Why?

Update:

During last days graph api returned also object type, so I realized that:

  • First API call returns an link_stat type object.
  • Second API call returns a page type object.

In first case shares count should represent sum of:

  • number of likes of this URL
  • number of shares of this URL (this includes copy/pasting a link back to Facebook)
  • number of likes and comments on stories on Facebook about this URL
  • number of inbox messages containing this URL as an attachment.

In second case like count represents only itself

May somebody confirm me shares count correctness?

  • 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-26T03:24:35+00:00Added an answer on May 26, 2026 at 3:24 am

    For the breakdown between likes, shares and comments (which are added up and used as the “likes” number on the likes button, you’re better off using FQL.

    If you use OG, something like http://graph.facebook.com/http://example.com will show you:

    {
       "id": "http://example.com",
       "shares": 3
    }
    

    … as you’ve noted above. If you use FQL, you can get the breakdown of each.

    <?php
    
    // require the php sdk
    require_once 'facebook-php-sdk/src/facebook.php';
    
    // Create our Application instance.
    $facebook = new Facebook(array(
      'appId' => 'YOUR_APP_ID',
      'secret' => 'YOUR_APP_SECRET',
      'cookie' => true,
    ));
    
    $external_result = $facebook->api(array(
    'method' => 'fql.query',
    'query' => 'SELECT share_count, like_count, comment_count, total_count, click_count FROM link_stat WHERE url="http://example.com";'
    ));
    
    echo '<li>'.number_format($external_result[0]['like_count']).' likes, '.number_format($external_result[0]['share_count']).' shares';
    
    echo '<pre>';
    print_r($external_result);
    echo '</pre>';
    
    ?>
    

    This will display something on-screen like:

    * 1 likes, 2 shares
    Array
    (
        [0] => Array
            (
                [share_count] => 2
                [like_count] => 1
                [comment_count] => 0
                [total_count] => 3
                [click_count] => 0
            )
    
    )
    

    Also, SA now has a Facebook-specific site that may be helpful to you. 🙂 facebook.stackoverflow.com

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

Sidebar

Related Questions

I want to open info page through this link on uiwebview http://www.facebook.com/TinRoofNashville?sk=info But on
I would like to know if a fan page has been deleted from facebook.
I am calling com.facebook.graph.Facebook.init(APP_ID, loginHandler); to log in to facebook using the actionscript api
I am trying to retrieve comments by given url, e.g. https://graph.facebook.com/comments/?ids=http://example.com/ However, when I
Facebook announced possibility to use FQL via Graph API: https://developers.facebook.com/blog/post/579/ That is very nice,
Per the documentation located here: https://developers.facebook.com/docs/opengraph/news/ I should be able to post a news.reads?article
I'm looking for a similar option that exist in Facebook (http://developers.facebook.com/docs/reference/plugins/send/) But for google.
I followed the example here -- https://github.com/facebook/php-sdk : require 'php-sdk/src/facebook.php'; $facebook = new Facebook(array(
I have a photo id 2296309061879 and it work perfectly in http://www.facebook.com/photo.php?fbid=2296309061879 I use
Suppose that two tables exist: users and groups . How does one provide simple

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.