Creating a social media score plugin

I’m creating a plugin which counts social scores on various sites. It uses the various API’s available on the web to determine a “count” of shares or likes across facebook, twitter, delicious, linkedin, stumbleupon, digg etc.

Many of you are probably familiar with javascript widgets for these sites. I’m frustrated with the overhead which this brings (multiple javascript calls, so I’m building something to work this out and store natively within WordPress). This will also give scope for designers creating their own buttons with HTML, and a shortcode will show the share count.

Read More

My problem lies in the speed of the response for the networks. They can be slow, so I’m looking for architecture / design advice. I was thinking of creating a table which holds POST_ID and a collection of scores which is updated often via WP-CRON.. and updates when a user clicks the share button as well to keep it in synch. Sound like a valid idea? Or any other ideas?

If you are still confused, take a look at the new share button on the BBC. I want to bring this to WordPress, minus the speed overhead.

Related posts

Leave a Reply

1 comment

  1. WP_Cron & ‘save_post’/’update_post’ hooks sound good. But I’d try saving it either inside an option field or as post_meta data. A stand alone table might be too much an no one wants extra tables. Furthermore you leave other possibilites open if you go the “native” root with post_meta.