<?php defined('SYSPATH') or die('No direct access allowed.'); /* * To change this template, choose Tools | Templates * and open the template in the editor. */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Facebook API Example</title> <?php echo FB::feature_loader(); ?> </head> <body> <h1> Facebook Connect API Example </h1> <div id="comments_post"> <h3>Leave a comment:</h3> <form method="POST"> <div id="user"> <?php if (FB::get_loggedin_user()) { ?> <span> <?php echo FB::profile_pic(); ?> Welcome, <?php