public
Last active

Export Facebook Page Fans

  • Download Gist
fb-fan-export.js
JavaScript
1 2 3 4 5 6 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
/*
 
For more detailed instructions on how to use this script, sign up with your email here:
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans
 
DISCLOSURE: This javascript runs in your browser pretending to be you
looking through your page fans. Facebook should have no problem with this,
but who knows if they will think it is strange to see you looking through
all your fans so quickly (the script waits 3s before requesting each page).
I've had no problem running this so far for 1000s of page fans, but I
cannot be held liable if your Facebook account gets banned or your page
gets disabled for any reason for using this script.
 
INSTRUCTIONS:
 
1. Download Google Chrome Web browser (or Apple Safari)
 
2. Enable the developer tools
 
3. Open the javascript console and cut and paste the attached script into the console.
 
The script will fetch users 100 at a time and output the results into the console which you can then cut and paste into a CSV file.
 
*/
 
var uri = '/ajax/social_graph/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;
 
// 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.user_info) {
var userData = e.payload.user_info[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 = {
edge_type: 'fan',
page: page,
limit: usersPerPage,
node_id: nodeId,
'class': 'FanManager',
post_form_id: document.getElementById('post_form_id').value,
fb_dtsg: document.getElementsByName('fb_dtsg')[0].value,
lsd: null,
post_form_id_source: 'AsyncRequest'
}
 
var req = new AsyncRequest()
.setURI(new URI(uri))
.setMethod('POST')
.setData(data)
.setHandler(OnResponse);
 
result = req.send();
}
 
downloadUsers(startPage);

Sign up for updates and instructions for this script here: http://adamloving.com/internet-programming/how-toexport-facebook-page-fans

There are currently two issues with this approach.

  1. If you are not the page administrator, you only get ~60% of the fans for any given page (presumably based on privacy settings).

  2. There seems to be a back end limit on 10,000 fans. In the script, after it requests 100 pages of 100, the same results set comes back for subsequent requests. I've tried different pages and page sizes. I've also tried using an offset parameter like the one documented with the graph API to no avail.

I've got two updates:

  1. Changes on Facebook's end broke the script because it couldn't identify the Profile ID number. I've updated the script to get it working again.

  2. It appears that Facebook no longer lets non-admins view a page's fans. So, this script now only works if you are the page admin.

I'm sorry but the system always tell me "Sorry couldn't find profile ID"
I try it on the fan page, on the administrator fan-page.
I need your help!
thks
G

jhoonycode - what browser are you using? I just tested it in Firefox 4 (with firebug), Safari, and Chrome. Only one it doesn't work in is Safari.

I'm using chrome!
I open my facebook page
open the administration panel
open the java console
and copy the code.

by the system return that don't find user ID.
what wrong?

Hmm. I'm not sure! If you can, send me the HTML for the page as an
attachment (just HTML nothing else). The script finds the profile ID in the
meta tags at the top.

On Sun, Mar 27, 2011 at 4:01 PM, jhoonycode <
reply@reply.github.com>wrote:

I'm using chrome!
I open my facebook page
open the administration panel
open the java console
and copy the code.

by the system return that don't find user ID.
what wrong?

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

I send you now an email with the HTML file.
I tried with the firefox and firebug too!
I need your help.
G

Script worked great out of Safari!
However it also exported a number and an http link to the person's profile. Is there a way to only export the name and not this secondary info?
Thanks.
Dave

Dave -

Glad it worked for you! To remove the info, just go in and modify the
console.log statements before pasting into Safari. Hope that helps.

  • Adam

On Fri, Apr 1, 2011 at 1:41 PM, Dwhitte <
reply@reply.github.com>wrote:

Script worked great out of Safari!
However it also exported a number and an http link to the person's profile.
Is there a way to only export the name and not this secondary info?
Thanks.
Dave

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Thank You. Worked great again.

Hi Forgive me - today still getting the profile id error when at the fan page i admin.

i get "Sorry couldn't find profile ID"

thoughts? and many thanks for the script

never mind... it seems to be running. wild. thanks a lot

now here's another quicky: is there any way to tell join date, or to anyone's knowledge, that data is just not captured?
again, great script. many thanks
mc

Hi Adam,

I was also getting the "Sorry couldn't find profile ID" so I hacked your script and hard coded the page id which worked to certain extent. Essentially, the page has ~1640 fans but the script stopped at 1200. I signed in as admin. Any thoughts as to why the remaining 400 were not available?

BTW, the amended script is:

// start
var uri = '/ajax/social_graph/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;
var nodeId = 123456;

// 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.user_info) {
var userData = e.payload.user_info[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) {

if (!nodeId) {
alert('Sorry couldn\'t find profile ID');
return;
}

var data = {
edge_type: 'fan',
page: page,
limit: usersPerPage,
node_id: nodeId,
'class': 'FanManager',
post_form_id: document.getElementById('post_form_id').value,
fb_dtsg: document.getElementsByName('fb_dtsg')[0].value,
lsd: null,
post_form_id_source: 'AsyncRequest'
}

var req = new AsyncRequest()
.setURI(new URI(uri))
.setMethod('POST')
.setData(data)
.setHandler(OnResponse);

result = req.send();
}

downloadUsers(startPage);

// end

"Essentially, the page has ~1640 fans but the script stopped at 1200. I signed in as admin. Any thoughts as to why the remaining 400 were not available?"

... change the value of endPage in the script above to something greater than 10.

Awesome - thanks!

On Thu, Apr 28, 2011 at 11:16 AM, gmacgregor <
reply@reply.github.com>wrote:

"Essentially, the page has ~1640 fans but the script stopped at 1200. I
signed in as admin. Any thoughts as to why the remaining 400 were not
available?"

... change the value of endPage in the script above to something greater
than 10.

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Thanks gmacgregor!

Great work Adam, this worked like magic.

I'm wondering if you have found a workaround the 10, 000 user limit?

Thanx for sharing this

Sorry, still no workaround for the 10K user limit.

HELP! Adam, I can't get your script to work. I used Google Chrome and followed the steps above but go the "undefined" eror. I tried refarc's ammended script, and I got "Unexpected identifier" ......any ideas how I can fix???
You can reach me at: jromanow@bgeltd.com
Thanks - Jon

Hey Jon - thanks for letting me know, I'll take a look this weekend.

On Fri, May 27, 2011 at 12:33 PM, jromanow <
reply@reply.github.com>wrote:

HELP! Adam, I can't get your script to work. I used Google Chrome and
followed the steps above but go the "undefined" eror. I tried refarc's
ammended script, and I got "Unexpected identifier" ......any ideas how I
can fix???
You can reach me at: jromanow@bgeltd.com
Thanks - Jon

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Worked awesome for me with 632 fans.... this will make it much easier to find a winner for my giveaway contest for my facebook fans.

Sorry for the newbie comment here. This is what I've done in Safari. Let me know if I'm on the right path or way off.

I've clicked "Develop" in Safari. Then "Start Profiling Javascript". Then clicked on "Consol". Pasted the code. Changed the word ('meta') to (my id number). Then at the end of the code press enter.

Thanks for the help!

I think I'm actually stuck at where to put the Profile ID in the script. Please help. Thanks

lawpa - change

var nodeId = getNodeId();

to

var nodeId = PROFILEID;

where PROFILEID is your id number. hope that helps...

Worked like a charm! Thanks!!!

Guess I should change that to a prompt. This script is getting popular :-)

On Mon, May 30, 2011 at 9:07 PM, lawpa <
reply@reply.github.com>wrote:

Worked like a charm! Thanks!!!

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

This worked perfectly Adam! All I had to do was put in my FB Page ProfileID into the correct location (as you instructed Iawpa above) and voila! Thank you so much!

Thanks Adam. The new script worked in Google Chrome. The only question I have is why does it stop after 1200 users (have 2943). I thought you said from a previous post it should go up to 10,000 users????? Is there a way to modify the scrip to get all users?

Thank you,

Jon Romanow
jromanow@bgeltd.com
847-581-8217

adamloving reply@reply.github.com 5/30/2011 11:11 PM >>>
Guess I should change that to a prompt. This script is getting popular :-)

On Mon, May 30, 2011 at 9:07 PM, lawpa <
reply@reply.github.com>wrote:

Worked like a charm! Thanks!!!

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Hi,

Looks real nice. Used it to great satisfaction.
Still, the 10,000 is problem for me, cause I have around 17,000. Do you think you can pass a filter to the listing you're doing, and retrieve a*, then b*, etc?

Best regards.

Super script Adamloving, worked like a charm and I got all my 4280 fans exported. Love that I can simply edit what components are exported and then its just a few clicks to get all that into excel for some sorting :).

This would be perfect if you could find a workaround for the 10k limit. I found this from Google and this looks to be one of the simplest and easyest way to export fan lists.

Again, thanks a million!

Great script Adam!!! I am having intermittent problems and was wondering if others are seeing the same. I too see “undefined” after I execute the script but still the script executes properly sometimes. I haven’t been able to figure out why it doesn’t execute each time…sometimes I have to attempt to run the script for many times for several days before I get any results. Any ideas? I am using XP sp2 and google chrome.

I also forgot to mention that I am running the script on a sports venue page to which I am an admin

I really need to get this script working again. Is there any possible way to debug it?

Thanks for this Adam! I've been looking for something like this for 3 weeks. Phew!

Is there a way to get emails, like if I wanted to compile them for a monthly email database?

Asachs - Not that I know of! Will update this if someone figures it out.

On Wed, Jul 6, 2011 at 9:35 AM, asachs228 <
reply@reply.github.com>wrote:

Is there a way to get emails, like if I wanted to compile them for a
monthly email database?

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

i had the same problem with unable to get the profile id. I solved it by switching my account so that I was using facebook as my fan page, not as my normal user. If you are an administrator then you get an option to use facebook as "your page name". Clicking on this and then running the script worked.

Thanks very much for a great script.

Thanks so much for this awesome script! Worked perfectly and saved me a ton of time!

Hi! Is there a way for the list to show up in signup order? Ie: fans that have been with me the longest at one end and newest fans at the other?

mdchang - not that I know of, sorry!

On Tue, Jul 19, 2011 at 3:27 PM, mdchang <
reply@reply.github.com>wrote:

Hi! Is there a way for the list to show up in signup order? Ie: fans that
have been with me the longest at one end and newest fans at the other?

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Hi Adam,
I am also getting the error with the Profile ID. I am using Chrome and I am logged into FB as the business admin and still I get an error. Does this script still work or do I need to do something more with the ProfileID that I am not understanding. Thanks so much

Crystal
myredm6@yahoo.com

I got the code to work. This is definitely a newby question - so sorry - but how do I export the information. It does not let me highlight to copy and paste the info.

I loaded the facebook page, logged in as admin copied the code inside scripts, but nothing in console, not sure if I;m missing something Thnks guys

Hi - I just tested this again tonight to make sure that it is working. Worked for me first try. I'm using Chrome on Mac (Lion). If it doesn't work for you, please post what browser and OS you are using.

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. - thanks

/*

For more detailed instructions on how to use this script, sign up with your email here:
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans

DISCLOSURE: This javascript runs in your browser pretending to be you
looking through your page fans. Facebook should have no problem with this,
but who knows if they will think it is strange to see you looking through
all your fans so quickly (the script waits 3s before requesting each page).
I've had no problem running this so far for 1000s of page fans, but I
cannot be held liable if your Facebook account gets banned or your page
gets disabled for any reason for using this script.

INSTRUCTIONS:

  1. Download Google Chrome Web browser (or Apple Safari)

  2. Enable the developer tools

  3. Open the javascript console and cut and paste the attached script into the console.

The script will fetch users 100 at a time and output the results into the console which you can then cut and paste into a CSV file.

*/

var uri = '/ajax/social_graph/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.user_info) {
var userData = e.payload.user_info[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 = {
edge_type: 'fan',
page: page,
limit: usersPerPage,
node_id: nodeId,
'class': 'FanManager',
post_form_id: document.getElementById('post_form_id').value,
fb_dtsg: document.getElementsByName('fb_dtsg')[0].value,
lsd: null,
post_form_id_source: 'AsyncRequest'
}

var req = new AsyncRequest()
.setURI(new URI(uri))
.setMethod('POST')
.setData(data)
.setHandler(OnResponse);

result = req.send();

}

downloadUsers(startPage);

Hi Russel -

Thanks for writing, I should've included this in my instructions. The
script needs the numeric ID for the page, and it attempts to find it,
but can't get it in all cases.
To get it, view the HTML for your page and then search for
"profile_id" in the HTML. In chrome, right click and select "View
Page Source," then hit ctrl-f (or cmd-f on a Mac) and search for
"profile_id". Once, you've got the number, change the script from

var nodeId = getNodeId();

to

var nodeId = PROFILEID;

where PROFILEID is the profile_id number you found above.

I hope that helps...!
Adam

On Thu, Aug 25, 2011 at 1:55 AM, russellunidad
reply@reply.github.com
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. - thanks

/*

For more detailed instructions on how to use this script, sign up with your email here:
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans

DISCLOSURE: This javascript runs in your browser pretending to be you
looking through your page fans. Facebook should have no problem with this,
but who knows if they will think it is strange to see you looking through
all your fans so quickly (the script waits 3s before requesting each page).
I've had no problem running this so far for 1000s of page fans, but I
cannot be held liable if your Facebook account gets banned or your page
gets disabled for any reason for using this script.

INSTRUCTIONS:

  1. Download Google Chrome Web browser (or Apple Safari)

  2. Enable the developer tools

  3. Open the javascript console and cut and paste the attached script into the console.

The script will fetch users 100 at a time and output the results into the console which you can then cut and paste into a CSV file.

*/

var uri = '/ajax/social_graph/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.user_info) {
   var userData = e.payload.user_info[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 = {
   edge_type: 'fan',
   page: page,
   limit: usersPerPage,
   node_id: nodeId,
   'class': 'FanManager',
   post_form_id: document.getElementById('post_form_id').value,
   fb_dtsg: document.getElementsByName('fb_dtsg')[0].value,
   lsd: null,
   post_form_id_source: '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:
https://gist.github.com/783822

myredm6 -

The script needs the numeric ID for the page, and it attempts to find
it, but can't get it in all cases.

To get it, view the HTML for your page and then search for
"profile_id" in the HTML. In chrome, right click and select "View
Page Source," then hit ctrl-f (or cmd-f on a Mac) and search for
"profile_id". Once, you've got the number, change the script from

var nodeId = getNodeId();

to

var nodeId = PROFILEID;

where PROFILEID is the profile_id number you found above.

Hope that helps...!

On Thu, Jul 21, 2011 at 1:33 PM, myredm6
reply@reply.github.com
wrote:

Hi Adam,
I am also getting the error with the Profile ID.  I am using Chrome and I am logged into FB as the business admin and still I get an error. Does this script still work or do I need to do something more with the ProfileID that I am not understanding.   Thanks so much

Crystal
myredm6@yahoo.com

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

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. Any ideas? Thanks!

Hello Adam,
I love the code, and cut out the profile link part. I had a question for you though. How do I (if it's possible) get the email address associated with the fan's profile? eg, I tried userData.email but it didnt work. Thank you

This works perfectly for me however, I would like to implement this on a standalone page not just run it through firebug or js consoles of various browsers. I've been trying to implement this on a facebook app with no luck because of cross domain requests issues due to facebook apps being iframes within facebook but actually hosted on another domain.
Btw this code works for sites that I'm not even an admin of, so long as I have the correct page id. I also noticed that you don't need post_form_id or fb_dtsg values in the data dict.

Hi Adam,
Thank you so much for the code. I was wondering if there was a way to pull out just a fan's college education.

Thank you

Thanks for this Adam! Here are some Chrome tips:

  1. For the "Sorry couldn't find profile ID" - I found that I had to close all Chrome tabs, open a new window/tab, navigate to fb page, then run your script. It works!

  2. If, after you run script, you navigate away from the javascript console (to another website for example) OR try to select/copy from the bottom of the output page, it will not let you highlight the output (see myredm6 above).

Hope this helps other.

Thank you Trip!

On Thu, Sep 22, 2011 at 10:25 AM, Trip Leonard
reply@reply.github.com
wrote:

Thanks for this Adam!  Here are some Chrome tips:

  1. For the "Sorry couldn't find profile ID"  -  I found that I had to close all Chrome tabs, open a new window/tab, navigate to fb page, then run your script. It works!

  2. If, after you run script, you navigate away from the javascript console (to another website for example) OR try to select/copy from the bottom of the output page, it will not let you highlight the output (see myredm6 above).

Hope this helps other.

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

I got the list of names of fans using your instructions, but didn't capture email addresses from fans ... is there a way to get the email addresses along with this list of names?

Hey Adam,
I've tried again and again to get this work.. However, I keep encountering the same error messeage -
''POST http://www.facebook.com/ajax/social_graph/fetch.php?__a=1 500 (Internal Server Error)''
Could you kindly advise what I might be doingg wrong here as I see it has worked for others?
Many thanks!!

Amorame - I haven't seen that error before, it may be have been a
temporary Facebook error. I'll take a look in the next week or so and
report back if it happens for me.

On Tue, Sep 27, 2011 at 5:37 AM, amorame
reply@reply.github.com
wrote:

Hey Adam,
I've tried again and again to get this work.. However, I keep encountering the same error messeage -
''POST http://www.facebook.com/ajax/social_graph/fetch.php?__a=1 500 (Internal Server Error)''
Could you kindly advise what I might be doingg wrong here as I see it has worked for others?
Many thanks!!

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Adam, this works great the only problem now is that facebook does not put the email in the e.payload.user_info anymore, do you know where we could find that info? because y check in the objects and seems i couldn't find it!

Thanks a lot
Agustin

Hi Adam, Thanks for sharing!

This worked great for a few weeks and I was really excited! Today, though, I got this error message...

POST http://www.facebook.com/ajax/social_graph/fetch.php?__a=1 404 (Not Found)

Any idea what is going on or how to fix it? Thanks!

Andrew

I've been using this successfully for the past few weeks as well (thank you!) but this morning I'm getting the same message Andrew is.

POST http://www.facebook.com/ajax/social_graph/fetch.php?__a=1 404 (Not Found)

Jill

Facebook updated their site yesterday, so the script above no longer works. I've re-written the script to scrape the fans from DOM nodes instead of using the Facebook AJAX libraries. For the moment, I'm only supplying the latest version to those that paid for the premium version in the past. I'll post here when I make it available again. Thanks!

Hey Man,
I am new to this and just tried pasting the script in my console. No emails have popped up yet. What am I doing wrong?

you can reach me at djw81580@gmail.com
Thanks dude for your great work!! you are helping alot of people!!

Hey I'd be very interested in that script! Never got to try the original.

I'd love to pay to get the new version! Need to run this script for work! Thanks so much!

I can't stress enough how a lot of people would be willing to pay for the new script. It seems a strange way to supply the latest version only to people who've bought the old version.

Hi adamloving, would it be somehow possilble to buy the new script from you? Thanks!

Hi everybody -

Sorry for not posting an update in a while. I haven't been able to
find a new way to export fans yet.

Thanks,
Adam

On Wed, Nov 2, 2011 at 3:13 AM, gituserhub
reply@reply.github.com
wrote:

Hi adamloving, would it be somehow possilble to buy the new script from you? Thanks!

Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Hi guys,

I'm trying to get the info from my fan page. I use Chrome and i'm an admin of the page.
I've changed the var nodeId to my profile ID. I still get this error:

POST https://www.facebook.com/ajax/social_graph/fetch.php?__a=1 404 (Not Found)

Any clue???

Thanks

I try this script and take the same error above.

What can I do?

Does this script still work. I noticed that the AJAX call on the FB insights tab when I request the Likes has changed. I tried running the script with a few modifications like the uri etc but the payload coming back is null

Same question?Does this script still work?

Hi guys, sorry for not replying sooner. Due to changes on Facebook's end this script no longer works.

On Jan 23, 2012, at 6:08 PM, sarowarreply@reply.github.com wrote:

Same question?Does this script still work?


Reply to this email directly or view it on GitHub:
https://gist.github.com/783822

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.