I'm developing an application in which I'm using Facebook
log in button from SDK. I'm able to get access_token
of the user but I want userID
too. I have tried almost everything but was not successful. I have used facebook tutorial for achieving that. Here is the link: Facebook Login Button
Please help me in getting userID
from the same login button.
Any kind of help will be appreciated.
User ID. Your User ID is a string of numbers that doesn't personally identify you but does connect to your Facebook profile. You have a User ID automatically, whether or not you choose to create a username. Learn how to find your user ID.
loginResult.getAccessToken().getUserId()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With