So I'm working on developing a Instagram Basic Display call and for some reason it's stripping out a query string.
Here is all the information:
Where the /auth/authenticate/ button lived: ***/wp-admin/options-general.php?page=instagram_auth
$auth_url .= '/?client_id=' . $this->instagram->get_client_id() . '&redirect_uri=' . $this->instagram->get_redirect_uri() . '&scope=user_profile,user_media&response_type=code';
The auth window pops up with the following code and I can then authenticate:
Here is the problem:
When I click "Accept", Instagram redirects to:
/wp-admin/options-general.php?code=AQBWjP-foZA7tkhUCTZygn5CBNbiJJxmY364eLPm0bD9NpetQbzUqJSw4LiueRDg_jiDzW8l_8js2JHFAZcPom8zFR-86x_*-X11H1-kTPCPrQ#_
It strips out the ?page=instagram_auth parameters which is needed inside my code.. My valid OAuth Redirect URI is: ***/wp-admin/options-general.php?page=instagram_auth.
Does anyone know why the parameter gets stripped out?
/wp-admin/options-general.php- Amir Asyraf