Fast and extended returns.

Jewelry
Posted in

Are Russian diamonds sold in Antwerp more important than our struggles, asks Zelenskyy

Posted in

Belgium’s Prime Minister Alexander De Croo, right, walks off the podium as Ukraine’s President Volodymyr Zelenskyy watches from on screen, right, during a session of the plenary chamber at the Belgian Federal Parliament in Brussels, Belgium. (AP Photo/Virginia Mayo)

window.fbAsyncInit = function () {
FB.init({
appId: ‘1430751883855158’,
cookie: true, // This is important, it’s not enabled by default
version: ‘v2.9’,
oauth: true
});
};

(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) { return; }
js = d.createElement(s); js.id = id;
js.src = “https://connect.facebook.net/en_US/sdk.js”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));

function checkLoginState() {
FB.getLoginStatus(function (response) {
statusChangeCallback(response);
});
}

// This is called with the results from from FB.getLoginStatus().
function statusChangeCallback(response) {
// console.log(‘statusChangeCallback’);
//console.log(response);
// The response object is returned with a status field that lets the
// app know the current login status of the person.
// Full docs on the response object can be found in the documentation
// for FB.getLoginStatus().

if (response.status === ‘connected’) {
// Logged into your app and Facebook.
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
$(“#hidUserId”).val(uid);
getName();
} else if (response.status === ‘not_authorized’) {
// The person is logged into Facebook, but not your app.
// alert(‘Please log ‘ + ‘into this app.’);

FB.login(function (response) {

if (response.authResponse) {

var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
$(“#hidUserId”).val(uid);
getName();
} else {
// not auth / cancelled the login!
}
}, { scope: ‘public_profile,email,user_hometown’ });

} else {
FB.login(function (response) {

if (response.authResponse) {

var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
$(“#hidUserId”).val(uid);
getName();
}

}, { scope: ‘public_profile,email,user_hometown’ });
}
}

function getName() {

FB.api(‘/me?fields=hometown,name’, function (response) {
alert(JSON.stringify(response));
$(“#txtName”).val(response.name);
// $(“#txtTown”).val(response.hometown.name);
$(“#txtRName”).val(response.name);
$(“#hidType”).val(3);
document.getElementById(“imgBtnSubmitnew”).click();
hideOverlay();
});
}

Leave a Reply

TOP

SHOPPING BAG 0

Wishlist

Login

Password Recovery

Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.

%d bloggers like this: