0

im using Go Daddy hosting...

IP Address 118.139.174.1 Dedicated IP Address 118.139.174.142

from last one month im getting this error from Facebook, i try to fill IP Address in App Setting, but still does not work...

Fatal error: Uncaught OAuthException: (#5) Unauthorized source IP address thrown in /home/content/88/9201788/html/stone-game/classes/facebook/base_facebook.php on line 1106

Igy
  • 43,710
  • 8
  • 89
  • 115
Kamal Sharma
  • 16
  • 1
  • 2
  • Can you add the code which you are using, you have an OAuthException - did you search for that yet? – Rob Oct 16 '12 at 09:26
  • im using this code. $facebook = new Facebook(array( 'appId' => '', 'secret' => '', )); $user = $facebook->getUser(); if ($user) { try { $user_profile = $facebook->api('/me'); } catch (FacebookApiException $e) { error_log($e); $user = null; } } with facebook php sdk 3.1 – Kamal Sharma Oct 16 '12 at 09:35

3 Answers3

1

Your outgoing IP address is different from your hosting address. I've ran into the exact same situation about a month ago. I've contacted GoDaddy and I was told that there's nothing to do for fixing the outgoing IP address unless I start using a [virtual] dedicated server. Just delete the whitelisted IP from the list and you'll be fine.

Here, have a look at this: OAuth Error: This IP can't make requests for that application

Community
  • 1
  • 1
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
0

I guess Facebook blacklisted your host. Seems that this happens quite often with Go Daddy.

Here is more:

Login with Facebook : Uncaught OAuthException: (#5) Unauthorized source IP address thrown

http://support.godaddy.com/groups/web-hosting/forum/topic/fatal-error-uncaught-oauthexception/

Community
  • 1
  • 1
andyrandy
  • 72,880
  • 8
  • 113
  • 130
-1

You might also be running the API from your Localhost. Try running your application live.

samuelcesc
  • 46
  • 2