Hello everyone,
I’m having this weird issue this morning …
Getting access token failed.
Using Scribe API: FacebookApi ] with root cause
org.scribe.exceptions.OAuthException: Response body is incorrect.
org.scribe.exceptions.OAuthException: Response body is incorrect. Can’t extract a token from this: ‘{“access_token”:“EAABoMusfl3gBAFOZCZCFIuEroURsZCg8fRdgnynMxj5KOZB6yQLlhmYSQZBwVKUXfWBjm45HZALrLRVZCuHRZBDRpj68MWRoujHUea4s98X9F9D2cKKxZBWq1hxb5IJTPkNFyeowGfRqGO9wcDNTqjtETuFjIuO2pZAnAZD”,“token_type”:“bearer”,“expires_in”:5165037}’ org.scribe.extractors.TokenExtractor20Impl.extract(TokenExtractor20Impl.java:32) org.scribe.oauth.OAuth20ServiceImpl.getAccessToken(OAuth20ServiceImpl.java:37) org.vaadin.addon.oauthpopup.OAuthData.setVerifier(OAuthData.java:149) org.vaadin.addon.oauthpopup.OAuthCallbackRequestHandler.handleRequest(OAuthCallbackRequestHandler.java:53) com.vaadin.server.communication.SessionRequestHandler.handleRequest(SessionRequestHandler.java:63) com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1422) com.vaadin.server.VaadinServlet.service(VaadinServlet.java:379) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
I didn’t change anything in my code … Weird … Did Facebook change anything that would make this not work anymore ???
Here is my code :
final OneoAuth oauth = new SQL_AppSetups().GetOneoAuth(Provider);
final FacebookButton button = new FacebookButton(oauth.getoAuthKey(), oauth.getoAuthSecret());
button.setScope(“pages_show_list”);
button.addOAuthListener(new OAuthListener() { …