質問

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