Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook sdk get users phone number or Address?

I think i dug through the whole facebook sdk documentation but can't seem to find the way to get the users Phone number or Address. Is this feature removed, as of spoken in this thread where it's suggested it will be re-enabled in a few weeks (2011).

like image 632
EvertvdBraak Avatar asked Nov 10 '13 17:11

EvertvdBraak


People also ask

How do I get a phone number from Facebook Graph API?

Phone Number Verification Code To get a phone number's ID, call to https://graph.facebook.com/ v14. 0 /{whatsapp-business-account-ID}/phone_numbers . Replace {whatsapp-business-account-ID} with the ID of the WhatsApp Business Account the phone number belongs to. See Get all phone numbers for an example.

What data Facebook SDK collects?

The Facebook SDK collects the following information when you use Facebook Login: App Events: This covers generic app events (e.g. app install, app launch) and other standard logging for product metrics (e.g. SDK loading and SDK performance). Note that some of these events (e.g. app installs, app launches etc.)

How do I find Facebook user data?

You can get user data by using the Facebook Graph API if the user has given their permission to share their data and your app has the appropriate permissions to receive this data. This topic shows you how to make a single request for data and how to have a batch of requests in a single request.

How do I get my Facebook API User ID?

The simplest way to get a copy of the User Profile object is to access the /me endpoint: FB. api('/me', function(response) { }); This will this will return the users name and an ID by default.


1 Answers

This information is not available via the Facebook APIs and will not be added anytime soon. If you want this information from the user you should prompt them for it after they have logged into your application using Facebook.

Here's a link to Facebook's APIs: https://developers.facebook.com/docs/reference/api/user/

You can use the graph API explorer to gain a clearer understanding of what information is and isn't available.

like image 55
Michael Droz Avatar answered Oct 15 '22 02:10

Michael Droz