Location: PHPKode > scripts > Facebook Chat > example.php
<?php
include("facebook.class.php");

$obj = new FacebookChat("hide@address.com", "mypassword");
$obj->login();
print_r($obj->buddylist());
$obj->sendmsg("Hey jhonny, how are u?", "my_friend_id");
?>
Return current item: Facebook Chat