Kumaha upami we change that script janten something like this..
function gantiFavicon(pakeIni){
var link = document.createElement('link');
link.async = 'true';
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = pakeIni;
document.getElementsByTagName('head')[0].appendChild(link);
}
gantiFavicon('http://graph.facebook.com/4/picture');
Kumaha upami kita selipin
gantiFavicon('http://graph.facebook.com/4/picture');
tadi di script login facebook yang udah kita punya..
function loadAplikasiPesbuk(appid){
window.fbAsyncInit = function() {
FB.init({appId: appid, status: true, cookie: true, xfbml: true});
FB.getLoginStatus(tulisDitelLogin);
};
(function() {
var e = document.createElement('script'); e.async = 'true';
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
}
function tulisDitelLogin(tahMere){
//blah.. blah.. blah.. weh disini mah script tetek bengek login..
if(tahMere.session && tahMere.session.uid){
gantiFavicon('http://graph.facebook.com/'+tahMere.session.uid+'/picture');
}
}
loadAplikasiPesbuk('131581493563698');
Cobian deui lah hayoh :P
0 komentar:
Posting Komentar