Answer the question
In order to leave comments, you need to log in
RequestPermissions facebook meteor js?
Hello!
I registered via facebook (accounts-facebook, but without acconuts-ui), when registering a user, I want to receive additional information, for example, the user's city.
I write like this
Meteor.loginWithFacebook({
requestPermissions: ['user_location']
}, function(err){
on the server I write
ServiceConfiguration.configurations.remove({
service: 'facebook'
});
ServiceConfiguration.configurations.insert({
service: ' facebook',
appId: 'xxx',
secret: 'xxx',
requestPermissions: ['user_location']
});
Meteor.publish('userData',
{
_id: this.userId
},
{
fields: {'services': 1}
});
});
but the user's location never comes. Who knows what is the reason?
I looked into the database through the terminal, this information is also not there, which means I do not receive it (I cannot catch it) during registration.
PS: I googled that with the release of "The Graph API" something drastically changed there and now we need to get this information in a different way. I will be grateful for help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question