Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adjusting scope of permissions, no need for email or publish_stream

  • Loading branch information...
commit 3ad9685d9f8d4d79b4db2be42047dbc61c828e06 1 parent 447c498
Pedro Belo pedro authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 app.rb
9 app.rb
View
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.