Error code now correctly set in FacebookAPIException #44

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants

sujen29 commented Nov 22, 2012

Currently the error codes from Graph API calls do not get set in the FacebookApiException object because there is no 'error_code' in the error response.

I made it so that when it is in the "OAuth 2.0 Draft 00 style" block, it assigns $code the value of ['error']['code']. I do this because when ['error']['message'] exists, ['error']['code'] exists as well.

Error code now correctly set in FacebookAPIException
Currently the error codes from Graph API calls do not
get set in the FacebookApiException object because there is no
'error_code' in the error response.

I made assigned $code the value of ['error']['code'] for "OAuth 2.0 Draft 00 style" which does exist when
an error is returned.

Rool commented on 56fc334 Nov 22, 2012

You're missing a ' in your addition.

Contributor

lacker commented Oct 10, 2013

Sorry for not getting to this before now. But, it does seem like this task got completed along the way. Thanks for your effort here - we will try to be more prompt in the future.

@lacker lacker closed this Oct 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment