1
marius1200
Integrate Facebook Comments in News Module
  • 2011/1/13 4:32

  • marius1200

  • Just popping in

  • Posts: 12

  • Since: 2005/2/1 1


Hi!
I want add Facebook Comments in my Xoops News modules. (http://developers.facebook.com/docs/reference/plugins/comments)


But that don't work.

I've see this website :http://ideologi.my/v3/modules/AMS/article.php?storyid=6

but it's with AMS module.

1) i have an application ID for my website : 182045851815400

2) in modules/news/templates/news_item.html : i have had this code :
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=182045851815400&amp;amp;xfbml=1"></script>
        
        <
fb:comments width="500" title={$story.news_titlenotify="true" reverse="0" publish_feed="1"></fb:comments>


3) In themes/modern_red i have had like this (http://developers.facebook.com/docs/reference/javascript/) :

<div id="fb-root"></div>
<
script>
  
window.fbAsyncInit = function() {
    
FB.init({appId'182045851815400'statustruecookietrue,
             
xfbmltrue});
  };
  (function() {
    var 
document.createElement('script'); e.async true;
    
e.src document.location.protocol +
      
'//connect.facebook.net/en_US/all.js';
    
document.getElementById('fb-root').appendChild(e);
  }());
</
script>


Anybody can help me please?

Thank you.

Before i have find this :https://xoops.org/modules/newbb/viewtopic.php?viewmode=compact&topic_id=72596&forum=4 but don't work.

Sorry for my bad english, i'm french

2
Anonymous
Re: Integrate Facebook Comments in News Module
  • 2011/1/13 10:49

  • Anonymous

  • Posts: 0

  • Since:


Try to add this code in news_article.html:

<div id="fb-root"></div>
<
script src="http://connect.facebook.net/en_US/all.js#appId=182045851815400&amp;xfbml=1"></script>
<
fb:comments xid="news<{$story.id}>" url="<{$xoops_url}>/modules/news/article.php?storyid=<{$story.id}>" title="<{$encoded_title}>" numposts="10" width="640" publish_feed="true"></fb:comments>


For french language, replace en_US with fr_FR.







3
marius1200
Re: Integrate Facebook Comments in News Module
  • 2011/1/13 19:14

  • marius1200

  • Just popping in

  • Posts: 12

  • Since: 2005/2/1 1


Thank you but that don't work...

My Website is :http://www.foot24.eu

4
Anonymous
Re: Integrate Facebook Comments in News Module
  • 2011/1/13 22:25

  • Anonymous

  • Posts: 0

  • Since:


your site still using old way, please update news module and turn on "Check templates for modifications ?" from general settings.

5
Anonymous
Re: Integrate Facebook Comments in News Module
  • 2011/1/15 23:30

  • Anonymous

  • Posts: 0

  • Since:


Demo:
http://www.saudigear.com/emag/modules/news/article.php?storyid=875

6
mariane
Re: Integrate Facebook Comments in News Module
  • 2011/1/16 16:41

  • mariane

  • Theme Designer

  • Posts: 649

  • Since: 2008/1/11


great work Mowaffak
the road of success is always under construction

7
marius1200
Re: Integrate Facebook Comments in News Module
  • 2011/1/16 21:20

  • marius1200

  • Just popping in

  • Posts: 12

  • Since: 2005/2/1 1


Thanks, i delete all my cache. And update modules news.

What have you write in your theme.html please ?


8
marius1200
Re: Integrate Facebook Comments in News Module
  • 2011/1/16 21:26

  • marius1200

  • Just popping in

  • Posts: 12

  • Since: 2005/2/1 1


Because don't work...

9
iDeologi
Re: Integrate Facebook Comments in News Module
  • 2011/1/16 22:19

  • iDeologi

  • Just popping in

  • Posts: 16

  • Since: 2006/5/12


U must add this code to your theme.html file

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fb="http://www.facebook.com/2008/fbml">

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


10
marius1200
Re: Integrate Facebook Comments in News Module
  • 2011/1/16 22:43

  • marius1200

  • Just popping in

  • Posts: 12

  • Since: 2005/2/1 1


Thank for your help, but i try, i try and it dont work!

Do you thinh, it"s a problem with my Facebook ID (parameters, configuration?)

Login

Who's Online

157 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 157


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits