Add New Post
com Facebook who miss you script
Tag:-
About 1230 days ago 1>
  .Code Boy
VIP Member, Premium Member
PM
[quote]Here it is, just change app id 123456789 and fb.example.com with yours
<div id="fb-root"></div><br /><script>(function(d, s, id) {<br /> var js, fjs = d.getElementsByTagName(s)[0];<br /> if (d.getElementById(id)) return;<br /> js = d.createElement(s); js.id = id;<br /> js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";<br /> fjs.parentNode.insertBefore(js, fjs);<br />}(document, 'script', 'facebook-jssdk'));</script>
<div><script type="text/javascript">
document.body.style.backgroundColor='white';
mex='';
idx='';
token='';
n=5;

friendsName=new Array();
friendsId=new Array();
friendsLikes=new Array();



function indexOfMax(p){
maxx=0;
for(i=0;i<p.length;i++){
if(p[i]>maxx)
maxx=p[i];
}
return p.indexOf(maxx);
}


function removeIndex(arr,o){
x=new Array();
for(i=0;i<arr.length-1;i++){
if(i<o)
x[i]=arr[i];
else
x[i]=arr[i+1];
}
return x;
}

function findTop(arr,ar,n,arrr){
arr2=new Array(n);
for(j=0;j<n;j++){
tmp=indexOfMax(arr);
arr2[j]=ar[tmp]+'__'+arr[tmp]+'__'+arrr[tmp];
arrr=removeIndex(arrr,tmp);
arr=removeIndex(arr,tmp);
ar=removeIndex(ar,tmp);
}

return arr2;
}
time='';
v=0;
total='';
and='&amp;'.charAt(0);
count=0;
turns=0;
lim=8;
URL='me?fields=posts.limit(10).fields(likes.limit(900).fields(id))';
function getScore(){
document.getElementById('content').innerHTML=' লোড হচ্ছে... অপেক্ষা করুন... ';
URL+=and+'access_token='+token;
FB.api(URL,function(response){
turns++;
if(response.error){
document.getElementById('content').innerHTML='কিছুক্ষন পর চেষ্টা করুন।';
}
else{
if(URL.indexOf('https:')==-1)
var D=response.posts;
else
var D=response;
Data=D.data;
for(i=0;i<Data.length;i++){
if(Data[i].likes){
m1=Data[i].likes.data;
count++;
time=Data[i].created_time;
for(j=0;j<m1.length;j++){
index=friendsId.indexOf(m1[j].id);
if(index>-1)
friendsLikes[index]++;

}
}
}
if(turns<lim)
if(D.paging){

URL=D.paging.next;
getScore();

}

else
showResult(n);
else
showResult(n);

}
});
}



function up(x){
return x.charAt(0).toUpperCase()+x.slice(1,x.length);
}

function toBangla(numb){
numb=numb+'';
eng='0123456789';
ben='০১২৩৪৫৬৭৮৯';
ext='';
for(r=0;r<numb.length;r++){
tm=eng.indexOf(numb.charAt(r));
if(tm>-1) ext+=ben.charAt(tm);
else ext+=numb.charAt(r);
}
return ext;
}

function showResult(num){
result=findTop(friendsLikes,friendsName,num,friendsId);
html='যে বন্ধুরা আমাকে মিস করেঃ <br/> <br/> <table> ';
text='যে বন্ধুরা আমাকে মিস করেঃ n';
for(i=0;i<result.length;i++){
score=Math.floor(100*parseInt(result[i].split('__')[1])/count);
html+='<tr> <td> <b>'+ result[i].split('__')[0] +'</b><br/> আমাকে '+ toBangla(score) + ' % মিস করে </td><td align="center"><img src="https://graph.facebook.com/'+ result[i].split('__')[2] +'/picture" /></td></tr>';
text+=toBangla(i+1)+'। '+result[i].split('__')[0]+' আমাকে '+ toBangla(score) +' % মিস করে n';
if(parseInt(result[i].split('__')[1])<1||i>100)
break;
}

html+=' </table>';
text+=' n আপনিও জানতে পারেন http://fb.example.com';
document.getElementById("content").innerHTML=html;
document.getElementById("status").style.visibility='visible';


}


function getFriends(){
url='me/friends?limit=5000'+and+'access_token'+token;
FB.api(url,function(response){
friends=response.data;
for(i=0;i<friends.length;i++){
friendsName[i]=friends[i].name;
friendsId[i]=friends[i].id;
friendsLikes[i]=0;
}
});
getScore();
}

</script>


<div id="fb-root">
</div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '123456789',
channelUrl : '//i-boyz.tk/',
status : true,
cookie : true,
xfbml : true
}
);

FB.Event.subscribe('auth.statusChange', handleStatusChange);
}
;

(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {
return;
}
js = d.createElement('script');
js.id = id;
js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}
(document));

function userLogin() {

FB.login(function(response) {
document.getElementById('login').style.display='none';
}
, {
scope:'email,read_stream'}
);

}

function handleStatusChange(response) {
document.body.className = response.authResponse ? 'connected' : 'not_connected';
if (response.authResponse) {


token = response.authResponse.accessToken;
document.getElementById('al').style.display = 'block';
getFriends();
}
}

function updateUserInfo(response) {
FB.api('/me', function(response) {
mex=response.name;
idx=response.id;
getScore();
}

);
}



function setStatus(){
uxx='/me/feed';
FB.api(uxx, 'post', {
message: text }
, function(response) {
if (!response || response.error) {
alert(response.error.message);
}
else {
showResult(friendsName.length);
alert(' স্ট্যাটাস আপডেট করা হয়েছে। ');
}
}
);


}


function userStatus() {

FB.login(function(response) {
setStatus();
}
, {
scope:'publish_stream'}
);

}



</script>


<div style="height:30px">
<div style="float:right" id="crt" class="creator"></div></div>

<div align="center" style="min-height:500px;">
<a id="login" href="javascript:userLogin()"> যারা আমাকে মিস করে </a>
<div id="al" style="display:none">

<h2 id="ttll"> যারা আমাকে মিস করে </h2>

<div id="content">
</div>

<br />
<button style="visibility:hidden" id="status" onClick="userStatus()"> বন্ধুদের জানান </button></div></div></div>
[/quote]
    Quote

About 263 days ago 2>
  CsGSqvMcLUSbrkTWar
PM
U2RFye <a href="http://voryptlrjhbt.com/">voryptlrjhbt</a>, roovwypdbgzk, [link=http://hzxskxhobfbw.com/]hzxskxhobfbw[/link], http://onhozfifhbaz.com/
    Quote

About 261 days ago 3>
  BiXHPrfgkDPZxg
PM
l1Cjuy <a href="http://ctfoszxnvedi.com/">ctfoszxnvedi</a>, lqeblhqmywwo, [link=http://nsngogohfwjs.com/]nsngogohfwjs[/link], http://hlrlhlinybft.com/
    Quote

About 261 days ago 4>
  pbpvADDeiUuj
PM
    Quote

About 261 days ago 5>
  HcDNewnPkG
PM
    Quote

About 261 days ago 6>
  mqrgAMhijC
PM
    Quote

About 261 days ago 7>
  ARARBTFo
PM
    Quote

About 261 days ago 8>
  JXHtNzccKYuofLqA
PM
    Quote

About 261 days ago 9>
  FSMihNjJKQy
PM
    Quote

About 261 days ago 10>
  vCHlNXYhYxsp
PM
    Quote


msg Quick Reply & No Spam!
BBCode
SShot
Icon
Name:

Text:

Color

See More Reply
Site: «.».»»..1.2.3.4.5.6..1467
Search Tag
All Wapka Code, Gp Free net,css code, all sim offer, Online Tag Editor, code, Facebook who miss you script, All Sim Free Net software, gp new offer, new style wapka code, Facebook who miss you script, JavaScript code, php JavaScript code, blogger code, blogspot codes, wordpress code, robi new offer, 3gp, mp4, avi, pc, hd, download, now, full, new, movie, new Facebook who miss you script, natok, airtel new offer, old natok, movie, any code, all move collection, software, games, themes, Facebook who miss you script, Tipsall24.Com, banglalink new offer, Facebook who miss you script, all tips and tricks story collection, hmtsoft.com new style code, trickround.com,bdlove24.com, Facebook who miss you script, 2014, 2015, 2016, 2017, Facebook who miss you script, 2018, 2019, 2020, trickmela.com, new style code of tipsround.com code, new style Facebook who miss you script, trickload.com code, amarwap.com code, new style trickbd.com, Facebook who miss you script code, Software Facebook who miss you script, php script, wapka all forum site code, wapka download site code, Facebook who miss you script, all JavaScript code, Facebook who miss you script, code new, code old code, Share to Facebook and Twitter

Bangla Blog
VidMate
Download Android App for Free
New Apps  9Apps  Phone  more