0

I used to be able to go to my Facebook profile page https://www.facebook.com/{Username} and replace the "www" for "graph" https://graph.facebook.com/{Username}.

The answer to that used to be my real facebook ID and some other info, but now I get:

{
   "error": {
      "message": "(#803) Cannot query users by their username ({Username})",
      "type": "OAuthException",
      "code": 803
   }
}

Yesterday I made the exact same thing and it worked, but today it doesn't. Is there any other way of finding my ID? Does it work for anyone?

  • Maybe you will have to pass your credentials into the api. (the json error talk about oauth) – richerlariviere Jun 16 '15 at 14:22
  • What do you _need_ your global user id for anyhow? Every third party app that you use under API v2 will get an app-scoped user id anyway. – CBroe Jun 16 '15 at 17:38
  • Giving my global ID I can be assigned a Role on all the company's apps, even if I have never logged in any of them. We don't know another way to do it besides going manually to every app. – Juan Carlos Carbonell Jun 17 '15 at 10:21
  • Possible duplicate of [How do I find my Facebook group ID?](http://stackoverflow.com/questions/8957340/how-do-i-find-my-facebook-group-id) – Prashant Srivastav Feb 07 '17 at 09:23

10 Answers10

4

For finding any facebook group_id or page_id or user_id go to inspect element of page and find these in meta tags.

Group Id

 fb://group/Here_is_your_group_id

Profile user_id

 fb://profile/here_is_your_user_id 

Page Id

fb://page/here_is_your_page_id
Prashant Srivastav
  • 1,723
  • 17
  • 28
1

There are already 3 exact same questions in the last 2 hours. Please use the search function of StackOverflow before posting a question!

You cannot get the username field anymore. This is very well documented in the Facebook docs.

See

Community
  • 1
  • 1
Tobi
  • 31,405
  • 8
  • 58
  • 90
1

graph.facebook.com/{Username} is not available now but lookup-id.com still can find your facebook ID

1

If you only have your user ID, the simplest way would be to use an online service (like this one: http://getuserid.com) and paste your Facebook username.

If you need the user ID by programming, this is different. You could in this case parse the HTML code of the page (CTRL + U will show you the HTML code of the page) and search for the term entity_id, which is the user ID. You could then use regex to extract the information.

1

There is no way to get your Facebook ID via the Graph API!

You can use a regular expression to find your Facebook ID. If you paste the source of a profile page (or page/group) inside http://regexr.com/3gi7q it will match the Facebook ID for you.

It is using the following regex to find the Facebook ID:

/fb:\/\/profile\/(\d+)|fb:\/\/page\/\?id=(\d+)|fb:\/\/group\/\?id=(\d+)/;

You can also use the tool i created and just fill in your profile url: https://commentpicker.com/find-facebook-id.php

Koen
  • 370
  • 2
  • 7
0

Go to your Facebook profile and right click on your cover photo, if you copy the URL it should have your Facebook id in it like so. fbid is what you want. I don't there's any AIP for it anymore. Looks like Facebook may be finally phasing it out.

https://www.facebook.com/photo.php?fbid=1512641059003115&set=a.1376251679308721.1073741827.100007717054203&type=1

Alexis Tyler
  • 1,394
  • 6
  • 30
  • 48
0

You can use the sources already identified or you can right click below the navigation bar and view page source. Use your CTRL+F (find) and search for [profile_owner&quot].

The number listed shortly thereafter will be your global ID. It will generally look like this:

[profile_owner":"10000320024513431&quot].

The # is listed multiple times (like 75) in the data and follows terms such as ["profile_id"], ["uid":], and [?profileid=] to name a few.

JNYRanger
  • 6,829
  • 12
  • 53
  • 81
cdrbyrn
  • 9
  • 1
0

I always us this tool https://www.graphsearcher.com/ to find my personal facebook ID. Hope can help you.

Sophy
  • 8,845
  • 6
  • 36
  • 30
-1

Head over to here and authenticate with it, you can then use the Graph explorer to get your ID. You'll also need an access token to view the https://graph.facebook.com/{ID} page.

Alexis Tyler
  • 1,394
  • 6
  • 30
  • 48
-3

I just tested this for you and it works correct. I can see FB source and above i can see my FB ID also. I used https://graph.facebook.com/username and tested with firefox. Maybe your using it wrong per accident? It seems like code 803 means no valid username. Are you really sure you are using a correct username?

You can also try below link to find your FB ID.

http://findmyfacebookid.com/

Good luck mate!

Mason
  • 1
  • 2