baptx

Facebook favorites hack

Sep 6th, 2012
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Some Facebook pages do not appear in suggestions when you want to add them to your favorites
  2. https://www.facebook.com/pages/Greenpeace-France-Groupe-local-de-Strasbourg/109924262363067
  3.  
  4. // Data needed to add this buggy page in my case
  5. interests[1003][shown][0] 109924262363067
  6. text_interests[1003][shown][0] Greenpeace France / Groupe local de Strasbourg
  7.  
  8. // Create a new AJAX request, based on an existing one catched with Firebug for example and execute Javascript code with Firefox Scratchpad or what ever you want :)
  9. var xhr = new XMLHttpRequest();
  10. xhr.open("POST", "https://www.facebook.com/ajax/profile/edit/save_media_section.php", true);
  11. xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  12. xhr.send("fb_dtsg=AQCBA02o&interests[1003][shown][0]=109924262363067&interests[1003][shown][1]=41911143546&interests[1003][shown][2]=321008797918389&interests[1003][shown][3]=97703891945&interests[1003][shown][4]=51603470763&interests[1003][shown][5]=7297163299&interests[1003][hidden][0]=41452575362&interests[1003][hidden][1]=28126338304&interests[1003][hidden][2]=145392792632&interests[1003][hidden][3]=20373776304&interests[1003][hidden][4]=39435457457&interests[1003][hidden][5]=163385893677896&interests[1003][hidden][6]=152709151422154&interests[1003][hidden][7]=191571518686&interests[1003][hidden][8]=243821769031470&interests[1003][hidden][9]=104167599669940&interests[1003][hidden][10]=194197605004&interests[1003][hidden][11]=104167599669940&interests[1003][hidden][12]=194197605004&interests[1003][hidden][13]=243821769031470&interests[1003][hidden][14]=152709151422154&interests[1003][hidden][15]=191571518686&interests[1003][hidden][16]=163385893677896&interests[1003][hidden][17]=41452575362&interests[1003][hidden][18]=28126338304&interests[1003][hidden][19]=145392792632&interests[1003][hidden][20]=20373776304&interests[1003][hidden][21]=39435457457&text_interests[1003][shown][0]=Greenpeace France / Groupe local de Strasbourg&text_interests[1003][shown][1]=The%20Linux%20Foundation&text_interests[1003][shown][2]=The%20Khronos%20Group&text_interests[1003][shown][3]=Electronic%20Frontier%20Foundation&text_interests[1003][shown][4]=Europe%20%C3%89cologie&text_interests[1003][shown][5]=Greenpeace%20International&text_interests[1003][hidden][0]=Surfrider%20Foundation%20Europe&text_interests[1003][hidden][1]=Surfrider%20Foundation&text_interests[1003][hidden][2]=WWF-France&text_interests[1003][hidden][3]=WWF&text_interests[1003][hidden][4]=Greenpeace%20France&text_interests[1003][hidden][5]=The%20Document%20Foundation&text_interests[1003][hidden][6]=Pirate%20Parties%20International&text_interests[1003][hidden][7]=Parti%20Pirate&text_interests[1003][hidden][8]=Parti%20Pirate%20Alsace&text_interests[1003][hidden][9]=Stop%20Fessenheim%20(%20Page%20officielle)&text_interests[1003][hidden][10]=Fermons%20Fessenheim%20!&text_interests[1003][hidden][11]=Stop%20Fessenheim%20(%20Page%20officielle)&text_interests[1003][hidden][12]=Fermons%20Fessenheim%20!&text_interests[1003][hidden][13]=Parti%20Pirate%20Alsace&text_interests[1003][hidden][14]=Pirate%20Parties%20International&text_interests[1003][hidden][15]=Parti%20Pirate&text_interests[1003][hidden][16]=The%20Document%20Foundation&text_interests[1003][hidden][17]=Surfrider%20Foundation%20Europe&text_interests[1003][hidden][18]=Surfrider%20Foundation&text_interests[1003][hidden][19]=WWF-France&text_interests[1003][hidden][20]=WWF&text_interests[1003][hidden][21]=Greenpeace%20France&audience[113693108715766][value]=40&save=1003&__user=10000XXXXXXXXXX&__a=1&phstamp=1658167666548501112837");
RAW Paste Data