Open Graph meta tags

Component ID

962344

Component name

Open Graph meta tags

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

60629

Component created

Component changed

Component body

This module makes it easy to add Open Graph meta tags (http://opengraphprotocol.org/) to a node to enable it to be come a "rich" social object. For instance, Facebook uses this information to work out how to preview shared content in a user's Facebook profile (http://developers.facebook.com/docs/share).

Features

  • Easily select the image thumbnail used to represent the node (used by Facebook when constructing a preview). The editor is shown a list of thumbnails of all images associated with the node (both as fields as well as images embedded within the node's body content).
  • Set default values for OG meta tags across all nodes and then override them on a node-by-node basis.
  • Restrict the use of OG meta tags to specific content types.
  • Restrict access to administering the module to specific roles

Installation

Add the following XML namespace attribute to the HTML tag at the top of your page.tpl.php file:

xmlns:og="http://opengraphprotocol.org/schema/"

For example:

<html xmlns:og="http://opengraphprotocol.org/schema/">
...
</html>

Note that this module does not output the fb:admins or fb:app_id tags which are required for integrating with Facebook. There are other modules which will help you with these tags:

Alternatives

  • Metatags - Drupal 7 module which aims to do what this module does and more.