omniauth / omniauth-instagram

OmniAuth strategy for Instagram.
112 stars 85 forks source link

Instagram returns user_id, not id #45

Open khier996 opened 3 years ago

khier996 commented 3 years ago

I get this error undefined method [] for nil:NilClass when redirecting from instagram. The error comes from omniauth-instagram (1.3.0) lib/omniauth/strategies/instagram.rb:22

I traced the error and figured out instagram does not return user field. It returns user_id, so instagram.rb:50 returns nil.

I saw there was an attempt to fix this - https://github.com/omniauth/omniauth-instagram/pull/42, but for some reason that PR was closed.

Is this going to be fixed soon? The gem does not seem to be usable now.