Topic: Facebook Commenting

Hey Guys,

So I am trying to get the facebook social commenting plugin working... I see that there are already a couple of threads and it all work's but the only problem is that say I put a comment on PAGE A then click on PAGE B the comment is also on page B... meaning if a site user comments on one article it appears on every article.

Do you know how to fix this? I have been reading about it and it has something to do with the date-href and I tried using this URL for it: "data-href="http://www.wantedfm.com/example1.php?subaction=showfull&id={news-id}&archive=&start_from=&"

But this also didn't work... so I am not sure what to do? Any ideas?

For now I have taken out the "data-href" all together and it works fine except it has a yellow comment on each page saying "Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features."

So yeah I am just wondering if anyone know's a fix for this? Thanks in advance!

Re: Facebook Commenting

Have you looked this topic : Add Facebook Comments to CuteNews

Maybe this gives you an idea  https://cutephp.com/forum/style_emoticons/default/rolleyes.gif

Re: Facebook Commenting

bumphttp://www.castoffdebt.com/hjuhj.gif

Re: Facebook Commenting

Have you looked this topic : Add Facebook Comments to CuteNews

Maybe this gives you an idea  https://cutephp.com/forum/style_emoticons/default/rolleyes.gif

Yeah that's the one I looked at! It didn't seem to work

Re: Facebook Commenting

http://www.wantedfm.com/example1.php?subac...amp;ucat=1&
has multiple facebook comments
http://www.wantedfm.com/example1.php?subac...tart_from=&
has none...

Not sure why you claim

I put a comment on PAGE A then click on PAGE B the comment is also on page B... meaning if a site user comments on one article it appears on every article.

that would mean i'dd have to see comments on the second link as well, while i don't.

Re: Facebook Commenting

Yeah that's the one I looked at! It didn't seem to work

This doesn't seem to work for me either. Any other idea, guys?

7 (edited by 2012-05-15 08:39:32)

Re: Facebook Commenting

Dear all,

The latest CuteNews version supports facebook comments. Please insert the following code into your page:

<script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=<ВАШ_APPID>";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

The following code can be inserted after your news:

 <div class="fb-comments" data-href="<URL news page>" data-num-posts="5" data-width="595"></div>
Best regards,
CN Support team

8 (edited by 2012-06-27 22:23:11)

Re: Facebook Commenting

Dear all,

The latest CuteNews version supports facebook comments. Please insert the following code into your page:

<script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=<ВАШ_APPID>";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>

The following code can be inserted after your news:

 <div class="fb-comments" data-href="<URL news page>" data-num-posts="5" data-width="595"></div>

Sorry to revive this topic but I used the code above after the body of my index.php.

Then put the bottom portion in my add comment form.
<div class="fb-comments" data-href="http://sonnysgolfleague.com" data-num-posts="2" data-width="470"></div>

I am able to post comments from my Facebook page, but they are showing up on every single article.  www.SonnysGolfLeague.com .  Also on a side note how can I fix the comment counter to work when facebook comments are made.

Thank you.

9 (edited by 2012-06-28 18:10:47)

Re: Facebook Commenting

Can anyone help? I've read every article on here about it and none have helped.

Re: Facebook Commenting

bump..

Re: Facebook Commenting

Tip: concrete questions are easier to answer than "it just doesn't work". What articles have you looked at? What did you not understand? What didn't work?

Re: Facebook Commenting

Can anyone help? I've read every article on here about it and none have helped.

is facebook comments showing on your page but all the news show the same comments??


Just remove the code

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><div class="fb-comments" data-href="<URL news page>" data-num-posts="5" data-width="595"></div></div>

from your comment form section and add it to your full story section . that'll do it.

i was having the same issue and that fix it.

Re: Facebook Commenting

someone knows howto add the number of comments on your website ? i already got facebook working with cutenews 1.4.7

Re: Facebook Commenting

What kind of comments did you mean? Facebook ot cutenews? If Facebook so give the code of the widget is used?

Best regards,
CN Support team

Re: Facebook Commenting

What kind of comments did you mean? Facebook ot cutenews? If Facebook so give the code of the widget is used?


The facebooks comments. That in every new news item the specified facebook comments beeing showed. In my case on the frontpage: www.wirdumonline.nl

Re: Facebook Commenting

What kind of comments did you mean? Facebook ot cutenews? If Facebook so give the code of the widget is used?


The facebooks comments. That in every new news item the specified facebook comments beeing showed. In my case on the frontpage: www.wirdumonline.nl

17 (edited by 2012-07-30 11:43:14)

Re: Facebook Commenting

Recommendation.
You probably use incorrect code

<script>
    window.fbAsyncInit = function() {
    FB.init({appId: ‘your app id’, status: true, cookie: true,
    xfbml: true});
    };
    (function() {
    var e = document.createElement(‘script’); e.async = true;
    e.src = document.location.protocol +
    â€˜//connect.facebook.net/nl_NL/all.js’;
    document.getElementById(‘fb-root’).appendChild(e);
    }());
</script>


First you should change ‘ to ' (apostrophe)

<script>
    window.fbAsyncInit = function() {
    FB.init({appId: 'your app id', status: true, cookie: true,
    xfbml: true});
    };
    (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
    '//connect.facebook.net/nl_NL/all.js';
    document.getElementById('fb-root').appendChild(e);
    }());
</script>

Second, change 'your app id' to the code of your AppID.

http://developers.facebook.com/docs/refere...ugins/comments/ - here there is more information
For the full management put <meta property="fb:app_id" content="{YOUR_APPLICATION_ID}"/> into the <head> section but not forget to change to AppID before it.
AppID can be received here https://developers.facebook.com/apps.

Best regards,
CN Support team

Re: Facebook Commenting

Hey Guys,

So I am trying to get the facebook social commenting plugin working... I see that there are already a couple of threads and it all work's but the only problem is that say I put a comment on PAGE A then click on PAGE B the comment is also on page B... meaning if a site user comments on one article it appears on every article.

Do you know how to fix this? I have been reading about it and it has something to do with the date-href and I tried using this URL for it: "data-href="http://www.wantedfm.com/example1.php?subaction=showfull&id={news-id}&archive=&start_from=&"

But this also didn't work... so I am not sure what to do? Any ideas?

For now I have taken out the "data-href" all together and it works fine except it has a yellow comment on each page saying "Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features."

So yeah I am just wondering if anyone know's a fix for this? Thanks in advance!


hello wantedFM
i just came across this problem and sorted out yesterday.
Sorry i m late but its better to share the code.  https://cutephp.com/forum/style_emoticons/default/wink.gif

<div class="fb-comments" data-href="http://yourwebsitename.com/?option=com_k2&view=item&id=<?php echo $variable ?>&title=<?php echo $variable ?>" data-width="470" data-num-posts="10"></div>

Thanks

Re: Facebook Commenting

Let your fans and visitors know up front what the rules are for posting on your wall and commenting.

Re: Facebook Commenting

We all know that Facebook is one of the best social media sites when it comes to online marketing.


Re: Facebook Commenting

Hi, guys!

I'm using facebook comments from the system configuration options but my website has a dark background so it makes the text unreadable, anyone knows how to change this?

Thanks!

22 (edited by 2013-02-20 19:44:34)

Re: Facebook Commenting

Thanks, guys!  https://cutephp.com/forum/style_emoticons/default/wink.gif
___
Dobre biuro nieruchomości poznań w zasięgu ręki.

Re: Facebook Commenting

I'm using facebook comments from the system configuration options but my website has a dark background so it makes the text unreadable, anyone knows how to change this?

I have the same problem.

On developers.facebook I found this option:

data-colorscheme="dark"

I should put it in

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


but I can't find this part of code in cutenews files https://cutephp.com/forum/style_emoticons/default/sad.gif

24 (edited by 2013-02-21 04:48:50)

Re: Facebook Commenting

This line appears in the code core/com/allow_active_news.php and core/com/allow_comments.php. It begins with <div class="fb-comments" data-href= just add after data-num-posts a string data-colorscheme="dark".

Best regards,
CN Support team

Re: Facebook Commenting

It works!
Thank you very much!

Posts: 1 to 25 of 26

Pages 1 2 Next

You must login or register to post a reply

CutePHP Forums → Problem Solving / Help & Support → Facebook Commenting



The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.