php - display only surname using graph api. is it possible? -


i have results returned friends list, prefer there forename returned rather full name.

is possible.

also, how make profile image bigger when displayed?

i have tried use "first_name" comes undifined index.

here code have:

if ($user) { $user_profile = $facebook->api('/me'); $friends = $facebook->api('/me/friends');  echo '<table>'; foreach ($friends["data"] $value) {     echo '<td>';     echo '<div class="pic">';     echo '<img src="https://graph.facebook.com/' . $value["id"] . '/picture"/>';     echo '</div>';     echo '<font color="white">','<div class="picname">'.$value["first_name"].'</div>','</font>';     echo '</td>'; } echo '</table>'; } 

you should able first name call:

$friends = $facebook->api('/me/friends?fields=first_name'); 

also, mean making profile image bigger? need this: https://developers.facebook.com/docs/reference/api/using-pictures/#sizes


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -