By nidhhog on
Hi
I got Drupal.6.2 with Facebook Share and View and voting api modules.
I want to add a new view, which shows top facebook share nodes....
Anyone know, is it possobile?
Hi
I got Drupal.6.2 with Facebook Share and View and voting api modules.
I want to add a new view, which shows top facebook share nodes....
Anyone know, is it possobile?
Comments
Is there a sort available for
Is there a sort available for number of facebook shares?
No, it is not.
No, it is not.
Are you any good with
Are you any good with programming?
I'm not saying this is the only (or even best) solution. But, you could add a CCK integer field (default to 0) to any content types you're letting users share to facebook* - write a small module that [each time a node is shared to facebook] hits the table for the cck field and "adds 1" to the integer value.
Then in views you could sort by content_field_sortinteger.
*With the custom module you could also just create a new table with nid+sharecount that would store the node id and integer instead of using a CCK field. But then you'd also have to write your custom sort for views as well as it wouldn't be a quick available sort method.
Sorry I don't know of anything that is easier / built into drupal.
You can use Views FB Like Module
Have a look at this module :
http://drupal.org/project/views_fb_like
You can created a view sorted by nb of like or nb of share on FB
What about Tweeter, does anyone have a solution to create a view sorted by number of tweets related to a node ?
Thanks, this it great.\But
Thanks, this it great.\But there is a small problem, because the number of shares is incompatible with the true value...
The facebook share button shows 19 shares, but int the view created with this module, I got only 9 for example?
Hot to fix it?