{{ $campsite->article->Body }}
</p>
</div><!-- .articlecontent -->
<a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
</a>
<!-- FACEBOOK LIKE BUTTON--> <iframe src="http://www.facebook.com/plugins/like.php?href={{ url|escape:"url" }}&layout=standard&show_faces=true&width=400&action=recommend&font=arial&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:400px; height:px"></iframe> </div><!-- .articlecontent -->
<script src=
" http://static.ak.connect.facebook.com/js/api_lib/v0.4/Featur eLoader.js.php"
type="text/javascript"></script>
<script type="text/javascript">
FB.init("here you put the secrect key you have in facebook aplication");
</script>
<fb:comments></fb:comments>
</div><!-- id="footerlinksinner" -->
<iframe src="http://www.facebook.com/plugins/likebox.php?id=HERE YOU PUT ID NUMBER NORMALLY IS 16 DIGITS LONG&width=640&connections=10&stream =false&header=false&height=255 " scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:740px; height:255px;" allowTransparency="true"></iframe>
define("FACEBOOK_APP_ID", '1yourface_id');
define("FACEBOOK_API_KEY", 'your api key');
define("FACEBOOK_SECRET_KEY", ' your secrect key');
define("FACEBOOK_CANVAS_URL", 'http://apps.facebook.com/THE FOLDER YOU SETUP IN FACEBOOK/');
<?php
include_once 'flib/facebook.php';
include_once 'fconfig.php';
$facebook = new Facebook(array(
'appId' => FACEBOOK_APP_ID,
'secret' => FACEBOOK_SECRET_KEY,
'cookie' => true,
'domain' => 'phpfour.com'
));
$session = $facebook->getSession();
if (!$session) {
$url = $facebook->getLoginUrl(array(
'canvas' => 1,
'fbconnect' => 0
));
echo "<script type='text/javascript'>top.location.href = '$url';</script>";
} else {
try {
$uid = $facebook->getUser();
$me = $facebook->api('/me');
$updated = date("l, F j, Y", strtotime($me['updated_time']));
echo "Hello " . $me['name'] . "<br />";
echo "You last updated your profile on " . $updated;
} catch (FacebookApiException $e) {
echo "Error:" . print_r($e, true);
}
}
require_once "../facebook.php";
$facebook = new Facebook("API Key", "API Secret");
try{
$facebook->api_client->stream_publish("INSERT_STATUS_HERE ", null, null, null, "PAGEIDXXXXX");
}catch(Exception $o ){
print_r($o);
}
It looks like you're new here. If you want to get involved, click one of these buttons!