Skip to content

Update Request #24

@Jowcey

Description

@Jowcey

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions