How can I get this user's name using hi开发者_如何转开发s/hers uid
in my app using php
? I'm assuming that the given user permitted my app to access this data.
Facebook has php-sdk (a convenient php library that can be used to use facebook api) that has exactly this example, a source available for you.
use php-sdk library to get user information.
$facebook->api('/me') returns all information regarding user(name,email etc)
精彩评论