我需要用户电子邮件地址,我想在 facebook sdk 中设置电子邮件权限。
你能给我一些想法吗?
我的代码:
@Deprecated
public void authorize(Activity activity, String[] permissions, final DialogListener listener) {
permissions =new String[] {"offline_access","video_upload","publish_stream","user_photos","email","read_friendlists"};
authorize(activity, permissions, DEFAULT_AUTH_ACTIVITY_CODE, SessionLoginBehavior.SSO_WITH_FALLBACK, listener);
}
我是这样做的。这是行不通的。