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

To add scope in request. #23

Open
amitrana4 opened this issue Aug 28, 2018 · 0 comments
Open

To add scope in request. #23

amitrana4 opened this issue Aug 28, 2018 · 0 comments

Comments

@amitrana4
Copy link

If we need page list and other info of user we need to pass a scope which add permission links in facebook auth page while login.

Solution :
We need to add more scope like below.

return new Promise(function (resolve, reject) {
FB.login(function (response) {
if (response.authResponse) {
var /** @type {?} */ accessToken_2 = FB.getAuthResponse()['accessToken'];
FB.api('/me?fields=name,email,picture', function (res) {
resolve(FacebookLoginProvider.drawUser(Object.assign({}, { token: accessToken_2 }, res)));
});
}
}, { scope: 'email,public_profile,manage_pages,pages_manage_instant_articles,pages_show_list,publish_pages,read_insights' });
});

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