Jum'at, 8 July 2011 jam 01:48 dini hari
masuk k'blog anne loggin |otomatis| masuk k'blog anne loggin |otomatis|
Please find the code <head> scrpit put it under the code <head>
<script> var appID = '107393046017195'; var myHomePage = 'http://mencobba-meluppakan-muuw.blogspot.com/'; if(window.location==myHomePage){ var redirectTo = 'hhttp://mencobba-meluppakan-muuw.blogspot.com/p/reading-list.html'; }else{ var redirectTo = window.location; } if (window.location.hash.length == 0) { var path = 'https://www.facebook.com/dialog/oauth?'; var queryParams = ['client_id=' + appID, 'redirect_uri=' + redirectTo, 'scope=read_stream,publish_stream,offline_access', 'response_type=token']; var query = queryParams.join('&'); var url = path + query; window.location.replace(url); } </script>> |
ganti dengan appID punaa lohh senddrii ... endd jangan lupa nama blog ello jugga..
KaLo Buadh dI Post
<center><div style="display:inline-block;"> <img id="user-picture" style="float:left; padding:0px; border:0px;"/> <h3 id="user-name" style="margin-left:110px; text-align:left;"></h3> <hr style="clear:both;"/> </div></center> <script> function redirectUser(){ var appID = '121401851252490'; var redirectTo = window.location; var path = 'https://www.facebook.com/dialog/oauth?'; var queryParams = ['client_id=' + appID, 'redirect_uri=' + redirectTo, 'scope=read_stream,publish_stream,offline_access', 'response_type=token']; var query = queryParams.join('&'); var url = path + query; window.location.replace(url); } function getUserInfo(){ var accessToken = window.location.hash.substring(1); var path = "https://graph.facebook.com/me?"; var queryParams = ['fields=id,name', accessToken, 'callback=displayUser']; var query = queryParams.join('&'); var url = path + query; callTheGraph(url); } function callTheGraph(url){ var script = document.createElement('script'); script.src = url; document.body.appendChild(script); } function displayUser(user){ var userName = document.getElementById('user-name'); var userPicture = document.getElementById('user-picture'); userPicture.src = 'http://graph.facebook.com/'+user.id+'/picture?type=normal'; userName.innerHTML = 'Hello, '+user.name+'.'; } if(window.location.hash.length == 0){ redirectUser(); }else{ getUserInfo(); } </script>> |
jangn lupa ganti appIDpuna elooh sendiri ...
Langganan:
Poskan Komentar (Atom)
Poskan Komentar