Facebook – “Don’t forget” event notification: how do they work

facebookfacebook-eventsfacebook-notifications

I recently noticed that I received for some invitations, not all, a reminder notification saying "Don't Forget: X invited you to X event" on Facebook.

I wanted to know how these work, what is the rule or maybe function/button that drives these notifications?

My goal is to be able to use these and seed reminder notification to people that were invited but didn't respond.

Best Answer

I could imagine that you can keep a list of all recipients and respondents. Any recipient not in the respondents list could be marked to receive a notification if they are still not on that list X amount of days before the event takes place. This assumes that the respondents are a subset of the recipients. Here's a rough idea of how the pseudo...

Pseudo:

//all recipients recipients = [a,b,c,d..] respondents = [a,b]

if today is X days before the day of the event and respondents.length < recipients

       //send respondents  message 
       for each person  in recipients:
                if person is not in respondents:
                     person.send("Hey you, yeah you! check your event     
                      calendar!")