Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8248965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:22:25+00:00 2026-06-07T23:22:25+00:00

I am trying to communicate with Facebook doing simple things. At the moment I

  • 0

I am trying to communicate with Facebook doing simple things. At the moment I can log a user in and post to their wall as them. But for whatever reason, I can’t seem to access public information such as their name. I consistently get this error:

{“error”:{“message”:”Syntax error \”Expected end of string instead of \”?\”.\” at character 4: name?access_token=MYACCESSTOKEN”,”type”:”OAuthException”,”code”:2500}}

Here is the call:

SampleRequestListener srl = new SampleRequestListener();
AsyncFacebookRunner afr = new AsyncFacebookRunner(facebook);
afr.request("http://graph.facebook.com/me?fields=name", (RequestListener)srl);

That call is made within a validated session (in the onComplete portion of the DialogListener for .Authorize). Using my access_token and the exact same string as above I can get the request to work just fine at http://developers.facebook.com/tools/explorer/

The error occurs whilst parsing the response in the RequestListener.onComplete

JSONObject json = Util.parseJson(response);
final String name = json.getString("name");
System.out.println("Hi, my name is " + name);

Thank you for your time. All input is welcomed.

UPDATE *

There are two things going on. In the facebook API, Util.openUrl was appending a “?” between the field name and the access_token (as the answer below pointed out). This seems odd. I wonder if I pulled an old version of the API or something. You would think that would be set up correctly.

Also, I called the method incorrectly:
This:

afr.request("http://graph.facebook.com/me?fields=name", (RequestListener)srl);

Should be:

afr.request("me?fields=name", (RequestListener)srl);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T23:22:27+00:00Added an answer on June 7, 2026 at 11:22 pm

    Looks like the actual request being sent is something like

    /me?fields=name?access_token=MYACCESSTOKEN
    

    and that of course is wrong; it should be an ampersand before the second parameter and not a question mark.

    You’d have to look for the location in the code where the access token is added as parameter. At that point there should be a check for whether this URL already contains a question mark or not before appending the access_token parameter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make my online app communicate with Facebook. According to their
i'm trying to communicate with my filesystem driver. I can start the driver with
I am trying to build a simple server to communicate with Arduino and store
I am trying to communicate with a RESTful service in Rails. It can return
I was trying to communicate with 2 PC emulators. But after that I found
I'm trying to get an application to communicate via Facebook's XMPP server. For testing,
I am trying to communicate an Erlang program with a simple Qt window app
I am trying to communicate with a badly designed web server, but still I
I'm new to Flash and trying to communicate with an app engine server but
I am trying to create a simple NSURLConnection to communicate with a server using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.