开发者

How to get Friends e-mails

开发者 https://www.devze.com 2023-02-15 11:37 出处:网络
I\'m trying to use FacebookSDK_V5.0.3 to interact with Facebook. I\'ve created a Facebook application (AppX) and a Facebook user (UserX) and granted all permissions regarding UserX to AppX. Now, I wan

I'm trying to use FacebookSDK_V5.0.3 to interact with Facebook. I've created a Facebook application (AppX) and a Facebook user (UserX) and granted all permissions regarding UserX to AppX. Now, I want AppX to access UserX friends e-mails addresses. Is it possible?

I've already managed to get UserX friends through the following code.

var fb = new FacebookClient(AppId, SecretKey); dynamic friends = fb.Get("UserX/friends");

I've tried many approaches to get the friends e-mails, but开发者_运维百科 I couldn't. I can't access user info directly because AppX doesn't have permissions to read, but if can through UserX...

Thanks a lot, Leonardo


You can't. A user has to explicitly grant you the email extended permission for you to retrieve their email address. It is not enough that their friend granted you that permission.

0

精彩评论

暂无评论...
验证码 换一张
取 消