Skip to content

Commit f56075c

Browse files
author
Webber Sharhan
committed
make fields optional
1 parent 2dfbed4 commit f56075c

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)