Facebook API Plugin


Client wanted counts of Facebook shares for his whole site. So we built a plugin that gathers the share counts for all his posts and stores them by post. Here are the details:

1. Daily update: job runs every 5 minutes and updates share counts for posts published that day…
2. Monthly update: job runs once every night; and cycles through posts for last 30 days and updates their share counts.
3. We also stored shared counts for all posts on the site for historical purposes.

The daily share count is shown in top header of the site and the monthly share count is shown in the footer…