Error in Phoca Facebook Comments

General Forum
fwmk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Mar 2011, 13:41

Error in Phoca Facebook Comments

Post by fwmk »

Hello!

After installing an cofiguring the Module "Facebook Comments" for J 1.5 I get a very strange error on the site after publishing it:

Image

The error appears and the website is reloading all the time. Yes, I entered all informations in the module including the right App ID, was testing around now about one hour with different settings.

Did not find anything in Google or elsewhere. Can somebody help me?

Thanks!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in Phoca Facebook Comments

Post by Jan »

Hi, really no idea what can be wrong there, didn't see such problem yet :-(

Did you try to search facebook devel sites (probably yes as google search them, but maybe try to ask on some facebook devel discussion) :idea:

Jan
If you find Phoca extensions useful, please support the project
fwmk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 23 Mar 2011, 13:41

Re: Error in Phoca Facebook Comments

Post by fwmk »

Hi Jan!

I think facebook changed the comment plugin actually and requires now a change of code.

What I did to resolve the problem:
I changed the following code in modules/mod_phoca_facebook_comments/tmpl/default.php

from:

Code: Select all

<fb:comments xid="<?php echo $xid ?>" simple="1" width="<?php echo (int)$this->tmpl['fb_comment_width'] ?>"></fb:comments>
into:

Code: Select all

<fb:comments href="http://LINK_TO_WEBSITE" xid="<?php echo $xid ?>" simple="1" width="<?php echo (int)$this->tmpl['fb_comment_width'] ?>"></fb:comments>
and it worked then without mistakes. I was sitting a few hours to find another solution because actually I like the Comments Plugin with the pagination as you have much more as the new one, as the height of my website is limited thorugh design issues.

If you have another solution I would be very happy with it. Facebook Developer Forum is dead as always, there is nobody who could give any answer so far.

I know there should be a dynamic version to get the URL , but my programming knowledge is limited.

Wolve
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error in Phoca Facebook Comments

Post by Jan »

Hi, thank you for the info. Will take a look at it
If you find Phoca extensions useful, please support the project
Post Reply