Created a method to run the request to Instagram several times until it works properly.