Page 1 of 3

Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 2:07 pm
by Eduardo Ferrin

Hi I received this error when try to get data from facebook:
{
"error": {
"message": "An active access token must be used to query information about the current user.",
"type": "OAuthException",
"code": 2500
}
}

Anyone that have the same problem and a solution?


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 3:38 pm
by Kateryna Grynko

Hi Eduardo,

Do you receive access token? Do you send it in a request? Please check our tutorial: http://docs.appery.io/tutorials/build...

You can also try our plug-ins for Facebook to get used to work with Facebook API.


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 3:49 pm
by Eduardo Ferrin

I used your tutorial step by step, I can login with the app and then, when click in Get Data... give me this error.


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 3:52 pm
by Eduardo Ferrin

This is the link to the app: http://appery.io/app/mobile-frame?src...


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 5:11 pm
by Maryna Brodina

Hello! There is some mistake in mapping JS in "code" parameter (GetToken service)

preaccess_token=USER_ACESS_TOKEN&expires=NUMBER_OF_SECONDS_UNTIL_TOKEN_EXPIRES}/pre

It's not correct JS
Please take a look at tutorial http://docs.appery.io/tutorials/build... and paste there correct code.


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 5:22 pm
by Eduardo Ferrin

Hi, I deleted this code, as I understand in the documentation you don't need to introduce any parameter in JS "code"... but this is not the problem, I saved and the error continue.

When I tested the service "get_data" I received this error:
{
"status":"400 Bad Request",
"url":"https://graph.facebook.com/me",
"response":{
"error":{
"message":"An active access token must be used to query information about the current user.",
"type":"OAuthException",
"code":2500
}
}
}

And when tested the service " GetToken" this one:
{
"status":"400 Bad Request",
"url":"https://graph.facebook.com/oauth/acce...",
"response":{
"error":{
"message":"Missing authorization code",
"type":"OAuthException",
"code":1
}
}
}

But as I told you I can login but then the problem is when try to get data


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 7:19 pm
by Maryna Brodina

Seems you didn't add code JS code. Please follow the tutorial http://docs.appery.io/tutorials/build... carefully and on Result page, add Load Event and Run Custom JS action from tutorial


Error 2500 when access to facebook data

Posted: Tue Oct 15, 2013 7:33 pm
by Eduardo Ferrin

I added, and now the problem when get data is other:

{
"error": {
"message": "Invalid OAuth access token.",
"type": "OAuthException",
"code": 190
}
}

That ́s very complicated, I want to use your platform but please solve the problem for me! thanks!


Error 2500 when access to facebook data

Posted: Wed Oct 16, 2013 7:38 am
by Kateryna Grynko

Hi Eduardo,

Please untick "Show in mobile frame" for preview.


Error 2500 when access to facebook data

Posted: Wed Oct 16, 2013 7:48 am
by Eduardo Ferrin

I did it now ... and the problem is the same, I logged with Facebook ok and then when try to get data:
{
"error": {
"message": "Invalid OAuth access token.",
"type": "OAuthException",
"code": 190
}
}

Have you test it? works for you?