Advertisement
rehan99

How To find Facebook ID

Aug 25th, 2011
1,742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (1) To Find your own facebook id, simply put this code on the address bar then press enter :
  2.  
  3. javascript:alert('Your Facebook ID : '+Env['user'])
  4.  
  5.  
  6. (2) Find your friend or pages, Groups UID :
  7.  
  8. javascript:x=$('content').getElementsByTagName('a');for(i=0;i<x .length;i++)if(x[i].href.indexOf('[]')>1){y=x[i].href;alert('Facebook ID : '+y.substr(y.indexOf('[]')+3));break};void(0)
  9.  
  10. Or
  11.  
  12. javascript:x=document.forms;for(i=0;i<x .length;i++){if(document.forms[i].xhpc_targetid){alert('Facebook ID : '+document.forms[i].xhpc_targetid.value);break}};void(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement