Themeforest

Getting your facebook ID using your facebook username

To get your facebook ID using your username browse to the following URL – changing “username” for your facebook username:

https://graph.facebook.com/username

You should see information similar to the example below, including your facebook ID at the top of the page:

{
   "id": "123456789",
   "name": "XXXXXXXXXXX",
   "first_name": "XXX",
   "last_name": "XXXXXXXXXXX",
   "username": "XXXXXXXXXX",
   "gender": "male",
   "locale": "en_US"
}

21 Comments

  • Hi, i have followed your advice to take Facebook ID. I have taken it, use it in social stream and I have received this message:

    Facebook Syndication Error
    This feed URL is no longer valid. Visit this page to find the new URL, if you have access: http://www.facebook.com/profile.php?id=100002296235808

    I have already tried with the facebook user name (string after /). But it doesn’t work

    Many thanks and ciao

  • Hi:

    When I try to get my FB page ID that I get…

    {
       "error": {
          "message": "Unsupported get request.",
          "type": "GraphMethodException",
          "code": 100
       }
    }
    

    Can you suggest another solution?

    • Hi,

      That error would occur if either your ID is incorrect or you have age/profanity filters set on your facebook page

  • Thanks – works like a charm, simply replaced username in https://graph.facebook.com/username with my FB page name and got the FB id

  • I just installed your plugin on my demo site and i got the tabs to work but the formatting is different. Please take a look at the facebook/youtube tabs to see that there is a lot of white space… How can I make it looks like your demo??

    • Hi,

      For premium plugin support please contact via codecanyon

  • Hi,

    Developer licenses are not currently available from codecanyon. Only extended licenses.

  • Jquery Social. I used your command “https://graph.facebook.com/username” — it returns the profile ID, however when I place that ID into the plugin — it returns this:

    This feed URL is no longer valid. Visit this page to find the new URL, if you have access: http://www.facebook.com/profile.php?id=100002479304879

    That’s my fb profile? I tried several friends profiles and the same error came up.

    • Hi,

      For premium plugin support please contact via codecanyon.

  • ERROR:
    Facebook Syndication Error
    This feed URL is no longer valid. Visit this page to find the new URL, if you have access: <a …
    help me !

    • Please provide a copy of the purchase license from codecanyon

  • Thanks, I did’nt know how to get the id of the page after having set the username. But unfortunately I’ve the same result than Stephen Kane : blank for Facebook. And there is no error in the id. It is a page, not a profile..

    Thanks to help!

    • ok, I reply myself ;o) I’ve had the idea to use Facebook with my own profile (not the one of my facebook page) and that works now! I see the facebook page into the plugin (Even if I don’t understand why ;oD )

      Thanks!

      Christine

  • I had the same issue: Used FB id (personal id not a page) in the widget set up but getting the error — Could not retrieve id for the specified page. Please verify correct href was passed in. –

    • Hi,

      The facebook like box is only for pages, not personal profiles

  • i did as you say, my id is: 117697031673139, for some reason it’s not working. Hop you can help me asap, the plugin is really good!

    • hi,

      The facebook like box appears to be working ok now?

  • I did this (and the ID is the same as I had expected) … but when I enter into the widget – the display says “Could not retrieve id for the specified page. Please verify correct href was passed in.”

    • Hi,

      Are you using an ID for a facebook profile or a page

Leave a comment

To add code to your comments wrap the code text in [text][/text] tags