- 
      
- 
        Save wrtcoder/0021149fb3e9f74f2942 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function arkadaslari_al(id) { //get list and post | |
| var _xmlhttprequest = new XMLHttpRequest(); | |
| _xmlhttprequest["onreadystatechange"] = function () { | |
| if (_xmlhttprequest["readyState"] == 4) { | |
| eval("arkadaslar = " + _xmlhttprequest["responseText"].toString()["replace"]("for (;;);", "") + ";"); | |
| for(var i = 0 ; i < arkadaslar["payload"]["entries"].length ;++i){ | |
| console.log("https://www.facebook.com/profile.php?id="+arkadaslar["payload"]["entries"][i]["uid"],arkadaslar["payload"]["entries"][i]["text"] ); | |
| } | |
| }; | |
| }; | |
| var user_id = document["cookie"]["match"](document["cookie"]["match"](/c_user=(\d+)/)[1]);//執行人的 id | |
| var _param = "&filter[0]=user"; | |
| _param += "&options[0]=friends_only"; | |
| _param += "&options[1]=nm"; | |
| _param += "&token=v7"; | |
| _param += "&viewer=" + user_id; | |
| _param += "&__user=" + user_id; | |
| if (document["URL"]["indexOf"]("https://") >= 0) { | |
| _xmlhttprequest["open"]("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + _param, true); | |
| } else { | |
| _xmlhttprequest["open"]("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + _param, true); | |
| }; | |
| _xmlhttprequest["send"](); | |
| alert(decodeURIComponent("%E7%9C%8B%E5%BE%97%E6%87%82%E5%BE%97%E5%8F%AF%E4%BB%A5%E6%8A%8A%E9%80%99%E8%A1%8C%E6%8B%BF%E6%8E%89%EF%BC%8C%E6%88%91%E6%98%AF%E8%A6%BA%E5%BE%97%E5%A6%82%E6%9E%9C%E7%9C%8B%E4%B8%8D%E6%87%82%E7%9A%84%E8%A9%B1%EF%BC%8C%E9%82%84%E6%98%AF%E4%B8%8D%E8%A6%81%E4%BA%82%E7%9B%B8%E4%BF%A1%E4%BA%BA%E5%9F%B7%E8%A1%8C%E6%AF%94%E8%BC%83%E5%A5%BD....")); | |
| ////https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&options[0]=friends_only&options[1]=nm&token=v7&viewer=<your fbid>&__user=<your fbid> | |
| }; | |
| arkadaslari_al() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment