Shubham Kumar

Hey, I am Shubham and i love Blogging, Coding and exploring new things and obviously sharing my experience with you.

28 Responses

  1. Panpic says:

    getFacebookDetails($url) not work right now, Facebook warning update version 2.1
    Could you help How do I update v 2.1

  2. hi, the json code delay the loading time of the website, it is taking too long time to load when i paste your json code to count the facebook shares. Any solution to this probelm….Thanks in advance

  3. Coding101 says:

    Hi, Facebook Share Count not working .. Any solution ? Thanks!

  4. sam says:

    not working anymore for the get facebook likes.

  5. Ismail ansari says:

    “” is incorrect use “”

  6. Sujoy Dhar says:

    I have developed the simple coded system to check the counts of social sites , this is really great to have and check the social count easily , if you like my tool be sure to give me a thanks 🙂

  7. Virendra says:

    Hi Shubham,
    Thanks for nice article. I used to fetch data using FQL too. But in V2.5 sharecount needs access token. Issue is access token has certain life time and it needs to extend it every time which requires web authentication.
    I was using a java code to hit FB API to get share count for public news articles so it runs periodically and fetch data but in case of access token i need to update access token when it gets expired how will it be possible without using any web part.

    Virendra Agarwal

  8. Renate says:

    Saw the problem with the access token but didn’t understand your solution. I tried it with the URL where the counter details are asked from. So I put the normal URL of the website into this part
    $data = getData("MyCodingTricks");
    like this
    $data =getData("");
    That did the trick. Do you see any problems with this solution?

    Thanks for your posting 🙂

  9. Torben says:

    Hey Shubam,

    the FB Graph API does not work any more without an access_token. When requesting e.g. you will receive the following response:

    "error": {
    "message": "An access token is required to request this resource.",
    "type": "OAuthException",
    "code": 104

    I used it to fetch likes and talking_about_counts. Do you know a way to avoid the use of an access token or do you have any advice how to solve this problem?

    Best regards, Torben

  10. Can I create a site specific plugin with the above code if so how?

  11. Jorge says:

    Hello! How can i count Twitter Share in php? Thanks in Advance.

Leave a Reply

Your email address will not be published. Required fields are marked *