Guest User

Export Facebook Fan Page Likes

a guest
Jan 10th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.86 KB | None | 0 0
  1.  
  2.  
  3. ********************
  4. Export Facebook Fan Page Likes
  5. http://urlin.us/c0ckz
  6. (Copy & Paste link)
  7. ********************
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. asachs01 commented Jul 6, 2011 Is there a way to get emails, like if I wanted to compile them for a monthly email database? . many thanks mc . jromanow commented May 31, 2011 Thanks Adam. Any ideas? Thanks! . Export posts list & comments list From Analyse pages on the menu on the left side, choose and click a page from which you want to get the list. myredm6 commented Jul 21, 2011 I got the code to work. I hope that helps.! Adam On Thu, Aug 25, 2011 at 1:55 AM, russellunidad ******.*** wrote: hi adam, i just tried using your code and followed the instructions (im in the facebook fan page, and im an administrator) in the email i received, but i am getting a "Sorry couldn't find profile ID", im very noob in backend programming, i just copy pasted your code you put here, is there anything that i need to replace on your code? and if ever where can i put the replacement? by the way here is the code i copied along with the comments. Language: English Location: Russia Restricted Mode: Off History Help Loading. - thanks /* For more detailed instructions on how to use this script, sign up with your email here: DISCLOSURE: This javascript runs in your browser pretending to be you looking through your page fans. G . Click Export posts to export the posts list. Click Export comments to export the comments list. I'm not sure! If you can, send me the HTML for the page as an attachment (just HTML nothing else). PricingFree Tools Company Contact Meet the Team Our Customers Blog Social Media Lab Press & Mentions Start my free trial Log in EN ESFRPT . */ var uri = '/ajax/socialgraph/fetch.php?a=1'; var lastResponse = null; var usersPerPage = 100; var totalUsersDownloaded = 0; var throttle = 3000; // how long to wait between pages var startPage = 0; var endPage = 10; // change this if you have more than 1,000 fans // Find the social graph node ID (page profile ID) by peeking at meta tags var getNodeId = function() { var metaTags = document.getElementsByTagName('meta'); for (i in metaTags) { var tag = metaTags[i]; if (tag.content && tag.content.match(/([0-9]+)/)) { return tag.content.match(/([0-9]+)/)[1]; } } return null; } // Process the AJAX call response and dump the user data to the console var OnResponse = function(e) { console.log('--- Page: ' + e.payload.page); lastResponse = e; // for debugging for (userId in e.payload.userinfo) { var userData = e.payload.userinfo[userId]; totalUsersDownloaded++; console.log(userId + ',' + userData.title + ',' + userData.subtitle + ',' + userData.pic) } console.log('Downloaded: ' + totalUsersDownloaded + ' of ' + e.payload.count) if (e.payload.page <= endPage && totalUsersDownloaded < e.payload.count) { setTimeout(function() { downloadUsers(e.payload.page + 1); }, 3000); } } // Make an AJAX call for the data using FB's AJAX library var downloadUsers = function(page) { var nodeId = getNodeId(); if (!nodeId) { alert('Sorry couldn't find profile ID'); return; } var data = { edgetype: 'fan', page: page, limit: usersPerPage, nodeid: nodeId, 'class': 'FanManager', postformid: document.getElementById('postformid').value, fbdtsg: document.getElementsByName('fbdtsg')[0].value, lsd: null, postformidsource: 'AsyncRequest' } var req = new AsyncRequest() .setURI(new URI(uri)) .setMethod('POST') .setData(data) .setHandler(OnResponse); result = req.send(); } downloadUsers(startPage); . POST 404 (Not Found) Jill . Thank you . Owner adamloving commented Apr 1, 2011 Dave - Glad it worked for you! To remove the info, just go in and modify the console.log statements before pasting into Safari. Thomas Joslyn 26,166 views 40:45 How to Send Message to All Facebook Page Fans - Duration: 1:57. Then clicked on "Consol". .. Tiny Tools 4,569 views 1:32 Facebook Data Extraction Tutorial 2016 - Analyze Your Facebook Stats With Netvizz App - Duration: 40:45. We promote your facebook page in various blogs, website and larger social media groups. davidlano commented Aug 29, 2011 How would I go about getting the first name and last name separated by a comma? I know the userData.title gets the full name.but I'm not sure how to get each independently. On Tue, Sep 27, 2011 at 5:37 AM, amorame ******.*** wrote: Hey Adam, I've tried again and again to get this work. This leads to thousands of new people viewing, liking, commenting and interacting with your Facebook. The script finds the profile ID in the meta tags at the top. Open the javascript console and cut and paste the attached script into the console. I've updated the script to get it working again. */ var uri = '/ajax/socialgraph/fetch.php?a=1'; var lastResponse = null; var usersPerPage = 100; var totalUsersDownloaded = 0; var throttle = 3000; // how long to wait between pages var startPage = 0; var endPage = 10; // change this if you have more than 1,000 fans // Find the social graph node ID (page profile ID) by peeking at meta tags var getNodeId = function() { var metaTags = document.getElementsByTagName('meta'); for (i in metaTags) { var tag = metaTags[i]; if (tag.content && tag.content.match(/([0-9]+)/)) { return tag.content.match(/([0-9]+)/)[1]; } } return null; } // Process the AJAX call response and dump the user data to the console var OnResponse = function(e) { console.log('--- Page: ' + e.payload.page); lastResponse = e; // for debugging for (userId in e.payload.userinfo) { var userData = e.payload.userinfo[userId]; totalUsersDownloaded++; console.log(userId + ',' + userData.title + ',' + userData.subtitle + ',' + userData.pic) } console.log('Downloaded: ' + totalUsersDownloaded + ' of ' + e.payload.count) if (e.payload.page <= endPage && totalUsersDownloaded < e.payload.count) { setTimeout(function() { downloadUsers(e.payload.page + 1); }, 3000); } } // Make an AJAX call for the data using FB's AJAX library var downloadUsers = function(page) { var nodeId = getNodeId(); if (!nodeId) { alert('Sorry couldn't find profile ID'); return; } var data = { edgetype: 'fan', page: page, limit: usersPerPage, nodeid: nodeId, 'class': 'FanManager', postformid: document.getElementById('postformid').value, fbdtsg: document.getElementsByName('fbdtsg')[0].value, lsd: null, postformidsource: 'AsyncRequest' } var req = new AsyncRequest() .setURI(new URI(uri)) .setMethod('POST') .setData(data) .setHandler(OnResponse); result = req.send(); } downloadUsers(startPage); ## Reply to this email directly or view it on GitHub: . It does not let me highlight to copy and paste the info. dbgarris commented Jun 14, 2011 Great script Adam!!! I am having intermittent problems and was wondering if others are seeing the same. Then at the end of the code press enter. It's back! Take the 2018 Developer Survey today . Up next Extract Facebook Data and save as CSV - Duration: 9:09. Still, the 10,000 is problem for me, cause I have around 17,000 5a02188284
Add Comment
Please, Sign In to add comment