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

后端 未结 1 1904
忘了有多久
忘了有多久 2021-01-06 19:06

can I retrieve it using fql or graph api

相关标签:
1条回答
  • 2021-01-06 19:46

    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 :)

    0 讨论(0)
提交回复
热议问题