Reputation: 600
During connected app integration user is redirected to a callback url provided by application developer. At the last step of authentication it is written that "Save this access token for this user in your database." . But the problem is you do no get userId during this authentication process.
https://developer.foursquare.com/overview/auth#access
I get authentication code but can not access userId. How can get userId of authenticating user...
regards..
Upvotes: 1
Views: 201
Reputation: 2004
Once you have the access token, you can make a request to the users/self endpoint to get any information about the user associated with that token, including the user's id
.
Upvotes: 1