Closed GoogleCodeExporter closed 8 years ago
Sorry, it seams problem was in my https proxy settings for JVM. I changed it
and everything works ok.
Original comment by zbub...@gmail.com
on 9 Mar 2012 at 10:12
Thanks for letting me know. Will close this one out.
Original comment by m...@xmog.com
on 12 Mar 2012 at 6:51
What did you change to get rid of this problem. We have the same issue here.
Original comment by moehrin...@googlemail.com
on 9 Oct 2012 at 12:59
Hi Moehrin,
I set-up my Java VM proxy settings because I tried to run this sample behing
company proxy.
For example:
System.setProperty("http.proxyHost", "webcache.mydomain.com");
System.setPropery("http.proxyPort", "8080");
BR
Original comment by zbub...@gmail.com
on 10 Oct 2012 at 8:39
Hi I have same issue as yours and I tried to set the system properties in the
code, but still same issue.
Can you clarify what you mean by setting them up on your Java VM, does that
mean you put them somewhere else other than inside the code itself?
Would really appreciate the help.
P.S. I'm using fetchconnection instead of fetchobject does it matter?
Original comment by farah.e...@gmail.com
on 29 Apr 2013 at 2:46
Hi,
I just executed it on begining of my code (within main function) and it worked
for rest of execution.
For long-time solution, you can google how to set-up your JVM to use proxy.
Original comment by zbub...@gmail.com
on 29 Apr 2013 at 2:51
Could you please tell me how it resolved your issue. My working application
suddenly not working with same exception. Am able to connect to other urls and
verified java setting is fine with no proxy setting required. What else could
be the reason?
Original comment by rathi.pr...@gmail.com
on 5 Aug 2014 at 9:45
Use this code for FacebooknetwaorException
public static void main(String[] args) {
try {
FacebookClient fbclient=new DefaultFacebookClient("CAACEdEose0cBAMZCEZCtNprks5s9erE9AaTVWQYmF06oCjwyPgfxOoKzdVT9dBIcdvRoeyxZC3DkE8MAPytdWAajlLFKcZAGmZBeXH38pPZCrLN87oMxZCIivyOm9yl7ZAdlyNdQ1ZBrfLZBYk2OdR2ZABQA621slnS7GG1x9DxbcPWPqhceapBTigJPTWBA2U1ZBSnkWHHerZBicyY7gF8LeqMXC");
User user= fbclient.fetchObject("562659953878124", com.restfb.types.User.class);
System.out.println(user.getBirthday());
System.out.println(user.getFirstName());
System.out.println(user.getGender());
System.out.println(user.getId());
System.out.println(user.getLastName());
System.out.println(user.getBio());
} catch (FacebookJsonMappingException e) {
// Looks like this API method didn't really return a list of users
} catch (FacebookNetworkException e) {
// An error occurred at the network level
System.out.println("API returned HTTP status code " + e.getHttpStatusCode());
} catch (FacebookOAuthException e) {
// Authentication failed - bad access token?
} catch (FacebookGraphException e) {
// The Graph API returned a specific error
System.out.println("Call failed. API says: " + e.getErrorMessage());
} catch (FacebookResponseStatusException e) {
// Old-style Facebook error response.
// The Graph API only throws these when FQL calls fail.
// You'll see this exception more if you use the Old REST API
// via LegacyFacebookClient.
if (e.getErrorCode() == 200)
System.out.println("Permission denied!");
} catch (FacebookException e) {
// This is the catchall handler for any kind of Facebook exception
}
Original comment by pundu...@gmail.com
on 26 Nov 2014 at 11:15
Original issue reported on code.google.com by
zbub...@gmail.com
on 9 Mar 2012 at 9:40