Find out facebook user ID



  • In some cases (ex. when you need to set up SVC to connect with Facebook in a special way), you may need to know your own facebook user ID. Since most of us already set their facebook url, this ID is not shown any more in the browser's URL bar. There are several tricks and workarounds to find the user ID but here is the easiest one by using facebook's "graph API" service to find out the hidden ID:

    I will use facebook founder Mark Zuckerberg's page as an example:

    www.facebook.com/zuck - as you see, here is no user ID in the URL

    now, simply add "graph" in front of the url (replace 'www' with 'graph'):

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

    after you load the page https://graph.facebook.com/zuck you will see the facebook ID with some other relevant data regarding to the given user.

    graph.facebook.com/zuck

    {
    "id": "4",
    "name": "Mark Zuckerberg",
    "first_name": "Mark",
    "last_name": "Zuckerberg",
    "link": "https://www.facebook.com/zuck",
    "username": "zuck",
    "gender": "male",
    "locale": "en_US"
    }


Log in to reply