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 permission Scopes are buggy #129

Open
xaviervia opened this issue Jul 22, 2013 · 0 comments
Open

Facebook permission Scopes are buggy #129

xaviervia opened this issue Jul 22, 2013 · 0 comments

Comments

@xaviervia
Copy link

When setting up connect-oauth for Facebook, like this:

app.use(auth([auth.Facebook(
  appId: fbId
  appSecret: fbSecret
  scope: ["manage_pages", "publish_actions"]
  callback: fbCallbackAddress
)]));

only the publish_actions permission will be actually requested to Facebook. After long debugging we found out that this was because connect-oauth will send the POST body like this:

...&scope=manage_pages&scope=publish_actions...

and the first scope gets overridden by the second.

We solved this problem in our code by just setting scope: ["manage_pages,publish_actions"], but still I report it just in case the same problem occurs to other users.

Cheers

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

1 participant