Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (16 sloc) 462 Bytes
<?php
require 'fbmain.php';
if ($user){
//update user's status using graph api
if (isset($_POST['status'])) {
try {
$status = $_POST['status'];
$statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> $status);
} catch (FacebookApiException $e) {
echo "Error";
}
echo "Status Update Successfull. ";
exit;
}
}
?>