In Answer to “How to send email to all members of a Facebook group”

The question was 

Is there any way to send an email to every member of a group in Facebook given that I’m the admin of that group? Or just send a message to every member of that group and they will see it on their Facebook inbox?

If this is not possible may I know if there is a way to get all the Facebook email addresses of members in a group so that I can just use the usual messaging system in Facebook to send a message to each of those emails?

 

My solution was 

This is going to require a little coding and some Facebook Open Graph knowledge.

  1. You must be logged into facebook 🙂
  2. First you will need to query all the members of your group. Here is an example query

    api.facebook.com/method/fql.query?query=select+gid%2C+uid+from+group_member+where+gid+%3D+146797922030397+limit+50&access_token=AAAAAAITEghMBAJDmxL89UqxXbZAqR4PwcIIE8nj74hiPi618zMJLuzJh1otaVC2XIxjmA78yzsxZC9pDcBZBaAW4He2ZCh1sVsYAbahvXwZDZD&format=json

    This only works on groups you are a member of. Also my example link is set to take the first 50. If you need more adjust the Url query accordingly. The important number in this is the gid. Your gid can be found in the url of the group page.

  3. Now you have all the uid (user ids)

  4. These uid’s can be used to get their user account names Example:
    Here is Brad’s

    graph.facebook.com/220439
  5. Take the account names and append @facebook.com

  6. Create a csv with all the email addresses copy this line into Facebook messenger.

You would want to automate this in a script, as manually looking up each individual user name would be tedious.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s