Hello,
I am trying to set users status using my facebook application. However my
$uid = $facebook->require_login($required_permissions = 'email,status_update,offline_access');
gives me an infinite redirect which I am still trying to debug.
However, if I hard code the value of uid and then use
$facebook->api_client->users_setStatus("hello",$uid)
then:
- I am able to update the users status message for the first time.
- However , If I repeat it again after the status is updated; I get :
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'An unknown error occurred' in s/PATH/facebookapi_php5_restlib.php(1813): FacebookRestClient->call_method('facebook.users....', Array) #1 /PATH/file.php(9): FacebookRestClient->users_setStatus('hello', '1000247983459873') #2 {main} thrown in /PATH/facebookapi_php5_restlib.php on line 3065
Following are the lines corresp to line 3065:
if (is_array($result) && isset($result['error_code'])) { 3065 throw new FacebookRestClientException($result['error_msg'], 3066 $result['error_code']); 3067 }
Can someone please help me what could be the problem here.