Happy Lunar New Year to our readers in China
[ad_1]
We know that our audience comes from all over the world, and we also know that China is the home of some of the biggest mobile developers in the industry, so it only seems fitting that we wish our readers a happy Lunar New Year.
And with 2020 being the Year of the Rat, we’re sure to see Chinese studios prosper even more as the months go by.
It’s impossible to ignore the terrible news from Hubei, of course, and all of us at PocketGamer.biz hope that every one of our readers stays safe and healthy.
But we also hope our readers will still enjoy seeing in the new year, and we wish them a prosperous and fulfilling 2020. 新年快乐!
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init({
appId : 250161755076617, // App ID
//channelUrl : '//'+window.location.hostname+'/channel.php', // Path to your Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
FB._PG = {
url: "/useractions/loginfb/",
response: "allowed",
// Common handler to fetch FB details and reload the page
process: function(me){
$.post( FB._PG.url, {
username: me.username,
uname: me.name,
uid: me.id,
uimg: 'https://graph.facebook.com/' + me.id + '/picture?type=large'
})
.done(function(xml){
if ( $("status", xml).text() == FB._PG.response )
window.location.reload();
else
alert('Error: Something bad just happened. Our tech department has been notified. Please try again later.');
})
.fail(function(xml){
alert("Error: something wasn't right there, please try again.");
});
},
// Used by event subscriptions to handle the response
handleResponse: function(response){
if (response.authResponse) {
FB.api('/me', function(me){
if (me.name)
FB._PG.process(me);
});
}
},
post: function(text, image){
image = image || $("#fb-image").attr("src");
FB.ui({
method: 'feed',
display: 'popup',
link: 'http://www.pocketgamer.biz/asia/news/72439/happy-lunar-new-year-to-our-readers-in-china/',
description: text,
picture: image
});
}
};
FB.Event.subscribe('auth.statusChange', FB._PG.handleResponse);
FB.Event.subscribe('edge.create', function(response) {
$.post('/ajax/social-links/', { site: 'facebook' });
});
};
(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 = "http://connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
[ad_2]
Source link