Retrieve facebook id from profile image address - facebook

If I only have the facebook profile address (something like https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/c0.0.180.180/1425794_10202604468931708_129792007_a.jpg ) , can I retrieve it's user ID? The aforementioned address is the only information known.
Thanks

Yes.
From the second set of numbers in the file name go to this URL http://facebook.com/10202604468931708
You will see that takes you to a page for that picture. On that page you can see the owner of the picture. Navigate to the profile.
From the profile, change www to graph In the URL.
The resulting page will show the Facebook id of the user.

The second set of numbers is indicative of the profile it originated from.
www.facebookcreep.com is a tool that takes this number and searches for the profile it came from.
Hope this helps people!

Related

How to find my own facebook ID? (not the app-scoped ID)

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?
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
graph.facebook.com/{Username} is not available now but lookup-id.com still can find your facebook ID
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
graph.facebook.com/username does not work
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.
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
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
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.
I always us this tool https://www.graphsearcher.com/ to find my personal facebook ID. Hope can help you.
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.
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!

Retrieve Facebook full name and picture from profile url

I'm trying to make a website with text input for facebook profile url and after procceeding, there should be user's name and profile image shown.
I saw something like that here: http://hackfbaccountlive.com/hack_account.php
(No, I'm not making another fb hack.)
I have been trying for a couple of hours now, and I always need to log in, and it's not working as I want.
Can you help me?
You should go into detail about what you're trying to do, as it sounds suspicious (please do not create a hack site). That being said, this all public information that can be fetched with the following calls:
https://graph.facebook.com/[user_id]
https://graph.facebook.com/[user_id]/picture
https://graph.facebook.com/[profile_username]
https://graph.facebook.com/[profile_username]/picture
You can then use either the UID or the profile username to create the profile URL, which is just https://www.facebook.com/[username_or_id]

Can't find my profile id number

I am trying to build an app and it is asking for my profile id number. Because I have a customized Facebook profile, it hides the id number and the app will not take jccalloway59. I have been trying to do this for two days now. How in the hell do I find my id number?!?
You can get it at https://graph.facebook.com/jccalloway59.
For an arbitrary user, replace jccalloway59 with the username.
Get it from the graph API explorer tool
http://developers.facebook.com/tools/explorer?method=GET&path=me
So, if some of ur photos, ull find at the url: fbid=8823792739123 ...there is
ie: http://www.facebook.com/photo.php?fbid=29152428753XXXX&set=a...
or https://graph.facebook.com/USERNAME.

Facebook Get User ID From Application Tab

Facebook apps are allowed to have a tab that a user can add to his profile's tabs if he wants.
How can I get the uid or otherwise identify the currently logged in user in order to customize the layout for him please?
Thank you.
As noted here:
Facebook does not pass back who the viewing user is when she first visits your tab. Facebook does send the profile owner's ID in the fb_sig_profile_user parameter, so you know whose profile to display content for.
Visitor id is passed as request parameter after a user interacts with your tab. I can't find exact parameter name as they removed a wiki page that used to contain a list of all passed parameters, but if you dump all your request vars you should be able to see it (but not during the first visit).
some sources to do it + you must have turned on all items on migration in app settings
http://nathrondevblog.blogspot.com/2010/09/how-to-get-user-id-in-profile-tab.html
Try out this one,
If the user is logged in. You can directly get the user_id, session_key etc from the querystring.
long fbuid = long.Parse(Request.QueryString.Get("fb_sig_user"));

Link to Application Tab from Profile box (Facebook app)

I would like to place a link from my application's narrow profile box to it's application tab on the same profile.
I have combed through the FBML documentation to no avail. I have posted this question on the Facebook dev forums. I have experimented with pasting the URL of the tab into the profile box link without success (ajax may be getting in the way?).
Any thoughts would be appreciated.
You asked this a very long time ago, but it ranks well in Google for some search terms so here goes:
To link to a specific profile tab you can use the following href in your anchor
facebook.com/profile.php?id=123456&v=app_654321
obviously you need to replace the profile id and app id with correct values.
With the new short urls you may use this href
facebook.com/shorturl?v=app_654321
Both will load up the users profile with your apps tab already selected.
It is possible, but not with the profile.php... It always redirects to page wall, no matter of v parameter.
The only way I know is to give a direct link, ie.
http://www.facebook.com/MichaelJordan?v=info
The problem is that you have to know this name in the link (MichaelJordan).
To go to your application's tab, you need parameter v=app_APPID