Ted
Ted

Reputation: 4166

FaceBook app: retrieve list of ids of my application's users

can I retrieve it using fql or graph api

Upvotes: 3

Views: 3119

Answers (1)

Sarfraz
Sarfraz

Reputation: 382806

Each time a user comes to your app, his facebook id can be retrieved like this:

$facebook = new Facebook($api_key, $secret);
$facebook->require_frame();
$user_id = $facebook->require_login();
echo $user_id;

Now the facebook id is stored in the variable $user_id. Once you receive an id like that, you should save it in your database and you can get them back from your database any time you like :)

Upvotes: 2

Related Questions