We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,721 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Exception: 200: The user hasn't authorized the application to perform this action

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
1 Hour
Discussion Span
1 Year Ago
Last Updated
3
Views
agam360
Light Poster
27 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
Skill Endorsements: 0

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

abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124
Skill Endorsements: 1

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.

agam360
Light Poster
27 posts since Jun 2009
Reputation Points: 9
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0787 seconds using 2.77MB