【发布时间】:2011-05-10 03:46:17
【问题描述】:
我在我的网站上使用 JavaScript 身份验证,但我想在 PHP 中获取访问令牌,以便我可以存储用户的电子邮件地址。 有没有不使用 PHP 库的快速简便的方法? 谢谢!
PS - 我知道如何在 JS 中获取访问令牌:
FB.login(function(response) {
if (response.session) {
if (response.perms) {
} else {
// user is logged in, but did not grant any permissions
alert("No Permission..");
}
} else {
// user is not logged in
alert("Please login to facebook");
}
}, {perms:'read_stream,publish_stream,offline_access'});
【问题讨论】:
标签: facebook facebook-graph-api