ImageView connect = (ImageView) findViewById(R.id.fconnect);
connect.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
facebook.authorize(SignIn.this, new String[] {"offline_access", "email", "read_friendlists","publish_stream" },new DialogListener() {
@Override
public void onComplete(Bundle values) {
String AccessToken = facebook.getAccessToken();
LoginDirect = "Loading Home....";
LoginProcessChkUserStatus();
}
@Override
public void onFacebookError(FacebookError error) {
}
@Override
public void onError(DialogError e) {
}
@Override
public void onCancel() {
}
});
}else{
progress = true;
LoginProcessChkUserStatus();
}
}
});
這個Facebook的API ....,我在我的應用程序中使用加載......這工作得很好...當我點擊登錄按鈕.. 。在授權它來到完成階段...現在問題來了,當我安裝Facebook.apk在我的手機採取從Facebook SDK ....視圖變成這個....也當我點擊登錄按鈕時,它從來沒有excutes上面的代碼....我該怎麼做......?
是的,謝謝你是對的...我發送鏈接創建哈希..key的正確方法.. http://www.helloandroid.com/tutorials/using- facebook-sdk-android-development-part-1 http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-2 – Rockin