Instagram 400 Spammy Request

I currently have an application that I use to track Instagram hastags and user posts, as well as keywords. I have the appropriate tokens from Instagram to call the API. In particular, I am having problems tracking new Instagram hashtags when I have an authenticated user.

I am trying to create a real-time API subscription ( https://instagram.com/developer/realtime/ ). For this, I use buzzing and using the laravel backend to create a query. I am building my query similar to below.

       $data = [
            'client_id' => $instagram['client_id'],
            'client_secret' => $instagram['client_secret'],
            'object' => 'tag',
            'object_id' => 'testterm',
            'aspect' => 'media',
            'verify_token' => \Str::random(10),
            'callback_url' => "maycallbackURL"
        ];

$client = new \GuzzleHttp\Client();
$response = $client->post('https://api.instagram.com/v1/subscriptions/',['body' => $data]);

This does not work with

400 BAD REQUEST

URL- GET, POST Instagram. X-Ratelimit-Remaining , 4990, . , 400 ...

unable to reach callback url

, , Instagram, , , . , , .

, Instagram,

" HTTP 400 (Bad Request), - , . .

, - , - , - - ,

** , , , ...

+4
1

, 'callback_url'. URL- API . , script.

"maycallbackURL" script .

0

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


All Articles