Instagram API Retrieve Hash Media - next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead

I want to get the instagram hashtag source file, for example iconosquare .

So, I am using Cosenary PHP Api to run my instagram project.

After authentication / URL access with $instagram->getLoginUrl()

The page will then redirect me to my parameters callback url ?code.

In my php reverse urls, I use the code and get my token access:

$data  = $instagram->getOAuthToken($_GET['code']);
$access_token = $data->access_token;

So, using access_token I am trying to get tag files for coffee.

$url   = "https://api.instagram.com/v1/tags/coffee/media/recent?access_token={$access_token}";

and access it using the Php CURL method ,

but the data comes back to me like

array(3) {
  ["pagination"]=>
  array(1) {
    ["deprecation_warning"]=>
    string(94) "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"
  }
  ["meta"]=>
  array(1) {
    ["code"]=>
    int(200)
  }
  ["data"]=>
  array(0) {
  }
}

, min_tag_id max_tag_id? , , .

- instagram.

+4
1

, Instagram . , ( , instagram #coffee, ( ) ifhtag instagram...

, .

Instagram , , .

+8

Source: https://habr.com/ru/post/1623746/


All Articles