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! Quote 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? Quote 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/ Quote 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? Quote 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 Quote 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] Quote 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! Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.