FaceBook应用程序:检索应用程序用户的ID列表 [英] FaceBook app: retrieve list of ids of my application's users
本文介绍了FaceBook应用程序:检索应用程序用户的ID列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用fql或graph api检索它
can I retrieve it using fql or graph api
推荐答案
每当用户进入您的应用程序时,如下所示:
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;
现在,Facebook ID存储在变量 $ user_id
。一旦你收到这样的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 :)
这篇关于FaceBook应用程序:检索应用程序用户的ID列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文