prowdsponsor / ig

Bindings to Instagram's API
Other
11 stars 14 forks source link

Authorization using new Instagram API Scopes #22

Closed danstn closed 8 years ago

danstn commented 8 years ago

Hi there,

I've been trying to use getRecentTagged which relies on auth token which itself depends on getUserAccessTokenURL1.

The response I get is:

*** Exception: IGAppException (IGError {
  igeCode = 400, 
  igeType = Just "OAuthPermissionsException", 
  igeMessage = Just "This request requires scope=public_content, but this access token is not authorized with this scope. The user must re-authorize your application with scope=public_content to be granted this permissions."})

Started looking at Scope definition in the library and figured there is no constructor for public_content and follower_list Instagram API | Scopes.

Any chance new scopes can be added in the nearest future? :pray:

meteficha commented 8 years ago

Currently I'm not adding new features to the library. Can you add the scope and a unit test then send a PR?

danstn commented 8 years ago

Thanks for the quick response! PR is up - would be great to get it looked at at some point. :eyes:

cdepillabout commented 8 years ago

Closed by #23.

danstn commented 8 years ago

Fantastic, thanks!