Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

[sdkbox::PluginFacebook::api ] Syntax error "Expected end of string instead of "?" on Android

$
0
0

@tripletoma wrote:

Hello, I need some help.

std::string scorePath = "/100119570327443/scores?fields=user,score";
sdkbox::FBAPIParam scoreParams;
sdkbox::PluginFacebook::api(scorePath, "GET", scoreParams, "API_GET_FRIENDS_SCORE");

I use this code to get scores of the users. It works fine on iOS.
But on Android I get an error like this.

03-22 16:06:38.005: D/FacebookSDK.Request(10858): Request:
03-22 16:06:38.005: D/FacebookSDK.Request(10858): Id: 2
03-22 16:06:38.005: D/FacebookSDK.Request(10858): URL: https://graph.facebook.com/v2.4//100119570327443/scores?fields=user,score?access_token=ACCESS_TOKEN_REMOVED&format=json&sdk=android&debug=all
03-22 16:06:38.005: D/FacebookSDK.Request(10858): Method: GET
03-22 16:06:38.005: D/FacebookSDK.Request(10858): User-Agent: FBAndroidSDK.4.6.0
03-22 16:06:38.005: D/FacebookSDK.Request(10858): Content-Type: application/x-www-form-urlencoded
03-22 16:06:38.005: D/cocos2d-x debug info(10858): create rendererRecreatedListener for GLProgramState
03-22 16:06:38.336: D/dalvikvm(10858): GC_FOR_ALLOC freed 385K, 4% free 10543K/10960K, paused 18ms, total 18ms
03-22 16:06:38.336: D/FacebookSDK.Response(10858): Response
03-22 16:06:38.336: D/FacebookSDK.Response(10858): Id: 2
03-22 16:06:38.336: D/FacebookSDK.Response(10858): Size: 433
03-22 16:06:38.336: D/FacebookSDK.Response(10858): Responses:
03-22 16:06:38.336: D/FacebookSDK.Response(10858): [{Response: responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 2500, errorType: OAuthException, errorMessage: Syntax error "Expected end of string instead of "?"." at character 10: user,score?access_token=ACCESS_TOKEN_REMOVED}}]

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17070


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>