关于使用Mgp25 API关注Instagram主题标签的错误

时间:2019-07-03 04:33:27

标签: php instagramapi-mgp25

    do {
        $response = $insta_obj->hashtag->getFeed($tag_names[(int)$getRequestFollow['tag_state']], $rankToken, $maxId);
        foreach ($response->getItems() as $item) {
            $item = json_decode($item, true);
            $insta_obj->people->follow($item['ranked_items'][$i]['user']['pk']);
        }
        $maxId = $response->getNextMaxId();
        sleep(10);
        if ($i == (int)$getRequestFollow['follow_counter'] + (int)$getSpeedFollow['follow_in_hour']) {
            $maxId = null;
        }
        $i++;
    } while ($maxId !== null);

我有两个错误

  

1 =未定义索引:rank_items   
  
  2 =致命错误:未捕获   InstagramAPI \ Exception \ NotFoundException:请求的资源不   存在。在   C:\ wamp64 \ www \ robot \ modal \ vendor \ mgp25 \ instagram-php \ src \ Client.php on   第491行(!)InstagramAPI \ Exception \ NotFoundException:请求   资源不存在。在   C:\ wamp64 \ www \ robot \ modal \ vendor \ mgp25 \ instagram-php \ src \ Client.php on   第491行

0 个答案:

没有答案