永远不会通过Instagram实时订阅接收用户媒体更新

时间:2013-08-07 01:37:41

标签: instagram

我没有希望任何来自Instagram的人监视SO但谁知道......

你们是否使用Instagram上的Real-time照片更新?我从未收到用户媒体更新。我成功订阅了它,Instagram发送到我的服务器HTTP GET确认电话,我重播并且之后再也没有收到任何更新。

想法?

1 个答案:

答案 0 :(得分:0)

更新来自正文,而不是POST ...然后你必须做一些技巧才能得到它:

$file = fopen("data.txt","a");
fwrite($file,"\r\n- - - - - - - - - - - - - ".date('Y-m-d H:i:s')." \r\n");
if (count($_GET)>0)
    fwrite($file,"\r\nGET:\r\n".print_r($_GET,true));
if (count($_POST)>0)
    fwrite($file,"\r\nPOST:\r\n".print_r($_POST,true));
$handle = fopen('php://input','r');
$jsonInput = fgets($handle);
$decoded = json_decode($jsonInput,true);
fwrite($file,"\r\nINPUT DECODED:\r\n".print_r($decoded,true));
fclose($file);
相关问题