include_once("facebookapi/facebook.php");
// Get these from https://developers.facebook.com
$api_key = 'API KEY';
$secret = 'API SECRET';
$facebook = new Facebook($api_key,$secret,true);
$user = $facebook->require_login();
$session_key = $facebook->api_client->session_key;
$facebook->api_client->set_user($user,$session_key);
echo 'Hello world from facebook';
?>
Terakhir diubah oleh [GM]tomyrambozha tanggal Sun Jan 16, 2011 2:35 pm, total 4 kali diubah