The Little Guy Posted June 4, 2010 Share Posted June 4, 2010 This is my first time using facebooks api, and I would like some help. The following code I am using: <?php require_once '../classes/Facebook/facebook.php'; $appapikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $appsecret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $facebook = new Facebook($appapikey, $appsecret); $user_id = $facebook->require_login(); $facebook->api_client->users_setStatus('Message From My Site', $user_id); ?> Using the above code I am getting the following error: Updating status requires the extended permission status_update How can I fix this problem? Thanks for any help! Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/ Share on other sites More sharing options...
dabaR Posted June 5, 2010 Share Posted June 5, 2010 Is the facebook class your own and can you post its code? If not, can you link to where you got it? Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068021 Share on other sites More sharing options...
The Little Guy Posted June 5, 2010 Author Share Posted June 5, 2010 I got the code from here: http://github.com/facebook/php-sdk/ Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068078 Share on other sites More sharing options...
dabaR Posted June 5, 2010 Share Posted June 5, 2010 I thought so, but I don't see the require_login() function in that class at all. What's up with that? Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068083 Share on other sites More sharing options...
The Little Guy Posted June 5, 2010 Author Share Posted June 5, 2010 its on line 303 Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068093 Share on other sites More sharing options...
dabaR Posted June 5, 2010 Share Posted June 5, 2010 Not here [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068094 Share on other sites More sharing options...
The Little Guy Posted June 5, 2010 Author Share Posted June 5, 2010 hmm it is on mine.... Any who, I got it working! 3 days of work and I got it! Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068112 Share on other sites More sharing options...
dabaR Posted June 5, 2010 Share Posted June 5, 2010 Congratulations are in order! Link to comment https://forums.phpfreaks.com/topic/203892-facebook-api-help-require-extended-permission/#findComment-1068113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.