Ошибка о следующих хэштегах Instagram с Mgp25 api - PullRequest
0 голосов
/ 03 июля 2019
    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 = неопределенный индекс: ranked_items2 = Неустранимая ошибка: Uncaught InstagramAPI \ Exception \ NotFoundException: запрошенный ресурс не существует.в C: \ wamp64 \ www \ robot \ modal \ vendor \ mgp25 \ instagram-php \ src \ Client.php в строке 491 (!) InstagramAPI \ Exception \ NotFoundException: запрошенный ресурс не существует.в C: \ wamp64 \ www \ robot \ modal \ vendor \ mgp25 \ instagram-php \ src \ Client.php в строке 491

...