間の入力に私は私のアプリを終了しているし、その後3つのFBのアカウント上でそれを試してみましたが、それは、 OKだったが、4 番目は、(それがアクセストークンを取得することはできません)恒久的なエラーがあります。FBエラー:予想される1 '。'はがきとペイロード
をcom.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException: Expected 1 '.' In the input between the postcard and the payload.
私はこのアプリを削除してこのアカウントにもう一度インストールしようとしましたが、何も変更されませんでした。
JavaとrestFBクライアントを使用します。
これは、私がアクセストークンを取得するコードです:
if (request.getParameter("code") != null) {
String code = request.getParameter("code");
String url = "https://graph.facebook.com/oauth/access_token?"
+ "client_id=" + clientId + "&" + "client_secret="
+ clientSecret + "&" + "code=" + code + "&" + "redirect_uri="
+ redirectURL +"&type=web_server";
String accessToken=readUrl(url).split("&")[0].replaceFirst("access_token=", "");
//....
}
私は同じエラーでhere誰かを見て、彼は解決策があったと言った:
replacing "|" with "%257C" which made my access token invalid"
私は本当にできませんでした彼が何を意味するのか理解する。