1

I found out how to get username, user id, user email id using the Facebook SDK. I still don't know how to get the user phone no and user password.

I am referring to this Link

The example reads the id, the username and the email.

Could you tell me how to get the user phone no and the user password using the Facebook SDK.

Community
  • 1
  • 1
SAndroidD
  • 1,745
  • 20
  • 33
  • but at-least phone no – SAndroidD Apr 24 '14 at 10:56
  • I do not think that is going to be possible for every user, it depends if the user has kept their phone number public. Although at higher end, everything is possible. – Skynet Apr 24 '14 at 10:57
  • but is it possible to get the user phone no? value null or data – SAndroidD Apr 24 '14 at 11:01
  • Yes it is possible to get user phone number. For the people who have kept it public using Graph API, also for the people who have not. Although the later part of the previous statement is a bit twisted and is not related with Graph API. – Skynet Apr 24 '14 at 11:02
  • then how to get phone no – SAndroidD Apr 24 '14 at 11:04

1 Answers1

1

Currently, Facebook API does not let you access user's phone number and as they said this will not be added anytime soon. Therefore, You can't get either phone number or password from Facebook. You can authenticate your user without password using Facebook Login. The phone number acquisition will have to be handled directly by your application, and the password can be the user's facebook id as an alternative solution.

eyadMhanna
  • 2,412
  • 3
  • 31
  • 49
Karan Modi
  • 972
  • 2
  • 13
  • 26