ho finito la mia app e poi l'ho provato su 3 account FB ed era ok, ma il 4 th ha un errore permanente (non può ottenere un token di accesso):Errore FB: Previsto 1 '.' nell'input tra la cartolina e il payload
com.restfb.exception.FacebookOAuthException: Received Facebook error response of type OAuthException: Expected 1 '.' In the input between the postcard and the payload.
Ho provato a rimuovere l'app e installarlo di nuovo su questo account alcune volte e non è cambiato nulla.
Uso Java e client restFB.
Questo è il codice in cui ottengo il token di accesso:
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=", "");
//....
}
ho visto here qualcuno con lo stesso errore, ha detto che la soluzione era:
replacing "|" with "%257C" which made my access token invalid"
non ho potuto veramente capisci cosa intende