facebook-export icon indicating copy to clipboard operation
facebook-export copied to clipboard

Update Request

Open Jowcey opened this issue 8 years ago • 0 comments

Ok so upon playing with this for a while i come to realise it was limiting the member dumping to only 25 members, this is because facebook using pagination even with their API

To remedy this simply open lib/fetch_members.coffee navigate to the section of code that looks like this: `module.exports = (program) ->

Explicitly list fields so can set comment limits to 999 which should fetch

all comments in one pass.

url = "https://graph.facebook.com/#{ program.group_id }/members?access_token=#{ program.accessToken }" membersDb = levelup(config.dataDir + '/group_members_' + program.group_id, { valueEncoding: 'json' }) group_id = program.group_id requestMembers(url)`

Then find the url line: url = "https://graph.facebook.com/#{ program.group_id }/members?access_token=#{ program.accessToken }" and change it to: url = "https://graph.facebook.com/#{ program.group_id }/members?access_token=#{ program.accessToken }&limit=7500"

That is limited to display upto 7500 members so you can play with that number as you wish :)

Jowcey avatar Aug 09 '17 10:08 Jowcey