署名されていない apk を作成すると、Facebook に投稿するダイアログが表示された後に許可を受け入れますが、許可を受け入れた後に公開する apk に署名しても何もしません。それは何でしょうか?
アンデジンを使用しています。
Facebook モバイル アプリケーションが動作している場合にアンインストールした場合、使用していないことをアプリケーションに通知する方法はありますか?
public void facebookLogin(final String mensaje, final String caption)
{
Session.openActiveSession(this, true, new Session.StatusCallback()
{
@Override
public void call(Session session, SessionState state, Exception exception)
{
if (session.isOpened())
{
Request.executeMeRequestAsync(session, new Request.GraphUserCallback()
{
@Override
public void onCompleted(GraphUser user, Response response)
{
if (user != null)
{
facebookFeedDialog(mensaje, caption);
}
}
});
}
}
});
}
public void facebookFeedDialog(String message, String caption)
{
Bundle params = new Bundle();
params.putString("name", "My Application");
params.putString("caption", caption);
params.putString("description", message);
params.putString("link", "https://play.google.com/store/apps/details?id="+this.getApplication().getPackageName().toString());
params.putString("picture", "XXXXX");
WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this, Session.getActiveSession(), params)).setOnCompleteListener(new OnCompleteListener() {
@Override
public void onComplete(Bundle values, FacebookException error)
{
touchHabilitado = true;
if (error == null)
{
final String postId = values.getString("post_id");
if (postId != null)
{
// POSTED
toast("OK");
}
else
{
// POST CANCELLED
//toast("cancel 1");
}
}
else if (error instanceof FacebookOperationCanceledException)
{
// POST CANCELLED
//toast("cancel 2");
}
else
{
// ERROR POSTING
toast(error.getMessage());
}
}
}).build();
feedDialog.show();
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
}