Add Facebook 'share' metatag to drupal

I am very new to drupal, and i need to know whether i can add a share button using metatags. The requirement is to display a list of links and a share button for each link beside it. This should share the page given in the link. Is this possible? If so, how? I'm currently able to add a like button using the <fb:like></fb:like> tag. Googling wasn't much helpful. FYI, i use drupal 7.

Thanks, Ananth.

Answers


If you are looking for adding meta tags to a drupal 7 page, you should use drupal_add_html_head()

Here's an example for adding a description meta tag.

drupal_add_html_head(array(
    '#tag'          => 'meta',
    '#attributes'   => array(
        'property'  => 'description',
        'content'   => 'this is my description tag',
    )), "YOU_KEY");

Hope this helps... Muhammad.


I believe, this is very much feasible. If your link is "http://www.google.com" and you want to share this URL on FB, this link will help you in making the link http://developers.facebook.com/docs/reference/plugins/like/

Similarly for Google plus - https://developers.google.com/+/plugins/+1button/ Twitter button - twitter.com/about/resources/buttons

You need to pass the URL for every tag, it will same as the Link you are building.


Need Your Help

Page zoomed-in on the iPhone and iPad when shifting from Portrait to Landscape

ios5 meta-tags

When I change the orientation of my iPad from the portrait to landscape mode my page looks zoomed.

Background acting odd html5 canvas

javascript html5 animation html5-canvas

I have an 800 by 100 image for the background and I am trying to pull sections from it (like a sprite sheet) to generate a background because I am under the impression that it is an efficient way of