HD-OG plugin for Joomla 2.5
Add Open Graph protocol metadata to your Joomla site to get recognised on Facebook's social search engine.
What is this?
HD-OG is a plugin that embeds Open Graph metadata into your web pages. This is the markup used by Facebook to map and categorise websites into it's own social search engine. The metadata includes standard information (such as page title, type, URL & site name), locale information (based on the language used on your site) and a page description and image to illustrate the content of the page.
Google may dominate the search engine scene and attract more traffic than any other site but Facebook comes a close second. The Open Graph Protocol is an attempt to link Facebook with the rest of the web, creating Facebook’s own extensive and highly interactive version of a search engine. Other sites (including LinkedIn) and apps also use the same metadata for their own purpose.
This plugin ensures that the correct data is displayed when someone tries to share a link to your site on Facebook. The graph "type" ensures that your site is categorized in the correct section (eg. website, article, book, music, video) and it also includes metadata to present a description and . More information on the Open Graph Protocol is available here.
Install the zip file via the administration install manager as per any other module. Once it has installed go to the plugin manager, select HD-OG and enable the plugin.
Under the Basic parameter settings, select a "type" from the drop down list that your website primarily falls under (this is usually "website" but the full list of options is available here) and an "image" than can be used as a default thumbnail image to represent the site overall. On "article" based pages where an intro image has been selected, this will be used instead. On "category" based pages where a category image has been selected, this will be used instead. If no intro image is found then the default thumbnail image will be used.
You only need to enable the Admin parameter field if you wish to test your site using the Facebook URL linter, it is not required for anything other than admin testing. The id number required is the nine digit id number displayed in the URL of your Facebook's profile page.
An intro image can be added to an article via the Article Manager.
The intro image can be selected by clicking on the "Images & Links" tab on the right hand side of the Article Manager page.
This plugin has been built to display the article's intro image as the Facebook thumbnail image, however if no intro image is found then the default image you selected is displayed instead.
Similarly, intro images only work on webpages that are set to the "Article View" Menu Item. If the page is linked to a different type of menu item then the default image you selected is displayed instead.
An category image can be added to a main category page via the Category Manager.
The category image can be selected by clicking on the "Basic Options" tab on the right hand side of the Category Manager page.
If no category image is found then the default image you selected is displayed instead.
Use the Facebook URL linter to test the validity of the metadata.
What happened to the Location Metadata?
The previous version of HD-OG included options that covered latitude/longditude, address, zip/postcode, country, telephone number, fax number, etc.
Facebook no longer recognises these options and if included would fail the Facebook URL linter test.
The only location based value Open Graph requires is "locale" which is used to define the language (this is determined automatically by the plugin based on the language used in Joomla).