How to Get Your Facebook Page ID and User ID

You created a Facebook account. You created and activated a new Facebook app, too. Now, you want to get Facebook Page ID or User ID for the purpose of integrating Facebook comments for your WordPress site, etc.

 

I. METHOD 1 - GET FACEBOOK PAGE ID

To get a Facebook Page ID, you need to open that page » Click on the Settings button

open-facebook-page-and-click-on-about-tab

When the screen displays the Page Setup, click on Page Info (item 1), scroll to the bottom of the list, you will find Facebook Page ID.

In this example, the Facebook Page ID of the page is 786124751486441.

get-a-facebook-page-id

II. METHOD 2 - GET FACEBOOK PAGE ID

Right-click on the link to your Facebook Page (item 1) » Select  Inspect element (item 2) with Google Chrome browser » Click on the Element tab(item 3). You will see the code:

<a href="https://www.facebook.com/pages/Howtousewordpressorg/786124751486441?fref=nf" data-hovercard="/ajax/hovercard/page.php?id=786124751486441&amp;extragetparams=%7B%22fref%22%3A%22nf%22%7D" aria-owns="js_1t" aria-haspopup="true" aria-describedby="js_1u" id="js_1v">Howtousewordpress.org</a>

get-a-facebook-page-id-2

The Facebook Page ID is the sequence number "786124751486441" of the string "id=786124751486441" 

III. GET FACEBOOK USER ID

If you want to find your Facebook User ID, you need to right-click on the link to your Facebook account. You will see the code:

<a class="profileLink" href="https://www.facebook.com/..." data-ft="{&quot;tn&quot;:&quot;l&quot;}" data-hovercard="/ajax/hovercard/user.php?id=100006844891xxx" aria-owns="js_6" aria-haspopup="true" aria-describedby="js_7" id="js_8">Your Facebook Account</a>

The Facebook User ID you need is 100006844891xxx

Thanks for reading!

 

Save