Topic: Add Facebook Comments to CuteNews

Hello!

I want to add the Facebook Comments plugin to my website under every news. I'm beginner with CuteNews, so I would be pleased if you help me and explain what to change/edit.

Thank you in advance (and sorry for my English)! ".handle_img_tag($matches[1].$matches[3], false)."

2 (edited by 2012-02-29 13:37:16)

Re: Add Facebook Comments to CuteNews

https://developers.facebook.com/docs/refere...ugins/comments/
Put in URL field :

$matches[1]

Replace example.com with your sitename.

Customize other selections to your needs and click Get code.

$matches[1]
1. Include the first code to page where showing news, right after body tag.

2. Edit your news template

add into $matches[1] box (in cutenews) the code which is in the second box.
For example:

<div class="fb-comments" data-href="http://www.example.com" data-num-posts="2" data-width="470"></div>

now change the link like this:

<div class="fb-comments" data-href="http://www.example.com/index.php?subaction=showfull&id={news-id}&archive=&start_from=&" data-num-posts="2" data-width="470"></div>

$matches[1]

Hope this works  ".handle_img_tag($matches[1].$matches[3], false)."