Results 1 to 2 of 2

Thread: java.net.UnknownHostException: graph.facebook.com

  1. #1
    Join Date
    Mar 2013
    Posts
    3

    Default java.net.UnknownHostException: graph.facebook.com

    I am getting below exception .. I read earlier posts about this issue , they were discussing about proxy issue .. but i am running on my own laptop .. i dont have any proxy issues , but still i am seeing this issue .. any idea ?

    org.springframework.social.connect.web.ProviderSig nInController - Exception while handling OAuth2 callback (I/O error on POST request for "https://graph.facebook.com/oauth/access_token":graph.facebook.com; nested exception is java.net.UnknownHostException: graph.facebook.com). Redirecting to /signin

  2. #2
    Join Date
    Aug 2004
    Posts
    1,070

    Default

    There's no reason that should not work unless...

    - There's a proxy or firewall issue preventing you from seeing graph.facebook.com (and you say there's not)
    - There's some other form of network issue preventing you from seeing graph.facebook.com (such as a DNS issue)
    - Facebook has discontinued use of graph.facebook.com (and this most certainly has *not* happened).

    So, this still sounds like a network issue of some sort. Have you tried going to graph.facebook.com in your browser? If all you do is point your browser at http://graph.facebook.com, you should *at least* get back the following JSON:

    Code:
    {
       "error": {
          "message": "Unsupported get request",
          "type": "GraphMethodException",
          "code": 100
       }
    }
    If your browser can't do it, then it's certainly a network issue of some sort. But if your browser can see it but you still get the same error in your code, then it's something else. (Honestly, I'd be very puzzled at that point, but trying it in your browser is still an easy and worthwhile exercise.)
    Craig Walls
    Spring Social Project Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •