recently I create an application that uses facebook login.
I'm not storing the users data, but I'd like know the users facebook id.
How can I get the facebook id of the users that have installed my application?
Thanks.
recently I create an application that uses facebook login.
I'm not storing the users data, but I'd like know the users facebook id.
How can I get the facebook id of the users that have installed my application?
Thanks.
Sadly, you cannot, you need to have your own database that saves that kind of data (everytime someone logs into the application with Facebook save his ID into your own database).
This is FQl Query:
$facebook->api(array('method' => 'fql.query', 'query' => "SELECT uid FROM user WHERE is_app_user = '1' AND uid IN (SELECT uid2 FROM friend WHERE uid1 = '" . $user_id . "');"));
The documentation for the user and friend queries are here: