ユーザーからすべての通知を取得できます。これはうまくいきます。今、私は通知をループで処理し、処理が終了したらそれらを削除したいと考えています。
このコードを Facebook 開発者ウェブサイトからコピーして貼り付けました
private void deleteRequest(String inRequestId) {
// Create a new request for an HTTP delete with the
// request ID as the Graph path.
Request request = new Request(Session.getActiveSession(),
inRequestId, null, HttpMethod.DELETE, new Request.Callback() {
@Override
public void onCompleted(Response response) {
// Show a confirmation of the deletion
// when the API call completes successfully.
Toast.makeText(getActivity().getApplicationContext(), "Request deleted",
Toast.LENGTH_SHORT).show();
}
});
// Execute the request asynchronously.
Request.executeBatchAsync(request);
実行すると、次のエラー メッセージが表示されます:サポートされていない削除要求です
私の inRequestId パラメータは次のようになります: ' notif_670328449_186512168 '
「 notif_ 」部分なしで同じリクエストをすでに試しましたが、機能していません。
私の質問は、正しい通知要求 ID は何ですか? 通知を処理した後、通知を削除するにはどうすればよいですか?
情報: https://developers.facebook.com/docs/howtos/androidsdk/3.0/app-link-requests/#step2