I have test my app before, and It worked I have managed to post to my page wall.
But now after I have changed the code and removed the permissions, and logged in again it didn't work and trowed this exception:
Exception: 200: The user hasn't authorized the application to perform this action
Code:
if(isset($_POST['submit'])){
try {
//$facebook = new Facebook(###, ###);
$facebook->api_client->session_key = '###';//I got this by a tutorial once but I can't seem to get a new one, is there any way of getting one automatically?
$response = $facebook->api(array(
'method' => 'stream.publish',
'message' => 'Test from dreafmhosters.com',
'target_id' => ##mypageid###;
));
} catch(Exception $e) {
echo $e . "<br />";
}
}
?>
Any solutions?