Skip to content

Commit 3e9db54

Browse files
author
webbersharhan
authored
Merge pull request #1 from smiley360/make-optional-fields
make fields optional
2 parents 2dfbed4 + f56075c commit 3e9db54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/omniauth/strategies/instagram.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def request_phase
3131

3232
def raw_info
3333
endpoint = '/me'
34-
fields = 'account_type,id,media_count,username'
34+
fields = options[:fields] || 'account_type,id,media_count,username'
3535
@raw_info ||= access_token.get("#{endpoint}?fields=#{fields}").parsed
3636
end
3737

0 commit comments

Comments
 (0)