Home How to get the Facebook user id using the access token
Reply: 0

How to get the Facebook user id using the access token

user5026
1#
user5026 Published in September 19, 2018, 3:17 am

I have a Facebook desktop application and am using the Graph API. I am able to get the access token, but after that is done - I don't know how to get the user's ID.

My flow is like this:

  1. I send the user to https://graph.facebook.com/oauth/authorize with all required extended permissions.

  2. In my redirect page I get the code from Facebook.

  3. Then I perform a HTTP request to graph.facebook.com/oauth/access_token with my API key and I get the access token in the response.

From that point on I can't get the user ID.

How can this problem be solved?

share|improve this question

7 Answers 7

active oldest votes
up vote 144 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.400757 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO