Fast and extended returns.

Jewelry
Posted in

Hon’ble PM Modi Inaugurates Commerce Ministry’s ‘Vanijya Bhawan’

Posted in

While inaugurating Vanijya Bhavan, Hon’ble PM Shri. Narendra Modi said that the modern commercial building is a symbol of our achievements and will give a push to the nation’s Gati Shakti.

He also noted that last year, despite the historic global disruptions, India’s exports stood at a total of $ 670 billion, of which merchandise exports stood at a record $418 billion.

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: