我试图用Facebook SDK在我的同仁中。 The snippet:
Facebook myFacebook = new Facebook("123456789012345");
myFacebook.authorize(LogInScreen.this,
new String[] {
"publish_stream",
"email",
"user_about_me",
"user_birthday",
"user_website",
"friends_photos",
"user_photos"},
Facebook.FORCE_DIALOG_AUTH,
new DialogListener(){
@Override
public void onCancel() {
Log.i("Facebook", "Facebook - cancel");
}
@Override
public void onComplete(Bundle arg0) {
Log.i("Facebook", "Facebook - complete, AccessToken: " + myFacebook.getAccessToken());
}
@Override
public void onError(DialogError arg0) {
Log.i("Facebook", "Facebook - error");
}
@Override
public void onFacebookError(FacebookError error) {
Log.i("Facebook", "Facebook - facebookError: " + error);
try {
myFacebook.logout(LogInScreen.this);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}
);
}
});
在我管理这部法典时,我可以与我的主面记一起记录,但当我试图使用任何其他假记时,我就错了“未能获得象征性的准入”。 我失踪了吗?