Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

OAuthPopupButton OAuth Popup Add-on suddenly does not work anymore ...

Normand Henault
5 years ago Mar 27, 2017 7:22pm

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() { ...
 

Andreas Schindlbeck
5 years ago Mar 28, 2017 7:57am