Facebook OpenGraph

Assigns OpenGraph meta tags in your Cotonti pages so that they can be effectively shared in FaceBook

#1. Purpose

This plugin sets meta-tags in pages which are specifig to Facebook's OpenGraph technology. Using this plugin together with such Social Plugins as Like Button enables you to spread your site's pages around the Facebook network.

#2. Download

Version for Cotonti Siena is available here
 

#3. Installation

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="{PHP.fb_url}" show_faces="true" width="450"></fb:like>
  1. Install the opengraph plugin and edit its configuration. There you need to enter your Facebook user ID or alias in the "Facebook admins" field. "Scan for an image in page text" option will take the first image of a page as image to be posted together with the page in user's Facebook profile when he shares the page. By default a picture in plugins/opengraph/img/thumb.jpg will be taken. "FaceBook Application ID" is optional, fill it if your site is registered as FB application. The "FaceBook OpenGraph type" sets OpenGraph Object type of your pages.
  2. Edit skins/your_skin/header.tpl and set FB XML namespaces:
    <html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
  3. Edit skins/your_skin/page.tpl and add appropriate Social Plugins. For example, if you want to add a Like Button, you might want to put there following code:
    1) If you use Facebook Connect plugin:
    <fb:like href="{PHP.fb_url}" show_faces="true" width="450"></fb:like>

 


Коментарі відсутні
Додавання комментарів доступно лише зареєстрованим користувачам