A friend is considered a user, so you go to the user documentation , get the name of the location field (for sending to fields ) And you check if you need a specific permission:
Requires user_location or friend_location permission
CLOTHING A typo there! to get your friendβs location you will need friends_location (with s ) link .
Here is an example PHP-SDK:
$facebook->api('/friend_id', 'get', array("fields"=>"name,location"));
Here I retrieve the name and location fields (note that the id field will be automatically loaded).
ifaour
source share