Archive for the ‘facebook’ Category

Create a Facebook App

Thursday, May 26th, 2011

first visit facebook and register your new app:
configure the facebook settings to point to your server

grab the facebook php library:
or here:

upload your application’s new index.php to your server, something like this:

<? php
require_once ‘facebook.php’;
$appapikey = ‘1234’;
$appsecret = ‘1234’;
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login(); $html = ‘PUT YOUR HTML HERE’;
$facebook->api_client->profile_setFBML(NULL, $user_id, $html, NULL, NULL, $html);
echo ‘<br /><fb:add-section-button section=”profile” />’;
? >

it’s that simple.