Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook API - How to get user's address, phone #?

Is anyone able to get facebook user's address, phone # using FQL or Graph api?

Have tried the following FQL and was able to get 'Current City' and 'Hometown' which are under 'Basic information' but not the 'Address' or 'Phone' which are under 'Contact Information'.

SELECT name,first_name,last_name,birthday_date,current_location,hometown_location,pic,profile_url,timezone,username,profile_update_time FROM user WHERE uid IN (xxxx)

like image 425
amu Avatar asked Aug 04 '10 02:08

amu


2 Answers

These attributes are specifically and intentionally not available via the API, for spam prevention reasons (maybe other reasons as well)...

like image 65
Nick Craver Avatar answered Oct 16 '22 06:10

Nick Craver


Facebook did make a blog post that phone number and address fields were available by prompting for user_address and user_mobile_phone extended permissions in Jan 2011, but they since removed those permissions.

The phone fql fields are "cell" and "other_phone" but your application needs to be whitelisted to access them.

like image 43
bkaid Avatar answered Oct 16 '22 06:10

bkaid