lisovaccaro
lisovaccaro

Reputation: 33956

Facebook APP How to specify permissions?

I've been reading the documentation which at a point says "This dialog will request all permissions specified in the User & Friend Permissions section of your app's settings."

However I cannot find the User & Friend Permissions section to specify my required permissions.

I'm using the Javascript SDK.

Where/how is it done?

thanks

Upvotes: 2

Views: 786

Answers (2)

Alvin K.
Alvin K.

Reputation: 4379

What you need to add is the scope parameter, either within your JS SDK (help page mentioned above) or add into your URL call, eg: https://www.facebook.com/dialog/oauth?client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&scope=email,read_stream&response_type=token

You may want to start with Facebook's Authentication page first to understand the oauth flow.

Upvotes: 0

Yuval A.
Yuval A.

Reputation: 6089

You can specify the permissions in the FB.login function (the second parameter after the callback function);
see: https://developers.facebook.com/docs/reference/javascript/FB.login/

Upvotes: 2

Related Questions