开发者

Error trying to use restFB on GAE development environment

I'm trying to use restFB on Google App Engine, when I try and get info about the current U开发者_如何学Cser, 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜