【发布时间】:2012-12-18 22:51:05
【问题描述】:
好吧,在我的应用程序中,我要求用户授予我获取他的电子邮件的权限......假设他这样做......
根据API参考的代码,FB.getLoginStatus函数返回一个Json Object,内容如下:
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
}
}
那么,假设用户已接受条款,并授予我的应用程序发送电子邮件的权限,那么电子邮件值在哪里? FB.getLoginStatus 回复中的新孩子?类似的东西:
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
userEmail:'....'
}
}
在 PHP 中,我使用类似的东西:
json_decode(file_get_contents('http://graph.facebook.com/SOMEIDHERE'))->name;(例如对 graph.facebook.com 的请求)
但这不是我要找的。p>
感谢您的关注。
【问题讨论】: