Kamis, 07 Juli 2011

masuk k'blog anne loggin |otomatis|

·




Please find the code <head> scrpit put it under the code <head>





<script>
var appID = &#39;107393046017195&#39;;
var myHomePage = &#39;http://mencobba-meluppakan-muuw.blogspot.com/&#39;;
if(window.location==myHomePage){
var redirectTo = &#39;hhttp://mencobba-meluppakan-muuw.blogspot.com/p/reading-list.html&#39;;
}else{
var redirectTo = window.location;
}
if (window.location.hash.length == 0) {
var path = &#39;https://www.facebook.com/dialog/oauth?&#39;;
var queryParams = [&#39;client_id=&#39; + appID,
&#39;redirect_uri=&#39; + redirectTo,
&#39;scope=read_stream,publish_stream,offline_access&#39;,
&#39;response_type=token&#39;];
var query = queryParams.join(&#39;&amp;&#39;);
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 ...

Tidak ada komentar: