开发者

CurlUrlInvalidException : Facebook Real time update

开发者 https://www.devze.com 2023-04-10 23:56 出处:网络
I was trying to implementing facebook real time update. It looks like i was able to subscribe. `$param = array(

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' =>开发者_JAVA百科;'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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消