Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Code on Login Not Correctly Represented in JSON Structure. #96

Open
rickwaugh1 opened this issue Jan 13, 2015 · 2 comments
Open

Comments

@rickwaugh1
Copy link

When I log in to Facebook, and I get an error back, such as with an invalid id or token, I get the following structure back:

{
error_code : 2,
token: 'abcdefghiii',
token_secret: undefined,
source_service: 'Facebook',
source_service_id: '123456789',
error_message: 'Invalid OAuth access token.',
error: true
}

Note error_code. If I have named my structure, fb_response, I cannot get at this with fb_response["error_code"]. I have to use fb_response["error_code "], because an extra space comes back between the member name and colon.

@dantman
Copy link

dantman commented Sep 18, 2015

Does this error happen anymore?

Errors from Facebook appear to use an {error:{message: "...", code: ###}} object now.

@rickwaugh1
Copy link
Author

Haven't looked in a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants