Error trying to use restFB in GAE development environment

I try to use restFB in the Google App Engine, when I try to get information about the current user, I get an error message,

 javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for: https://graph.facebook.com/me?format=json

Below is the code I'm using,

FacebookClient facebookClient = new DefaultFacebookClient();
    User user = facebookClient.fetchObject("me", User.class);

What do I need to do for this to work on the development server?

+3
source share
2 answers

This is fixed in version 1.5.0. If you upgrade to the new SDK, it should work fine.

+1
source

As a workaround, you can use doNotValidateCertificate () to ignore certificate validation. However, this may put your application at risk.

0
source

All Articles