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



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?

Recommended Answers

All 2 Replies

check the following links they same discussion link 1..... link 2.....and this link..... also can check the google search page

This did not help me...
Thanks anyways.
Please answer my question specifically.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.