As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
I'm doing a Facebook App version (runs in the browser) of my mobile app. How can I authenticate the user without creating a popup window? Better yet, how can we piggyback on the fact that the user is already logged into facebook and just put up a popup to grant access? I'm finding that the popup window for authentication is a HUGE barrier for users.
Hey Daniel, I think that this depends on the requirements of Facebook-- I don't know if there's a decent way to get around it.
D
Daniel Roizman
said
almost 10 years ago
It looks like the REST API is the way to go for this. It sounds like I can do an authentication with facebook's sdk, then use the resulting id and token in a Kinvey REST call.
D
Daniel Roizman
said
almost 10 years ago
Social Login isn't working for me in the REST API. When I first create the user, I get back an expected result - user data. If I try to login as that user using the facebook authentication I created it with, I get back 400 (bad request error):
This code creates the user, using the FB Javascript API to login to Facebook and get the authorization key:
That part works fine and it creates a new Kinvey user (though it should really be returning an existing user that already uses those credentials).
My understanding is that following code, identical except in the URL which I am adding /login to, should login using the same facebook account I just created the user with:
Hi Daniel, I've got an engineer taking a look at this. Did you get anywhere with it since your last post?
Gilles Haiat
said
over 9 years ago
Hello
Did you ever make it work or got a response on this? I need to implement the same feature
Thanks...
D
Daniel Roizman
said
over 9 years ago
No, I wasn't able to figure it out and hadn't heard back from engineering.
Gilles Haiat
said
over 9 years ago
Hello Caroline, do you have any update on this?
M
Mark
said
over 9 years ago
I am not sure to what extend you are running into the same problem as reported by Daniel. Either way, in the requests it looks like you’re using `socialIdentity` instead of `_socialIdentity` (note the underscore), which will lead to the faulty behavior you described.
Gilles Haiat
said
over 9 years ago
actually i am using cordova and angularjs.
I am able to call the cordova facebook plugin to retrieve the authorization token, but i cant find any documentation on how to pass the token back to kinvey using:
$kinvey.Social.connect(null, facebook');
could you help me on that?
M
Mark
said
over 9 years ago
You should be able to use:
```
$kinvey.User.login({
_socialIdentity: {
facebook: {
access_token: '',
expires_in: ''
}
}
});
```
Gilles Haiat
said
over 9 years ago
Thanks. It works create. Now i have another question:
when the access_token from facebook has changed, how do i prevent kinvey from creating a new user?
M
Mark
said
over 9 years ago
Using a different access code shouldn’t matter when logging in - internally we retrieve a user by its Facebook ID, which will be the same.
Daniel Roizman