Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Pages Access #116

Closed
drGrove opened this issue Sep 17, 2014 · 3 comments
Closed

Facebook Pages Access #116

drGrove opened this issue Sep 17, 2014 · 3 comments

Comments

@drGrove
Copy link

drGrove commented Sep 17, 2014

New to oauth structure. but our app needs access to users facebook pages. Do i just add that into a scope array like I would with google auth?

@sahat
Copy link
Owner

sahat commented Sep 17, 2014

If there is a Facebook scope for Pages, then yes it would go inside of scope array.

@drGrove
Copy link
Author

drGrove commented Sep 17, 2014

I figured out the issue. Facebook is looking for comma separated

ie. email,manage_pages

Where facebook is expecting space separated. I'm assuming currently if the scope param is an array is just does an array.join(' ')

Hence my confusion. Thanks

@drGrove drGrove closed this as completed Sep 17, 2014
@sahat
Copy link
Owner

sahat commented Sep 17, 2014

I am using an array for all providers as well as scopeDelimiter property which is usually a space or a comma.

So as a user of this library you would simply need to update the scope array:

 scope: ['email', 'pages', 'user_likes']

And you would the same format for all other built-in providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants