Fast and extended returns.

Jewelry
Posted in

DMCC’S Dubai Diamond Exchange hosts tender featuring an astounding 1086.10 carat diamond

Posted in

(L-r) Martin Leake, Special Advisor – Precious Stones, DMCC; 1086.10 carat diamond held by Ahmed Bin Sulayem, Executive Chairman and Chief Executive Officer, DMCC, and Chairman, Dubai Diamond Exchange; and Jacob Gill, Rough Manager, Koin International

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: