More than 10,000 new websites integrate with Facebook every day by using one of their social plugins. However most sites that we see are not taking full advantage of what facebook has to offer. Were you aware of the fact that you can get facebook insights for your WordPress site? These insights include data such as your most popular pages for the like button, send button, organic shares, comment box etc. It also includes information like who is your demographic audience on facebook, their age, gender, country etc. If you were not, then don’t be surprised because you are not alone. We checked some of the industry leaders’ websites including Chris Brogan, Brian Clark, Darren Rowse, John Chow, and Jeremy Schoemaker (aka Shoemoney) and none of their sites were taking advantage of Facebook insights either. In this article, we will show you how to get facebook insights for your WordPress site, so you can take full advantage of what facebook has to offer.
First thing you need to do is install our Facebook Open Graph Meta Data plugin. Once you have installed and activated the plugin, then go the Settings » FaceBook OG Meta tag and insert your facebook account ID. You can get your account id by visiting a URL like this:
http://graph.facebook.com/syedbalkhi << Notice this must be your personal account ID. Not your fan page and not your app id.
After you have setup the plugin correctly, your site is now ready for facebook. It will give facebook the correct thumbnail for the post, the correct title, the correct description, and most importantly it will tell facebook who is the admin of this site.
Next thing you need to do is make sure that you are using the CORRECT version of the facebook like button. Many sites just utilize the iframe version of the facebook like button. While that works, it will not let you get facebook insights. You need to use the XFBML method shown in this post.
Last step that you need to do is claim your site on Facebook. You need to visit the Facebook Insights Page. Look at the top right where the green button says “Insights for your Website”.

When you click on that green button, a lightbox will appear like the image below. Enter your domain name and make sure you link it with “YOU”.

Now when you visit the facebook insights page, you will see your website listed under Websites.

Once you click on your site, you will be able to access all sort of insights. An example image is below:

There you have it. Now you can easily get facebook insights for your WordPress site. If you like this article, then don’t forget to share this article and follow us on Facebook.








In IOS the black bar that lives on the bottom of your web page is in the middle of the text and obscures your content. Thought you should know.
Thanks I needed that!
Hi Syed, i have some interesting posts from my FB page that I’d like to repost on my WP site. Is there a way to do that other than doing screen capture?
I think the screen capture is the only way that I know of.
Ok. So I did screen captures but have to break up the post into a few parts. But when I insert the few images, there is a line break gap between the images. How do I get rid of that gap to make the images look like one big continuous piece? Sorry to hijack this thread. Thanks!
Instead of inserting the images in a separate line. Remove all line spaces so that there is not a single space between the image codes. That should help. For future please use the contact form for “off-topic” questions.
Hi guys I realise a mistake in my last comment. I initially used the UID for http://graph.facebook.com/relensi which is 302475996501071. But when I got the invalid message, I tried to use the UID for my personal fb account which is 100000147197456.
I just set up the page for a project I just started and I hope anyone here can help me out.
Thanks in advance.
Hi Syed, I read this post earlier. However, After creating the facebook page for my business, I read a notification on facebook that I could view insights once the page gets 30 likes. So I’d like to ask if it was still necessary to install the Facebook Open Graph Meta Data plugin. Are there any other benefits from installing the plugin?
Thanks in advance.
The facebook insights you get for that page is for your FB page only. The insights we are talking about here is for the facebook activity on your website. i.e like button etc.
Thanks a lot. Keep up with the good works.
Best regards.
@wpbeginner 99% chance that his themes function.php file does not include the line add_theme_support( ‘post-thumbnails’ );
I’ve ran into that error in the past and its been fixed by adding post-thumbnail support.
Hey thanks for the info
This is a great plugin, I suppose its time someone writes a plugin to get open graph type technology for the Google+ shenanigans?
@EricMcKenzie Your account ID is the admin ID. Does your theme have built-in support for post-thumbnails also known as featured image?
@wpbeginner I am using WP ver 3.0. The WP Settings panel only asks for 3 things. My Facebook account ID, My Site Name and default Image URL. Where am I supposed to enter my admin ID?
@EricMcKenzie That’s weird. Line 37 is simply calling for the post thumbnail feature which was added in WordPress 2.9. This is why the plugin requires you to use at least WordPress 3.0 assuming that your theme would be utilizing that feature.
You need to specify your admin ID in the WP Settings Panel for this plugin.
This looks great, but when I tried it I got this message popping up where my blog should be “CloseOpenFatal error: Call to undefined function get_post_thumbnail_id() in /home/ericmckenzie/canadianaidforchernobyl.com/home/wp-content/plugins/fbogmeta.php on line 37″. Also in Facebook Insights I get the message “Bad Request. No admin data found.” What am I missing?
Thanks,
Eric