Translate my blog!

                                           French German Spain Italian Dutch Russian Portuguese Japanese Korean Arabic Chinese Simplified
                                                                                                                                                                           by : Blogging Cloud

Sunday, August 21, 2011

How to resolve Facebook "Like" button error asking to specify “fb:app_id" meta tag, or a "fb:admins" meta tag.


Assuming that you want to have "Like" button for your website in order to promote its pages.You go straight to facebook.com to get and install the proper javascript or iframe code to place "Like" button on your Blog or on your website but facing a common error:

 "The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users."

After hours of struggling with this problem you are determined either to remove the button or to fix it somehow.
Follow these simple steps to embed face book "Like" button.

You have to fill the HTML coding with required details:
Step 1.  Add  xmlns:og=’http://ogp.me/ns#’ and xmlns:fb=’http://www.facebook.com/2008/fbml’ in the <HTML>  tab. 
Your code should look like this: 

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og=”http://ogp.me/ns#”
      xmlns:fb="http://www.facebook.com/2008/fbml">

Step 2.  Add your facebook user id in fb:admins. Your user id must be a validated id.


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

After following these two simple steps you won’t face the above mentioned error.
Follow the following path to debug http://developers.facebook.com/tools/debug


Explaination :
This adds the necessary XML namespaces to the pages allowing Facebook to interpret additional meta-data in your product pages.
Reference:
The Open Graph protocol defines four required properties:
  • og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
  •  og:type -   The type of your object, e.g., "movie". See the complete list of supported types.
  • og:image - An image URL which should represent your object within the graph. The image                        must be at least 50px by 50px and have a maximum aspect ratio of 3:1. Support PNG, JPEG and GIF formats.You may include multiple og:image tags to associate multiple images with your page.
  • og:url -The canonical URL of your object that will be used as its permanent ID in the graph, e.g., http://blitzkriegconsultant.blogspot.com/
In addition, FB extended the basic meta data to add two required fields to connect your webpage with Facebook:
  • og:site_name -A human-readable name for your site, e.g., "CLOUDING A BLOG
  • fb:admins or fb:app_id - A comma-separated list of either Facebook user IDs or a Facebook Platform application ID that administers this page. It is valid to include both fb:admins and fb:app_id on your page.
It's also recommended that you include the following property as well as these multi-part properties.
  • og:description -A one to two sentence description of your page.




1 comment: