You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem is that when I login I use different facebook accounts, but login data is always developer facebook accounts data.
var success = function (data) {
console.log(data);
return;
var namesurname = data.name;
var array = namesurname.split(" ");
var name = array[0];
var surname = array[1];
var email = data.email;
var id = data.id;
var photo = "https://graph.facebook.com/" + id + "/picture?type=large";
var item = {
facebookId: id,
name: name,
surname: surname,
email: email,
photo: photo,
username: null,
password: null,
deviceId: deviceId,
deciveName: deviceName,
deviceType: deviceType,
authType: "Facebook"
}
$.ajax({
type: 'POST',
url: LoginUrl,
data: JSON.stringify(item),
success: function (data, status, xhr) {
if (data.Status == 200) {
localStorage.setItem("userId", data.Result);
window.location.href = "Home.html";
}
else {
return;
}
},
dataType: "json",
contentType: "application/json; charset=utf-8",
beforeSend: function () {},
complete: function () {}
});
}
var failure = function (error) {
console.log(error);
}
var fbLoginSuccess = function (userData) {
console.log(userData);
facebookConnectPlugin.api(userData.authResponse.userID+"?fields=id,name,picture,email", ["public_profile", "email"], success, failure);
}
document.getElementById("login").onclick = foo2;
function foo2(){facebookConnectPlugin.login(["public_profile"],fbLoginSuccess,function(error) {console.log("" + error);});}
The text was updated successfully, but these errors were encountered:
casa90
changed the title
Always login with developer account
Always login with developer account althoug i try to login different facebook accounts
May 19, 2017
My problem is that when I login I use different facebook accounts, but login data is always developer facebook accounts data.
The text was updated successfully, but these errors were encountered: