Facebook Tips & Strategies

How to Find a Facebook Page ID from a Share Link

By Spencer Lanoue
October 31, 2025

Need to grab a Facebook Page ID but all you have is a share link? Getting that unique string of numbers can feel like a search for a needle in a haystack, especially when you're looking at a messy URL from a shared video or post. This guide cuts straight to the chase, walking you through three direct methods to uncover any Facebook Page's ID, even if your starting point is just a share link.

What Exactly Is a Facebook Page ID (and Why Should You Care)?

Before jumping into the "how," let's quickly touch on the "what" and "why." A Facebook Page ID is a unique numerical identifier that Facebook assigns to every Page created on its platform. Think of it like a Social Security Number for your brand's presence on Facebook. While your followers see a clean, custom vanity URL (like facebook.com/Nike), Facebook's backend systems rely on the numerical ID (like 159187330768406) to identify the Page correctly.

You’ll often need this ID for a variety of marketing and development tasks. A few common scenarios include:

  • Website Integrations: Adding a Facebook Page feed, like button, or reviews widget to your website often requires the numeric Page ID to pull the correct content.
  • Chatbot & CRM Connections: Integrating services like ManyChat or connecting your Page to a customer relationship management (CRM) platform almost always requires the Page ID to establish a connection.
  • Social Media Management Tools: Some third-party analytics, publishing, or community management tools require the Page ID during the setup process to authenticate and manage your page.
  • Advertising Tools: Certain advanced advertising configurations, competitor analysis tools, or audience research platforms may need the Page ID to specify which page to analyze or target.
  • Development & API Access: For developers, the Page ID is a fundamental requirement for making calls to the Facebook Graph API to fetch information about a page or perform actions on its behalf.

In short, the Page ID is the key that unlocks a world of integrations and allows you to connect your Facebook presence to other essential business tools.

The Main Hurdle: Understanding Facebook Share Links

When someone shares content directly from Facebook’s mobile app or uses the "Share" button, the resulting link often looks complex and doesn't contain the Page’s direct username or ID. These links are designed to be short and efficient for sharing but can be confusing for a human to read.

You might encounter a few different formats:

  • Video Links: Often start with fb.watch/ followed by a short alphanumeric code.
  • Mobile Links: Might use m.facebook.com or fb.me/.
  • Standard Shared Post Links: A long URL with multiple parameters like ?id= or &set= or story_fbid=.

The problem is that none of these formats display the Page ID directly. To find it, your first task is always the same: resolve the share link into a standard post URL. Every method below starts with this critical first step.

Method 1: Find the ID Manually by Viewing the Page Source

This is the most direct and reliable method because it doesn't depend on any third-party tools. It might seem technical, but it’s just a matter of knowing where to look. Let's walk through it step-by-step.

Step 1: Open the Share Link in a Desktop Browser

Take the share link you have and paste it into the address bar of a desktop browser like Chrome, Firefox, or Safari. Hit Enter. Facebook will automatically redirect the shorter share link to the full, permanent URL of the post or video.

Step 2: Navigate to the Facebook Page

Once the post has loaded, look for the name of the Facebook Page that originally published it. The Page name and profile picture will be clearly visible right above the post's content. Click on the Page's name. This will take you away from the individual post and onto the Page’s main timeline.

Step 3: Inspect the Page's URL

Now, look at the URL in your browser’s address bar. You’ll usually see one of two formats:

  • Vanity URL: A clean, customized name, like https://www.facebook.com/Puma/. This is what you'll see for most established brands.
  • ID-Based URL: A generic URL with the ID already visible, like https://www.facebook.com/profile.php?id=100064789323799. If you see this, you’re done! The string of numbers after id= is your Page ID.

If you have a vanity URL, proceed to the next step.

Step 4: View the Page's Source Code

This sounds more intimidating than it is. On the main page of the brand you're investigating, simply right-click anywhere on the page (but not on an image) and select "View Page Source" from the dropdown menu. Alternatively, you can use a keyboard shortcut:

  • Windows: Ctrl + U
  • Mac: Command + Option + U

A new browser tab will open filled with the HTML and JavaScript that builds the page.

Step 5: Search for "pageID"

Don't try to read the code! Instead, use your browser's "Find" feature. Press Ctrl + F (Windows) or Command + F (Mac) to open a small search bar. In that bar, type exactly this:

"pageID"

The browser will instantly jump to the first instance of that text. Immediately following it, you will see the Page ID enclosed in quotation marks. It will look something like this:

..."pageID":"159187330768406",...

That 15- or 16-digit number is the Facebook Page ID you’re looking for. Simply copy the number (without the quotes) and you're good to go.

Method 2: Use an Online Lookup Tool

If looking at source code isn't your thing, there are plenty of free online tools designed to find Facebook IDs for you. These tools do the same work behind the scenes but present the result in a simple user interface.

Step 1: Follow Steps 1-3 from Method 1

You still need to resolve the share link and navigate to the Facebook Page's main URL first. Once you have the full URL (e.g., https://www.facebook.com/Puma/), copy it to your clipboard. You need this URL for the lookup tool.

Step 2: Find a Reputable Lookup Tool

Search Google for "Facebook Page ID finder" or "find my Facebook ID tool." You'll see dozens of options. Choose one that looks clean and simple. Most of them function identically. Popular options often come from comment plugin providers or marketing analytics companies.

Step 3: Paste the URL and Find the ID

On the lookup site, you'll see a single input field. Paste the Facebook Page URL you copied into the box and click the "Find ID" or "Look up" button. Within seconds, the tool will process the URL and display the numeric Page ID.

A quick word of caution: While these tools are generally safe for public Facebook Page information, be mindful of what you submit. Avoid sites that are covered in ads, use pop-ups aggressively, or ask for your personal login information. Stick to simple, purpose-built tools.

Method 3: For the Tech-Savvy - Using the Graph API Explorer

This method is aimed at developers or marketers comfortable with APIs. It's an official Facebook tool, so the data is guaranteed to be accurate. It’s also extremely fast once you know the process.

Step 1: Get the Page's Username

As before, follow steps 1-3 from Method 1 to get the Page's full URL (e.g., https://www.facebook.com/Puma/). From this URL, all you need is the username part, which is "Puma" in this case.

Step 2: Open the Graph API Explorer

In a new browser tab, go to the Facebook Graph API Explorer. You will need to be logged into a Facebook developer account to use it. If you don't have one, it only takes a moment to set up.

Step 3: Make the API Call

You'll see a query construction interface. In the main request field that says me?fields=id,name by default, replace "me" with the Page's username you grabbed in step 1.

To keep the request clean, you can simplify the query to just retrieve the ID. Enter just the username:

Puma

Press "Submit." On the right-hand side, without any additional fields, you will see a JSON response containing the Page’s name and its global ID:


{
"name": "PUMA",
"id": "159187330768406"
}

The value associated with the "id" key is your Facebook Page ID.

Common Problems and Quick Fixes

  • I Found an ID but It's a "User ID," Not a "Page ID." Classic pages have a `pageID`, but some newer Page Experiences are linked to `profile.php`. If you land on a page URL like `facebook.com/profile.php?id=NUMBER`, you have the right ID. The key is that the ID is for the brand page itself, not for a personal profile of someone who works there. Searching the source code for `pageID` helps confirm you're dealing with a business Page.
  • The Page Has Age or Country Restrictions. If a Page is not visible in your country or if you don't meet its age requirements, you won't be able to access its content or source code. The easiest solution here is to use a VPN to set your location to a region where the page is accessible.
  • I Can't Find "pageID" in the Source Code. Facebook occasionally changes its code. If a search for "pageID" yields no results, try searching for "page_id" or "profile_id". Often, one of these variations will point you to the correct numerical identifier.

Final Thoughts

Finding a Facebook Page ID from a share link is a simple two-part process: first, convert that link into a standard Page URL, then use either the page's source code, an online tool, or the Graph API to extract the unique numerical ID. Each method takes just a minute or two and gives you the key needed to connect your page across the web.

For social media managers and marketers, gathering details like a Page ID is frequently the first step in centralizing a workflow. Having the ability to link accounts to a central hub is fundamental. We built Postbase with a focus on rock-solid connections across all your social platforms because we know that time spent re-authenticating accounts is time stolen from creating content and engaging with your community. Once connected, your accounts stay connected, letting you easily move between content planning, scheduling video, managing your inbox, and analyzing what works.

Spencer's spent a decade building products at companies like Buffer, UserTesting, and Bump Health. He's spent years in the weeds of social media management—scheduling posts, analyzing performance, coordinating teams. At Postbase, he's building tools to automate the busywork so you can focus on creating great content.

Other posts you might like

How to Add Social Media Icons to an Email Signature

Enhance your email signature by adding social media icons. Discover step-by-step instructions to turn every email into a powerful marketing tool.

Read more

How to Add an Etsy Link to Pinterest

Learn how to add your Etsy link to Pinterest and drive traffic to your shop. Discover strategies to create converting pins and turn browsers into customers.

Read more

How to Grant Access to Facebook Business Manager

Grant access to your Facebook Business Manager securely. Follow our step-by-step guide to add users and assign permissions without sharing your password.

Read more

How to Record Audio for Instagram Reels

Record clear audio for Instagram Reels with this guide. Learn actionable steps to create professional-sounding audio, using just your phone or upgraded gear.

Read more

How to Add Translation in an Instagram Post

Add translations to Instagram posts and connect globally. Learn manual techniques and discover Instagram's automatic translation features in this guide.

Read more

How to Optimize Facebook for Business

Optimize your Facebook Business Page for growth and sales with strategic tweaks. Learn to engage your community, create captivating content, and refine strategies.

Read more

Stop wrestling with outdated social media tools

Wrestling with social media? It doesn’t have to be this hard. Plan your content, schedule posts, respond to comments, and analyze performance — all in one simple, easy-to-use tool.

Schedule your first post
The simplest way to manage your social media
Rating