if (!$facebook->api_client->users_hasAppPermission("status_update")){
echo '
$visibility = "none";
}
else
$visibility = "block";
if(isset($_POST['status']))
{
$facebook->api_client->users_setStatus($_POST['status']);
echo "
Your Status has been updated successfuly!
";}
?>