Hi,

I was wondering that it would be awsome if we could use facebook share and like -buttons to give energy to nodes.

Drupal doesn't know about these clicks like it knows internal drupal stuff but the facebook query language can be used to get the share/link count of given URLs, http://developers.facebook.com/docs/reference/fql/link_stat

What would be the right way to implement this feature to Radioactivity Module? Should the link_stat -query to facebook be made every time we run cron?

If this would be the case, I guess we should make some kind of book-keeping on how the link_stat count of given node has changed between cron runs and then increase the energy of a node if the number on link_stat counts has increased since the last cron run.

Cheers,
Markus

Comments

skiminki’s picture

I'm not familiar with Facebook APIs. If you can somehow get those share/like counts from Facebook, it shouldn't be too hard to implement some kind of accounting in the Drupal-end at crons. Use radioactivity_add_energy to give energy.

Look at some of the smaller plugins (e.g. radioactivity_votingapi) as a code template.

TimelessDomain’s picture

This recently just became possible, but it is not yet integrated with Radioactivity
http://drupal.org/project/views_fb_like
"This is a simple little module that will get the number of Facebook 'Likes' for the nodes on your site. It then exposes that information to views so that you can, for example, sort by it."

NancyDru’s picture

The biggest problem I see with Views_fb_like is that it is after the fact, so it is not a true indicator of "energy".

Ideally, one could capture the Like click in real time and save it somewhere; my preference would be to add it to VotingAPI, which is already available to Radioactivity.

Somewhere I have seen something about an Action being triggered, but can't find it again.

udvranto’s picture

Interested...

mattwmc’s picture

Ideally, it would be nice to get a count of ALL the social network buttons you use.

I think Mashable has something like that.

Dave Reid’s picture

mattwmc’s picture

Yep. But need D6, though. :)

NancyDru’s picture

@Dave: is that real-time or after the fact?

Dave Reid’s picture

cron-based, so not real-time.

martinsookael’s picture

Since the facebook "like" has moved towards being a "share" button,
then "like"-ing a post draws more people visiting it = this actually already raises the radioactivity.

Sutharsan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Issue triage: Closing issue, the 6.x branch is no longer maintained.

If you believe this issue is closed in error, feel free to re-open.