我刚接触Facebook集成我希望获得电子邮件ID我知道我必须添加权限但是dnt知道在此部分中添加的位置(" Permission")
private class LoginDialogListener implements DialogListener {
@Override
public void onComplete(Bundle values) {
Log.d(TAG, "LoginONComplete");
String token = mFacebook.getAccessToken();
long token_expires = mFacebook.getAccessExpires();
Log.d(TAG, "AccessToken: " + token);
Log.d(TAG, "AccessExpires: " + token_expires);
sharedPrefs = PreferenceManager
.getDefaultSharedPreferences(mContext);
sharedPrefs.edit().putLong("access_expires", token_expires)
.commit();
sharedPrefs.edit().putString("access_token", token).commit();
edit.putString("toc", token);
edit.commit();
mAsyncRunner.request("me", new IDRequestListener());
}