Documentation

This package installs attributes for setting Facebook Open Graph tags. If an attributes isn\'t set, the package will try and create the Open Graph tag using other information, or by inheriting it from the Home Page. Additionally, this package allows you to insert arbitrary meta tags.

The og:url, og:title, and og:description tags are generated automatically once the package is installed, although they can be customized by editing the Custom Attributes for a page.

The following Facebook Open Graph meta tags are supported:

  • Facebook Title (og:title) - If left blank, will use the page name
  • Facebook Type (og:type) - If left blank, will inherit from the home page
  • Facebook Description (og:description) - If left blank, will use the "Meta Description". If that is blank, it will use the Page Description
  • Facebook Share Image (og:image) - If left blank, will inherit from the home page
  • Facebook Canonical URL (og:url) - Should be left blank unless you know what you are doing

Additionally, you can specify additional meta tags on a per page basis. Each tag should be on a new line. The tag name and value are separated by a pipe (|).

Example: 

fb:app_id|12345678
fb:admins|34235,12415
og:video|http://example.com/movie.flv

To check that the meta tags are being generated correctly, test your URL using the Facebook Debugger.

The latest code and documentation can always be found [on Github](https://github.com/shihab-alain/sb_facebook_meta).