Juno_okyo

Get Facebook ID

Mar 4th, 2015
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.23 KB | None | 0 0
  1. #NoTrayIcon
  2.  
  3. Func getFacebookID($name)
  4.     Return StringRegExp(BinaryToString(InetRead('http://graph.facebook.com/' & $name & '?fields=id'), 4), '\d+', 3)[0]
  5. EndFunc
  6.  
  7. MsgBox(0, 0, getFacebookID(InputBox('Message', 'Enter username:')))
Add Comment
Please, Sign In to add comment