Skip to content

Commit

Permalink
Merge pull request #23 from Fullscreen/pages_show_list
Browse files Browse the repository at this point in the history
Changed manage_pages scope to pages_show_list.
  • Loading branch information
claudiofullscreen authored Jul 26, 2017
2 parents 25b71ca + 8b20ded commit 7e717cd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Fb::Auth.new(redirect_uri: redirect_uri, code: code).access_token

After checking out the repo, run `bin/setup` to install dependencies.
If you would like to run tests for Fb::Auth, please obtain a long-term access token that manages at least one page
and has permission to read your Facebook email (set scope to include `email` and `manage_pages`). Then set the token as
and has permission to read your Facebook email (set scope to include `email`, `pages_show_list`, & `read_insights`). Then set the token as
as an environment variable:

export FB_TEST_ACCESS_TOKEN="YourToken"
Expand Down
2 changes: 1 addition & 1 deletion lib/fb/auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def url_params
{}.tap do |params|
params[:client_id] = Fb.configuration.client_id
params[:redirect_uri] = @redirect_uri
params[:scope] = 'email,manage_pages,read_insights'
params[:scope] = 'email,pages_show_list,read_insights'
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fb/auth/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module Fb
class Auth
# @return [String] the SemVer-compatible gem version.
# @see http://semver.org
VERSION = '1.0.0.alpha1'
VERSION = '1.0.0.alpha2'
end
end
2 changes: 1 addition & 1 deletion spec/url_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
end

it 'includes the scope' do
expect(auth.url).to include "scope=email%2Cmanage_pages"
expect(auth.url).to include "scope=email%2Cpages_show_list%2Cread_insights"
end
end
end

0 comments on commit 7e717cd

Please sign in to comment.