A workaround for facebook Graph API issue – How to get group ID number from its URL

A workaround for facebook Graph API issue – How to get group ID number from its URL

Email this to someoneShare on Google+1Share on LinkedIn0Tweet about this on TwitterShare on Facebook0Share on Tumblr0Digg this

In this article,  I would like to share my solution to get a Facebook group ID number from its URL.

Right now, this operation could not be done using Facebook Graph API or FQL. I have no idea why that old dated issue still not fixed by Facebook !

In this solution I have used a bot which login to Facebook, then go to the target group  and extracts group id in somewhere from the HTML content.

Here is the code source of a working solution based on PHP cURL library and DOM Xpath.

FacebookBot.php 

 GetGroupIdFromUrl.php

Try it here (Live demo) :

If  you have found  a bug or an alternative solution, please dont’t hesitate to post a comment or send me a private message. Thank you.

 

 

Email this to someoneShare on Google+1Share on LinkedIn0Tweet about this on TwitterShare on Facebook0Share on Tumblr0Digg this
Author: Walid Karray

2 thoughts on “A workaround for facebook Graph API issue – How to get group ID number from its URL

  1. Ralph

    Hi admin do you need unlimited articles for your site ? What if
    you could copy article from other blogs, make it pass copyscape test and publish on your site
    – i know the right tool for you, just search in google:
    Ziakdra’s article tool

    Reply
  2. seo bastardo

    Hola! Gracias por esta información. Llevaba un rato busacando
    por internet sobre este tema hasta el momento en que he encontrado tu página.

    Está muy bieen el artículo. Prosigue de esta forma!

    Reply

Leave a Reply

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