Are you getting any messages/errors in any of the callback functions? Just to confirm, you added both the business logic for OAuth and the related social apps keys in datastore?
w
whiskas1
said
over 6 years ago
Yes, I have added the business login as a hook in Users, and added the keys for facebook/twitter in oauth in data store.
I used the http://baas.kinvey.../app_id for the callback from Facebook/Twitters, is this right?
I don't get any errors, only "keys are ok" on console and nothing more.
Thanks!
M
Mark
said
over 6 years ago
Did the authentication pop-up open at all? If it did, can you supply me with your actual app id so I can take a deeper look?
whiskas
Then I try to make a example, following http://devcenter.kinvey.com/backbone/guides/users#usingsocialidentities and nothings happens
I have zero knowledge in Backbone, so here is my JS implementation (simple, just to test)
var promise = Kinvey.init({
appKey : 'kid_xxxxxxxx',
appSecret : 'xxxxxx'
});
promise.then(function(activeUser) {
console.log('keys are ok')
var user = new Kinvey.Backbone.User();
var promise = user.connect('facebook', {
success: function(model, response, options) {
console.log('facebook ok')
},
error: function(error) {
console.log('Some error')
}
});
}, function(error) {
console.log('error')
});
I'm running the script on latest Chrome for Mac
Thanks