Extension:SocialcastOGP

What can this extension do?
SocialcastOGP is based on OpenGraphMeta and provides OpenGraph protocol metadata for articles on the wiki for 3rd parties like Socialcast to extract. The primary use for this extension is for any wiki that provides its users a button to "Like" pages on the wiki, especially if the wiki uses a custom default skin. As sometimes Facebook can extract undesirable parts from the page (known on some custom skins to potentially extract random images irrelevant to the content) providing this data gives Facebook clean data to display in likes, and cleans up the long title into a pair of clean site and page titles. A parser function  which also exports what it is passed so you can use it easily in a   format can be used to set the image in the article which you prefer Facebook to use when displaying information about the page on your wiki (hint: This works very nicely when you incorporate it into an infobox template making the infobox image the preferred image for 3rd parties to use).

This extension can also be paired with Extension:Description2 which extracts description information from articles, when both are installed OpenGraphMeta will make use of the information Description2 extracts.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation

 * 1) Download a snapshot and extract it to your extensions directory.  Choose the version that matches your version of MediaWiki.
 * 2) Add   to the bottom of LocalSettings.php.
 * 3) Installation can now be verified through Special:Version of your wiki.

Configuration parameters

 * 1) $SocialcastButtonToken is the opaque token for the Recommendation button extension you created for your Media Wiki instance
 * 2) $SocialcastDiscussionToken is the opaque token for the discussion extension you created for your Media Wiki instance
 * 3) $SocialcastCommunityUrl is the url for your community. Ex: "https://demo.socialcast.com"