Praveen
Praveen

Reputation: 1851

CurlUrlInvalidException : Facebook Real time update

I was trying to implementing facebook real time update. It looks like i was able to subscribe.

  `$param = array(
            'access_token' => $user_access_token,
            'object' => 'user',
            'fields' => 'name',
            'callback_url' =>'http://127.0.0.1/storm/callback.php',
            'verify_token' => 'XYZ',
            'active' => true
            );
  $subs = $facebook->api('/'.$app_id.'/subscriptions', 'POST', $param);

`

I get this error:

{"message":"http:\/\/127.0.0.1\/storm\/callback.php?hub.mode=subscribe&hub.challenge=1229793076&hub.verify_token=XYZ is an internal url, but this is an external request.","type":"CurlUrlInvalidException"}}

Does this have anything to do with me testing it locally?? How can i fix this? Please let me know.

Upvotes: 1

Views: 435

Answers (1)

equeny
equeny

Reputation: 96

You need to use your real ip address in 'callback_url'

Upvotes: 1

Related Questions