How to Find a Facebook ID: Step-by-Step Guide
In this article
You can find your own Facebook ID (User ID) or the ID of another user by checking their profile URL, using the "View Page Source" feature on desktop, or inspecting the page source on mobile. This process allows you to retrieve the numeric identifier associated with an account, which is often required for third-party applications, developer tools, or specific administrative tasks. No special software is needed; only access to a web browser and the Facebook account in question.
What You'll Need
- A device with a web browser (desktop computer, laptop, or smartphone).
- Access to the Facebook account whose ID you wish to find.
- For finding another person's ID: Their public profile must be accessible to you.
Step-by-Step
- Determine whose ID you are searching for: If you want your own ID, log into your Facebook account. If you want someone else's ID, ensure you have navigated to their public profile page. Note that private profiles may restrict access to certain data depending on privacy settings.
- Locate the Profile URL: Once on the profile page, look at the address bar at the top of your browser. The URL will typically look like
https://www.facebook.com/usernameorhttps://www.facebook.com/profile.php?id=100000000000000. If the URL contains numbers afterid=, that number is the Facebook ID. - Use the "View Page Source" Method (Desktop): If the ID is not visible in the URL, right-click anywhere on the blank space of the profile page and select "View Page Source" (or press
Ctrl+Uon Windows/Linux orCmd+Option+Uon Mac). A new tab will open with raw HTML code. - Search for the ID in the Code: Press
Ctrl+F(Windows) orCmd+F(Mac) to open the search box within the source code. Type"profile_id"or"user_id"into the search field. Look for the numerical value immediately following these tags. This number is the unique Facebook ID. - Mobile Alternative: On iOS or Android, the native Facebook app does not allow viewing page source. Use the mobile browser (Chrome or Safari) to load the profile. Tap the menu options (three dots or share icon) and look for "Share Link." Copy the link. If it contains an
id=parameter, extract the number. If not, you may need to use a third-party tool or ask the user directly, as direct extraction from the app interface is limited due to security restrictions.
Common Mistakes
Users often confuse their Facebook username (the custom text in the URL, e.g., facebook.com/john.doe) with their Facebook ID (the numeric string). These are different identifiers. Another common error is attempting to find the ID of a private profile without proper permissions; if you cannot view the profile content, you cannot extract the ID via page source. Additionally, some users try to use the email address or phone number as the ID, which is incorrect.
Tips
- Bookmark Your Own ID: Once you find your own ID, save it in a secure note-taking app. You will likely need it again for future integrations.
- Use Graph API for Developers: If you are building an application, consider using the Facebook Graph API instead of scraping IDs manually. It provides a more stable and official way to retrieve user data.
- Check Privacy Settings: Remember that changing your privacy settings can hide your profile from non-friends, making it impossible for others to find your ID through public browsing methods.
Troubleshooting
If the "View Page Source" method returns no results for profile_id, ensure you are looking at a personal profile and not a Page or Group, as the structure differs slightly. For Pages, search for "page_id" instead. If you are on mobile and cannot find the ID in the shared link, the platform may have obfuscated the URL. In this case, the most reliable alternative is to ask the account owner directly or use a desktop browser to access the profile. If you encounter errors while copying the ID, verify that you have selected the entire numerical string without any extra characters or spaces.
Frequently Asked Questions
Can I find someone's Facebook ID if their profile is private?
No. If a profile is private, you cannot view the page source or access the URL parameters containing the ID unless you are friends with the user and they have allowed such visibility.
Is my Facebook ID the same as my username?
No. Your username is the customizable part of your URL (e.g., john.doe), while your ID is a unique, unchangeable string of numbers assigned by Facebook.
How do I find the ID of a Facebook Page?
Navigate to the Page, right-click, select "View Page Source," and search for "page_id" in the code. The number following it is the Page ID.
Why is my Facebook ID not showing up in the URL?
Facebook often uses usernames or aliases in URLs for convenience. The numeric ID is embedded in the page's underlying code, which is why you must use the "View Page Source" method to find it.
Can I change my Facebook ID?
No. Facebook IDs are permanent and cannot be changed or deleted. Only usernames can be modified.
Is it safe to share my Facebook ID with others?
Sharing your numeric ID is generally safer than sharing your email or phone number, as it does not directly reveal personal contact info. However, exercise caution when providing it to unknown third-party services.