Facebook “Like” Button Proxy Error

×

This post was originally published in 2011
It may contain stale & outdated information. Or it may have grown more awesome with age, like the author.

While attempting to embed the Facebook “Like” button in this blog, I ran into the following error:

uncaught exception: Error: Permission denied for to get property Proxy.InstallTrigger

This was due to my failure to include meta information regarding the Facebook administrators of this site. For me, the simplest way was to insert this meta tag into the head, with USER_ID being my Facebook id.

<meta property="fb:admins" content="USER_ID"/>

To get my Facebook ID, I visited my Facebook profile page and copied the ID from the URL.

I also used Open Graph plugin for the wordpress portions of this site.

To set the og:url meta content I used

<meta property="og:url" content="http://pagesofinterest.net<?php echo $_SERVER['REQUEST_URI']; ?>"/>

And to make sure that Google+ properly handles the site, I added the following

<link rel="canonical" href="http://pagesofinterest.net<?php echo $_SERVER['REQUEST_URI']; ?>">
Comments (1) | Trackback