Вопрос

I'm trying to use restFB on Google App Engine, when I try and get info about the current User, I get an error,

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

Below is the code I am using,

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

What do I need to do to get this working on the development server?

Это было полезно?

Решение

This is fixed in release 1.5.0 If you update to the new SDK it should run fine.

Другие советы

As a workaround you can use doNotValidateCertificate() to ignore certificate validation. It may put your app at risk, however.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top