Skip to content

Commit

Permalink
adjusting scope of permissions, no need for email or publish_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Sep 15, 2011
1 parent 447c498 commit 3ad9685
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app.rb
Expand Up @@ -5,7 +5,14 @@
set :raise_errors, false
set :show_exceptions, false

FACEBOOK_SCOPE = 'email, status_update, publish_stream, publish_actions, user_likes, user_photos'
# Scope defines what permissions that we are asking the user to grant.
# In this example, we are asking for the ability to publish stories
# about using the app, access to what the user likes, and to be able
# to use their pictures. You should rewrite this scope with whatever
# permissions your app needs.
# See https://developers.facebook.com/docs/reference/api/permissions/
# for a full list of permissions
FACEBOOK_SCOPE = 'publish_actions,user_likes,user_photos,user_photo_video_tags'

unless ENV["FACEBOOK_APP_ID"] && ENV["FACEBOOK_SECRET"]
abort("missing env vars: please set FACEBOOK_APP_ID and FACEBOOK_SECRET with your app credentials")
Expand Down

0 comments on commit 3ad9685

Please sign in to comment.