0

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?

2
Contributors
2
Replies
6
Views
6 Years
Discussion Span
Last Post by agam360
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.