How to get user information using facebook connection
2 answers
You should call users.getInfo. In PHP, you would do it like this:
$userId = 1234567;
$fb = new Facebook(FACEBOOK_API_KEY, FACEBOOK_SECRET);
$fb->api_client->users_getInfo($userId, 'name, pic_square, first_name');
You can check the function documentation here .
+4
source to share