How to Find Facebook Page/Profile IDs

Many Facebook Applications need Facebook Page ID and Profile ID or Admin ID.  If you are using a custom username for your Facebook profile or page,e.g then unique ID will not appear. Facebook social plugins require this unique ID

1. Facebook Graph API

Facebook Graph API help detecting Facebook Page/Profile/Admin ID from your Facebook username

You will get the following details in JSON format. Here you can find the ID in the first line.

Find Facebook Page/Profile/Admin ID via Open Graph API (click the screenshot to view the large image)

2. Facebook URL address

You’ll see the unique ID at the end of your facebook URL address if you don’t setup facebook username{YOU_FACEBOOK_ID}

Facebook Share Button

Facebook Share is one of the most powerful and simple ways for users to share articles, pages, video, or Flash content from your site with their friends on Facebook. Over 1 billion pieces of content are shared each week on Facebook, and many of those are links shared using Facebook Share.

Right now, Facebook Like button is taking over Facebook Share button. Facebook has slowly been rolling out updates to its Like button and has stopped developing the Share Button. Facebook will continue to support the Share button

You still can use Facebook Share button
Box Count – Counter Button on Top

<a name="fb_share" type="box_count" href="" rel="nofollow">Share</a><script type="text/javascript" src="" rel="nofollow"></script>

Button Count – inline with Counter Button

<a name="fb_share" type="button_count" href="" rel="nofollow">Share</a><script type="text/javascript" src="" rel="nofollow"></script>

Link Only

<a name="fb_share" type="icon_link" href="" rel="nofollow">Share</a><script type="text/javascript" src="" rel="nofollow"></script>

Add Facebook Like to WordPress

Facebook released Social Plugin in their recent F8 conference.
It lets you see what friends have liked, commented on or shared on sites across the web.

The Facebook button enables users to post pages from that site back to your Facebook profile with one click

I added Facebook button manually to a client WordPress site. It uses iFrame tag, because it’s very easy and doesn’t need JavaScript SDK required by XFBML tags.

Add the following code to WordPress theme or your WordPress posts or pages via HTML editor in WP backend

<iframe src="<?php the_permalink(); ?>" style="border: medium none; width: 450px; height: 80px;" frameborder="0" scrolling="no"></iframe>

You could change width:450px or height:80px to fit your site