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 987287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:27:16+00:00 2026-05-16T05:27:16+00:00

I feel like every second question i ask here is relating to Facebook Connect

  • 0

I feel like every second question i ask here is relating to Facebook Connect – that says a lot about their API. Anyway, that’s politics, i digress..

I’m trying to pull back user details from the Graph API for use in my application (which is an FBML external website – JavaScript SDK for authentication).

I have requested the following permissions from the user: (using the regular dialog)

  • publish_stream
  • email

This works, and allows me to post to the user’s wall, and grab their email from the Graph API.

But when i do a HTTP GET Request to the following URL:

https://graph.facebook.com/uid?access_token=oat (where uid = the user id of the user i’m attempting to grab details for, and oat = the OAuth token i have).

All that comes back in the JSON is the User ID (which i already have, since im putting it in the URL), and the email.

Why can i not get things like first name, last name, locale, etc?

Am i using the wrong URL? Is my OAuth token wrong?

I’m getting the OAuth token from here:

https://graph.facebook.com/oauth/access_token?type=client_cred&client_id=myappid&client_secret=myappsecret

UPDATE:

It looks like the issue is my OAuth token.

Because when i go to the docs: http://developers.facebook.com/docs/api

And use the sample OAuth Token for the user im trying to retrieve, it gets all the details.

Anyone know what is wrong with my OAuth token call?

  • 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-05-16T05:27:17+00:00Added an answer on May 16, 2026 at 5:27 am

    So, i was using the wrong URL for the OAuth Exchange. It needed to be this:
    https://graph.facebook.com/oauth/exchange_sessions?type=client_cred&client_id=myappid&client_secrete=myappsecret&sessions=userseshid

    The URL that i WAS using was as per the doco, the above one that works is nowhere to be found.

    I’m at the point with FBC that i no longer care about the how, if it works, be thankful that it does even that and move on.

    EDIT:

    Also, i was wondering why the Graph API calls would “stop” working for no reason.

    The answer is i needed to compare the Session Key used to obtain the OAuth token, with the Session Key currently in the cookies. If they are different, i needed to get a new OAuth token.

    The session key used for any OAuth token is part of the actual OAuth token:

    aaa|bbbb|cccc
    

    Where bbbb is the session key. So i just compare that before doing any Graph API calls.

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

Sidebar

Related Questions

No related questions found

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.