Oauth2 Instagram API “redirect URI does not match registered redirect URI”

前端 未结 10 1655
甜味超标
甜味超标 2020-12-15 06:41

I am working on a Rails application which is in development mode and it can register with omniauth.

The host is

http://localhost:3000/
10条回答
  •  失恋的感觉
    2020-12-15 07:43

    This isn't a ruby-specific but for anyone else wrestling w/this here's what got me past it (note: nothing in above answers worked for me):

    • 1. Edit your Client on Instagram Developer and uncheck Disable implicit OAuth.
    • 2. Click Update Client to save it.
    • 3. Now go to https://instagram.com/oauth/authorize/?client_id=[CLIENT_ID]&redirect_ur.... Just change [CLIENT_ID] and [REDIRECT_URI] with their values.
    • 4. After that you will be redirected to [REDIRECT_URI]/#access_token=[ACCESS_TOKEN]. Get it and place it on the Instagram Access Token textbox.

    (Source: https://www.drupal.org/project/instagram_feeds/issues/2140479)

提交回复
热议问题