3

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Lumpy
  • 3,632
  • 4
  • 34
  • 58
  • I think this is because I am working on the development server. What steps do I need to take to let this code run on the development server. – Lumpy May 17 '11 at 18:21
  • Let me know if you found a workaround for this please. – Marcelo May 19 '11 at 16:26

2 Answers2

1

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

Lumpy
  • 3,632
  • 4
  • 34
  • 58
0

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

Gray
  • 2,333
  • 1
  • 19
  • 24