我的问题是,我正在尝试将最新的Facebook SDK与我的应用程序集成,但我无法启动fb登录屏幕。而不是我得到一个空白的成功屏幕,它只是停留在那里。
以下是我使用的代码,它与草莓示例应用程序中的代码完全相似,请告诉我出错的地方!
public class FacebookAppIntegration {
static String NEXT_URL = "http://www.facebook.com/connect/login_success.html";
static String APPLICATION_ID = "211996588907118";
static String APPLICATION_SECRET = "ae4503070a5a485ac3b6493dbea3e09d";
static String[] PERMISSIONS = Facebook.Permissions.ALL_PERMISSIONS;
public static void LaunchFacebook() {
ApplicationSettings as = new ApplicationSettings(NEXT_URL, APPLICATION_ID, APPLICATION_SECRET, PERMISSIONS);
Facebook fb = Facebook.getInstance(as);
try {
User user = fb.getCurrentUser();
} catch (FacebookException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}