There are loads of modules to implement Facebook Comments on your site, but there is no easy way to get an overview of comments made. Enter "Facebook Comments Administration".
This module will create a simple interface which lists nodes that have Facebook comments and also highlight new ones.

Since the process is done simply with the node URL and Facebook's API, you can use any module (or custom code) to implement Facebook Comments on your site.
The comments are indexed via cron queues to prevent heavy cron jobs. This, however, may cause comments to not be indexed for a while on large sites.

The module currently only works with Drupal 7 but there are plans to make a Drupal 6 version as well.

Project page: http://drupal.org/sandbox/johnzzon/1531972
Git: git clone --branch=7.x-1.x http://git.drupal.org/sandbox/johnzzon/1531972.git fb_comments_admin

Comments

patrickd’s picture

welcome,

Nice to see you already cleaned up the code, good job :)

Please take a moment to make your project page follow tips for a great project page.

We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.

regards

johnzzon’s picture

Thanks!

I've made a few edits to my project page now, I hope it's a lot more informative now!

lukas.fischer’s picture

Hi

You might add git clone --branch=7.x-1.x http://git.drupal.org/sandbox/johnzzon/1531972.git fb_comments_admin for faster cloning in main ticket.

You may check your code here: http://ventral.org/pareview/httpgitdrupalorgsandboxjohnzzon1531972git

Some minor fixes in Readme.txt needed

FILE: ...al-7-pareview/sites/all/modules/pareview_temp/test_candidate/README.txt
--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 2 WARNING(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
17 | WARNING | Line exceeds 80 characters; contains 98 characters
25 | WARNING | Line exceeds 80 characters; contains 95 characters
--------------------------------------------------------------------------------

Feedback from manual code testing:
- I very like the idea. However, I don't understand how it works right away. How can I access the overview of comments? (this was not clear in the beginning)
- You could mention admin/content/fb-comments-admin in the Readme.txt
- No issues in Coder - awesome! :-)
- Unfortunately I could not fully check the funcitonality because I don't have facebook comments installed.
- Just wondering: What happens if a node has 200 comments within 1h. Does the facebook api return all 200 comments? Or a limited view? How do you deal with this?

admin.admin.inc
- Line 12, you should set relative path in module e.g. drupal_add_css(drupal_get_path('module', 'custom') . '/css/custom.css');

olmeta.david’s picture

Hello,

I think, you can add the package in you .info file too.
May be more specific to Facebook.

Regards,

soncco’s picture

Nice module!, my personal review:

I'm testing the module in a large site. This site has a lot of fb comments, and after running cron no comments has been indexed. Maybe this is because you're using:

$url = node_uri($node);
$absolute_url = $base_url . '/' . $url['path'];
$req_url = "https://graph.facebook.com/comments/?ids=" . $absolute_url;

This not work for me because I'm using pathauto to generate urls. Try to use l() function to generate paths and fetch them from Facebook.

Also remove unused function fb_comments_admin_install().

brunogoossens’s picture

Something like this to make your full URL with correct alias.

$absoluteurl = url($url['path'], array('absolute' => TRUE));
misc’s picture

Status: Needs review » Needs work

This should have been marked as needs work after comment #3.

johnzzon’s picture

Thanks everyone for your feedback, it's highly appreciated!
Updates are slow though, recently got employed so there's little time left to personal projects.

Hoping to put more time on this module this fall.

johnzzon’s picture

Issue summary: View changes

Edited the git URL to include full git clone command.

klausi’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

klausi’s picture

Issue summary: View changes

Added "--branch=7.x-1.x" to the git clone info