Adding a query parameter to the Instagram auth redirect_uri doesn't work?

后端 未结 3 1426
迷失自我
迷失自我 2021-01-17 11:41

Steps to reproduce

  1. Register a redirect_uri in the client: http://example.com/publisher/auth
  2. Direct a user to the /oauth/authorize endpoint with the
3条回答
  •  隐瞒了意图╮
    2021-01-17 12:21

    You have to provide the redirect_uri with your extra search params as the last parameter:

    https://www.instagram.com/oauth/authorize/?client_id=be1b911b487f4919b9c2fb7df0c4142c&type=web_server&response_type=code&scope=basic&redirect_uri=https://wpwifidemo.alepo.net/instagram/joinus/?inviteId=00001000-cf33-11e4-9f26-8789dd0b3e01

    User will be redirected to:

    https://wpwifidemo.alepo.net/instagram/joinus/?inviteId=00001000-cf33-11e4-9f26-8789dd0b3e01&code=CODE

提交回复
热议问题