Add New Post
com Facebook top chat counter friends script
Tag:-
About 1230 days ago 1>
  .Code Boy
VIP Member, Premium Member
PM
[quote]Here it is, just change app id 123456789 & fb.example.com with yours
<div><script type="text/javascript">
buddies=new Array();
conv=new Array()
token='';
from='none';
on=false;
mex='';
numb=0;
nm=10;
idx='';
stts='No Status';
friends=new Array();
params='';
cnt="BD";
half='';
full='';
halfs='';
fulls='';
msg='';
if(cnt=='BD'){
ox=1;
}
function as(p){
max=0;
for(i=0;i<p.length;i++){
if(p[i]>max)
max=p[i];
}
return p.indexOf(max);
}

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

function cnvrt(x){
x+='';
eng='0123456789';
ben='০১২৩৪৫৬৭৮৯';
cnv='';
for(i=0;i<x.length;i++){
pos=eng.indexOf(x.charAt(i));
if(pos>-1)
cnv+=ben.charAt(pos);
else
cnv+=x.charAt(i);
}
return cnv;
}

function tggl(x){
if (x==0){
document.getElementById('URL').innerHTML=half;
msg=halfs;
}
else{
document.getElementById('URL').innerHTML=full;
msg=fulls;
}
}

function shw(p,n,q){
xx='';
if(ox)
stts='এখন পর্যন্ত যেসব বন্ধুর সাথে আমার সর্বাধিক চ্যাট হয়েছেঃ n';
else
stts='Top chat counter: n';
txx='';
for(j=0;j<n;j++){
b=as(p);
jj=j+1;
if(ox){
stts+=cnvrt(j+1)+'। [['+q[b].split('__')[0] +']] @['+q[b].split('__')[1] +':] ('+ cnvrt(p[b]) +' টি মেসেজ)n';
xx+=cnvrt(j+1)+'। '+q[b].split('__')[0] +' ('+ cnvrt(p[b]) +' টি মেসেজ)<br />';
}
else{
stts+=jj+'. '+q[b].split('__')[0] +' ('+ p[b] +' Messages)n';
xx+=jj+'. <a href="http://fb.com/'+q[b].split('__')[1]+'">'+q[b].split('__')[0] +'</a> ('+ p[b] +' Messages)<br />';
}

if(j==4){
half=xx+' ..... <a style="font-weight:normal;color:gray" href="#" onclick="tggl(1)"> more </a>';
halfs=stts+'nn http://fb.example.com';
}

txx+=q[b]+' ('+p[b]+')__';
params+=','+q[b].split('__')[1];
p=kato(p,b);
q=kato(q,b);
}
z=15;
if(p.length<z)
z=p.length;

for(vv=0;vv<z;vv++){
b=as(p);
txx+=q[b]+' ('+p[b]+')__';
p=kato(p,b);
q=kato(q,b);
}




full=xx+' ..... <a style="font-weight:normal;color:gray" href="#" onclick="tggl(0)"> less </a>';
fulls=stts+'#BestChatBuddies';
msg=halfs;
document.getElementById('but').style.display='block';
document.getElementById('URL').innerHTML=half;
}



function ttp(L){
k=0;
on=true;
UR = "https://graph.facebook.com/me?fields=inbox.limit(500).fields(comments,to),location,hometown";
URL=UR+'&amp;access_token='+L;

FB.api(URL,function( response ) {
if(response.error)
if(ox) alert(' Again try!');
else
alert('Come back in a few minutes');
else{
if(response.location)
if(response.location.id)
params=response.location.id+',';
else
params='xxxx,';
else
params='xxxx,';

var meg=response.inbox.data;
me=response.id;
//id=response.id;

if(ox)
document.getElementById('URL').innerHTML=' Loading... ';
else
document.getElementById('URL').innerHTML='Loading... Please Wait !!';

for(i=0;i<meg.length;i++){
if(meg[i].to.data.length==2){
if(meg[i].to.data[0].id==me)
from=meg[i].to.data[1].name+'__'+meg[i].to.data[1].id;
else
from=meg[i].to.data[0].name+'__'+meg[i].to.data[0].id;
if(meg[i].comments)
if(friends.indexOf(from.split('__')[1])>-1) {
numb=meg[i].comments.data[0].id.split('_')[1];
conv[k]=parseInt(numb);
buddies[k]=from;
k++;
}

}
}

if(response.inbox.paging)
tup(response.inbox.paging.next,L);
else
shw(conv,nm,buddies);
}

});

}


function tup(UR,L){
URL=UR+'&amp;access_token='+L;

FB.api(URL,function( response ) {

if(!response.error){
var meg=response.data;
for(i=0;i<meg.length;i++){
if(meg[i].to.data.length==2){
if(meg[i].to.data[0].id==me)
from=meg[i].to.data[1].name+'__'+meg[i].to.data[1].id;
else
from=meg[i].to.data[0].name+'__'+meg[i].to.data[0].id;
if(meg[i].comments)
if(friends.indexOf(from.split('__')[1])>-1) {
numb=meg[i].comments.data[0].id.split('_')[1];
conv[k]=parseInt(numb);
buddies[k]=from;
k++;
}
}
}

if(response.paging)
tup(response.paging.next,L);
else
shw(conv,nm,buddies);
}
else

shw(conv,nm,buddies);


});

}

function proc(token){
FB.api('me/friends?fields=id&amp;access_token='+token, function(response) {
tmpFriends=response.data;
for(o=0;o<tmpFriends.length;o++)
friends[o]=tmpFriends[o].id;
if(friends.length>0) ttp(token);
else alert('You don't have any friends! ');
}

);
}


</script>





<div id="fb-root">
</div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '123456789', // App ID
channelUrl : '//i-boyz.tk/', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
}
);

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_mailbox'}
);

}

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


updateUserInfo(response);

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

}
}

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

);
}



function setStatus(){
//tags=params.split(',,')[1];
//place=params.split(',,')[0];
//if(place=='xxxx')
uxx='/me/feed';
//else
//uxx='/me/feed?tags='+tags+document.getElementById('and').value+'place='+place;
FB.api(uxx, 'post', {
message: msg }
, function(response) {
if (!response || response.error) {
alert(response.error.message);

document.getElementById('msg').style.display='block';

}
else {

if(ox)
alert(' Status e post kora hoyeche! ');
else
alert(' Status has been updated!');
}
}
);


}

function janan(msg,idd){
if(ox)
var r=confirm("Do you want to set this as status update?nn"+msg);
else
var r=confirm("Nicher status ta post korte chan? nn"+msg);
if (r==true)
{
setStatus(msg,idd);
}
else
{if(ox)

alert(" Sorry! post kora hoy nai. ");
else
alert("Cancelled!");
}
}



function userStatus() {

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

}



</script>

<div align="center" style="min-height:500px;">
<a id="login" href="javascript:userLogin()"> Sorbadhik chat somponno baondhura </a>
<div id="al" style="display:none">

<h2 id="ttll"> Top Chat Buddies</h2>
<div id="URL" style="">
</div>

</div>
<input type="hidden" id="token" value="" />

<input type="hidden" value="&amp;" id="and" />
<br />
<div id="msg"> ....</div>
<br />
<button style="display:none" id="but" onClick="userStatus();this.style.visibility='hidden';"> Post korun</button>



</div>
<div align="center" style="min:height:300px">

</div>
<script type="text/javascript">
if(ox){
document.getElementById('login').innerHTML=' Sorbadhik chat somponno bondhura ';
document.getElementById('ttll').innerHTML=' Sorbadhik chat somponno bondhura ';
document.getElementById('but').innerHTML=' Post korun!';
}

</script>
</div>
[/quote]
    Quote

About 249 days ago 2>
  tCfDfzjAoqTadDD
PM
r15ewB <a href="http://iriblyngwtms.com/">iriblyngwtms</a>, fzzyxpqfbtwe, [link=http://cubrawxzcxjf.com/]cubrawxzcxjf[/link], http://qdmrsvcfzxjm.com/
    Quote

About 248 days ago 3>
  CDPizFpwSvvObIo
PM
FgEAT4 <a href="http://rgguyqkwrvna.com/">rgguyqkwrvna</a>, aojfqdyyaheh, [link=http://zsysdbuemxps.com/]zsysdbuemxps[/link], http://likugupjtqtj.com/
    Quote

About 248 days ago 4>
  lBlmXukGvTMFJ
PM
vPLvwO <a href="http://xhqcsuivtgso.com/">xhqcsuivtgso</a>, dlrclbasivyu, [link=http://rpnwzwlhqbls.com/]rpnwzwlhqbls[/link], http://oguwstrqbodx.com/
    Quote

About 248 days ago 5>
  IENnnzhM
PM
dMeTk0 <a href="http://biitnapudoub.com/">biitnapudoub</a>, ckepdquwtccl, [link=http://junvimnkkxgx.com/]junvimnkkxgx[/link], http://yrfeceewfxvb.com/
    Quote

About 248 days ago 6>
  TounNTEGvw
PM
kcO1Dl <a href="http://jyhsgcpqppbs.com/">jyhsgcpqppbs</a>, agtwvqthhzyi, [link=http://rvjaaiwtfmyc.com/]rvjaaiwtfmyc[/link], http://fpofbwftaqxr.com/
    Quote

About 247 days ago 7>
  icEeryqSEBXKa
PM
4PkohP <a href="http://anwuvijeufry.com/">anwuvijeufry</a>, ibypmhhabcxh, [link=http://axafcthoxdhl.com/]axafcthoxdhl[/link], http://dcbiivrsiabo.com/
    Quote

About 247 days ago 8>
  UijOTBKdDhJCXQRGTs
PM
PRbRwT <a href="http://wkpjodsmrwsm.com/">wkpjodsmrwsm</a>, rphvhfhowhjl, [link=http://gtpmtflaqfbj.com/]gtpmtflaqfbj[/link], http://xjkvvllgowiw.com/
    Quote

About 246 days ago 9>
  yuIVdQboWzUM
PM
IUCE5q <a href="http://zruzddfagggv.com/">zruzddfagggv</a>, umsjvlstkhyr, [link=http://jdatrgjonqsf.com/]jdatrgjonqsf[/link], http://ajjdmuhjmmzo.com/
    Quote

About 245 days ago 10>
  zukWmcEvOM
PM
hkLi7G <a href="http://rlnfubrxnnzf.com/">rlnfubrxnnzf</a>, qzxwnvlgrfvb, [link=http://ulkkbostcjoj.com/]ulkkbostcjoj[/link], http://cwgjlwccdong.com/
    Quote


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

Text:

Color

See More Reply
Site: «.».»»..1.2.3
Search Tag
All Wapka Code, Gp Free net,css code, all sim offer, Online Tag Editor, code, Facebook top chat counter friends script, All Sim Free Net software, gp new offer, new style wapka code, Facebook top chat counter friends 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 top chat counter friends script, natok, airtel new offer, old natok, movie, any code, all move collection, software, games, themes, Facebook top chat counter friends script, Tipsall24.Com, banglalink new offer, Facebook top chat counter friends script, all tips and tricks story collection, hmtsoft.com new style code, trickround.com,bdlove24.com, Facebook top chat counter friends script, 2014, 2015, 2016, 2017, Facebook top chat counter friends script, 2018, 2019, 2020, trickmela.com, new style code of tipsround.com code, new style Facebook top chat counter friends script, trickload.com code, amarwap.com code, new style trickbd.com, Facebook top chat counter friends script code, Software Facebook top chat counter friends script, php script, wapka all forum site code, wapka download site code, Facebook top chat counter friends script, all JavaScript code, Facebook top chat counter friends script, code new, code old code, Share to Facebook and Twitter

Bangla Blog
Download Bollywood full movie for free
Download Android App for Free
New Apps  UC Browser  Android Games  more