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. Installation
Kod:
<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>
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.
Edit
skins/your_skin/header.tpl and set FB XML namespaces:
Kod:
<html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
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:
Kod:
<fb:like href="{PHP.fb_url}" show_faces="true" width="450"></fb:like>
Header.php de Alttakini bul
Kod:
"HEADER_NOTICES" => $out['notices'],
Altna Ekle
Kod:
"PAGE_FACE" => $fb_metas,