I've installed and configured the fb social module. I created a preset for comments. I turned that on for the blog entry content item. But it does not show up in my blog. What do I need to do to make this show up? The site http://beta.giltjewelry.com/blog/sample-blog-entry-initial-caps.
I also activated it for the Page content type, but it does not show up for that content type either.
Thanks in advance for your help.
Comments
Comment #1
rcharamella commentedI did a bit more debugging work on this. It seems the module is not inserting the fb_iframe_widget for comments.
In this site I'm see:
<fb:comments href="http://beta.giltjewelry.com/blog/sample-blog-entry-initial-caps" migrated="1" colorscheme="light" width="550" numposts="10"></fb:comments>In a site I did that works, I see:
<fb:comments class=" fb_iframe_widget" href="https://www.raretearepublic.com/blog/gauging-water-temperature-sight-and-time" migrated="1" colorscheme="light" width="630" numposts="10">I'm not seeing any error javascript or other error messages.
What do I need to look for to try to make this work?
Comment #2
rcharamella commentedI've turned off all additional modules to see if there is a javascript conflict. The result is the same, no comment block. I also found that the facebook all.js is not being added to the pages as it should. I checked my template.php page against one that's in a site where the fb social module works and found it to be the same as the one where this module works.
I found that, if I manually insert the facebook block of javascript found in this post: http://drupal.org/node/1318892 that the comments boxes do show up.
Any have any ideas about how I can get this to work?
Thanks.
Comment #6
mrvinch commentedI have found that they do not show if I'm are using a customised node.tpl.php file.
When I use the default they show.
Mine output fields individually and I haven't yet found how to manually insert the facebook comments...
Comment #7
mrvinch commentedok... solved my little issue.
I added the fb_social-comments-plugin DIV to my node tpl file with the $node_url variable.
works perfectly now.
Comment #8
greggmarshallThanks @mrvinch, I used your code in my custom node.tpl.php and it works.
But...
Basically it has hard coded the settings, ignoring the settings page of the module.
While I'm working in the 6.x-2.x branch, I presume what I am doing will work for 7.x-2.x.
There is a way to insert more/less the same code using a variable available in the node object
where widget is the name you gave your fb_comments preset (e.g. if your fb_comments preset is "sam_i_am" then the index would be $node->content['fb_social_comments_sam_i_am']['#value']). I used the name widget to maintain compatibility with templates that were being used with the 6.x-1.x branch.