我在PHP中有一份Facebook App。 供用户使用“电子邮件”许可。 我注意到,我获得了用户电子邮件地址90%,但不是某些。
我知道,电子邮件许可使Facebook App得以获得用户简介中载明的主要电子邮件地址,但SDK有时返回<代码>null?
我在PHP中有一份Facebook App。 供用户使用“电子邮件”许可。 我注意到,我获得了用户电子邮件地址90%,但不是某些。
我知道,电子邮件许可使Facebook App得以获得用户简介中载明的主要电子邮件地址,但SDK有时返回<代码>null?
“电子邮件”是允许用户在提出申请时不必给予的延伸许可。 如果您需要用户在您的传阅之前给予“电子邮件”许可,那么你必须检查,在允许用户在认证后继续工作之前,这种许可在场。
页: 1
Here is a method that I use to do just that:
<代码>permissions is a range of strings which represent the granteds requested.
hasPermissions(["email"], function(hasPerms){
alert(hasPerms);
});
function hasPermissions(permissions, callback){
console.log("perms requested");
console.log(permissions);
FB.api("/me/permissions", function(response){
var hasPerms = true;
console.log("perms obtaind");
console.log(response);
for(var i in permissions){
console.log([permissions[i]] + " - " + response["data"][0][permissions[i]])
hasPerms = hasPerms && response["data"][0][permissions[i]] == 1;
}
if(typeof callback == "function"){
callback(hasPerms);
}
});
}
I dont think email is part of extended permission set. I asked for the email permission in the authorization dialog, it does not appear in the auth dialog.
I can view my application via the http://apps.facebook.com/app/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the tab no ...
Our app is displaying its information in a way similar to that found on Facebook s "feed" page which shows a timeline of activity by members of the particular profile s network. I can see that could ...
I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...
I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...
I m going to create a Facebook application which get informations (name and page_url) about Facebook page from his page_id. So i went to the Facebook Wiki and i found this API method which sounds good ...
I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...
I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...
If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...