chrisnharvey / oauth

Authorize users in your application with multiple OAuth 1.0 and OAuth 2.0 providers.
12 stars 4 forks source link

Instagram user info not returned #11

Open cchiles opened 10 years ago

cchiles commented 10 years ago

I'm getting an error using OAuth with Instagram. The error occurs here: https://github.com/chrisnharvey/oauth/blob/master/src/OAuth/Provider/Instagram.php#L39-L52

Instagram returns the user info when requesting the access token, but it's not stored in $this->token->user.

elivz commented 10 years ago

Did you ever figure this out? I'm having the same problem.....

cchiles commented 10 years ago

Yup, I had to modify the Instagram provider to make a second request for the user info. https://github.com/cchiles/oauth/commit/1e12d7d9890703820ad9de302ecd89e95a958c5c