Jump to content
vekia

[module] Facebook Comments for free - PrestaShop 1.7 / 1.6 / 1.5 / 1.4

Recommended Posts

im glad that i can help :-) If you've got any suggestion about the module - feel free to write :)

Share this post


Link to post
Share on other sites

thanks for your suggestion, if it is possible (for now i don't know) i will include this feature in next update :-)

Share this post


Link to post
Share on other sites

WOW vekai, IMPRESSIVE is all i can say.

 

i do however have a question.

 

i installed this and when i look at it on the spanish version of my site, i see a warning beneath the comments input window (see attached unreachable.png) and when i go to debug i get a bunch of open graph warnings at facebook (see unreachableDEBUG.png). this does not seem to affect the functionality of the comments module since it has worked and placed the comment on facebook both via the english and spanish versions of my store but i think the warning may scare people.

 

any ideas of why that warning appears.

 

i know about og meta tags but i did not think they were necessary in prestashop.

 

OH, and one possible way to improve the module. when you are not logged into facebook (yes, i know, most fbookers are always logged in) and you try to comment, a pop-up

appears asking you to log into facebook to see the page. when you provide credentials an log in, the pop-up disappears and you are looking at the shop page again but the comment has not been posted to facebook. problem is that even if you click comment again, and again, and again... the comment is not published as the module does not refresh and show that you are logged into facebook (eg your fbook profile pic does not appear to the left of the comment text field. you need to manually refresh the page via your browser for the module to see you as logged in and let you comment.

 

i am a pretty savvy facebooker and this threw me off a bit, imagine what it would do to not so savvy users.

 

how hard would it be to have the module auto-refresh after you log in via the pop-up windown and hence show you as logged in?

 

just a suggestion.

 

thanks!

jer...

post-520279-0-56095200-1364916414_thumb.png

post-520279-0-25658900-1364916479_thumb.png

Share this post


Link to post
Share on other sites

i checked your website and information about unreachable link disappears

 

xic4XZr.gif

 

i also add first comment without any problem - it works well :)

 

i think that this is browser issue, you should hard refresh it ctrl+f5 or clear browser cache

  • Like 1

Share this post


Link to post
Share on other sites

odd, i tried again and got that could not reach page error on the english version too.

 

anyway, i have a few more recommendations.

 

1) when i share a product on facebook via my social toolbar,it shows the product in it's entirety but when i post a comment to facebook via the tab comments, it crops the image and i wonder why?

see attached "SHARE.jpg" as i have placed the 2 published shares side by side for comparison.

 

2) is there a way to have the "Post to Facebook" check box checked by default? see attached "ptfbook.png". i think it would be better to have it selected by default than not to and have the user have to check it since many will forget or not see it at all.

 

tnx,

jer...

post-520279-0-44358600-1364920262_thumb.jpg

post-520279-0-37044000-1364920513_thumb.png

Share this post


Link to post
Share on other sites

2) unfortunately, it is facebook privacy policy :(

1) It's weirdy but all of this depends on facebook scripts, we can't do anything with facebook scripts which are cropping this image :(

Share this post


Link to post
Share on other sites

gotcha.

 

what about the other comment?

 

-----

OH, and one possible way to improve the module. when you are not logged into facebook (yes, i know, most fbookers are always logged in) and you try to comment, a pop-up

appears asking you to log into facebook to see the page. when you provide credentials an log in, the pop-up disappears and you are looking at the shop page again but the comment has not been posted to facebook. problem is that even if you click comment again, and again, and again... the comment is not published as the module does not refresh and show that you are logged into facebook (eg your fbook profile pic does not appear to the left of the comment text field. you need to manually refresh the page via your browser for the module to see you as logged in and let you comment.

------

 

jer,,,

Share this post


Link to post
Share on other sites

Great stuff!

But I also get the warning that the url is unreachable...

How did you manage to get rid of it?

Share this post


Link to post
Share on other sites

hey Nickless.

i did not get rif of it. it is random, sometimes it shows and others it does not and there seems to be no rhyme or reason to it all.

since it does not affect the functionality of the module i am not too worried.

 

saludos,

jer...

Share this post


Link to post
Share on other sites

@vekia - here's a bug under IE8

 

What can I do?

 

It's present under default theme also

 

i checked on ie8 and i havent got this issue :( can you provide me an url to your website? I will check it

Share this post


Link to post
Share on other sites

yes i checked it in IE, how it looks for me:

 

itnWYw2.png

Share this post


Link to post
Share on other sites

Vekia, could you check if you see problems with FB comments in this shop.

 

I continue to experience this issue on my shop and on this one also. I can't handle it.

 

http://www.domashnipotrebi.com/bg/%D0%BA%D0%B0%D1%81%D0%B5%D1%80%D0%BE%D0%BB%D0%B8/8-allu-flon-gourmet-%D0%BA%D0%B0%D1%81%D0%B5%D1%80%D0%BE%D0%BB%D0%B0-%D0%BA%D0%B5%D1%80%D0%B0%D0%BC%D0%B8%D1%87%D0%BD%D0%B0-16-%D1%81%D0%BC.html

Share this post


Link to post
Share on other sites

hello

 

i checked your page and comments form works well:

 

okL0oMS.png

 

 

i checked console log (chrome) and i've got:

 

Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

 

you should configure module in back office, put own app id (or delete actual value). Don't forget to setup administrator ID

Share this post


Link to post
Share on other sites

I'm still testing and I didn't added my account as moderator - now I added it and deleted the api.

 

It's strange because now I have it on 2 shops and both of them I experience the same issue with IE. Chrome and FF are fine. I asked friends to test and they also said it's appearing this way to them.

 

The problem is I tried playing with css and I could not fix it.

 

Problematic systems-

IE8

Windows XP

post-358365-0-59323300-1367707833_thumb.jpg

Share this post


Link to post
Share on other sites

im going to instal IE 8.0 ;-)

Share this post


Link to post
Share on other sites

Sorry to such pain in the.... but it doesn't seem to be IE8 (tabs and address bar are different), are you sure? :)

 

At the moment I don't have access to IE9 or 10 to test if it's only present in IE8. I have ~8% visitors with IE and it will be a problem for me.

Share this post


Link to post
Share on other sites

Thankyou for sharing

 

Theres some way to change comment letters color? I have a dark background and comments are black so theyre almost invisible.

I tried to change color theme from backoffice but isnt working, it do nothing.

Share this post


Link to post
Share on other sites

Thankyou for sharing

 

Theres some way to change comment letters color? I have a dark background and comments are black so theyre almost invisible.

I tried to change color theme from backoffice but isnt working, it do nothing.

 

thanks for the information. I updated this module, you can download it now (updated version)

 

regards

Share this post


Link to post
Share on other sites

thanks for the information. I updated this module, you can download it now (updated version)

 

regards

 

Amazing work! ure awesome!

Thank you very much, now works perfectly

Share this post


Link to post
Share on other sites

You're welcome :-)

im glad that i could help you in this case. Now module works better than before

Thanks community!

  • Like 1

Share this post


Link to post
Share on other sites

This module won't work for me. Whenever i enable it my whole page goes down with this error:

 

Fatal error: Smarty error: [in /home/mywebsite/domains/mywebsite.com/public_html/modules/facebookcomments/header.tpl line 1]: syntax error: unrecognized tag: $var['fcbc_appid'] (Smarty_Compiler.class.php, line 446) in /home/mywebsite/domains/mywebsite.com/public_html/tools/smarty/Smarty.class.php on line 1095

 

Using prestashop 1.3.9

 

Any ideas how to fix it?..

Edited by ufikas (see edit history)

Share this post


Link to post
Share on other sites

This module won't work for me. Whenever i enable it my whole page goes down with this error:

 

Fatal error: Smarty error: [in /home/mywebsite/domains/mywebsite.com/public_html/modules/facebookcomments/header.tpl line 1]: syntax error: unrecognized tag: $var['fcbc_appid'] (Smarty_Compiler.class.php, line 446) in /home/mywebsite/domains/mywebsite.com/public_html/tools/smarty/Smarty.class.php on line 1095

 

Using prestashop 1.3.9

 

Any ideas how to fix it?..

 

hello

 

thanks for information

 

you probably use old smarty version.

 

can you give me information about your smarty version?

Share this post


Link to post
Share on other sites

Smarty version 2.6.20.

 

hello

 

thanks for information

 

you probably use old smarty version.

 

can you give me information about your smarty version?

Share this post


Link to post
Share on other sites

Smarty version 2.6.20.

 

hello

 

module updated

 

i added support old smarty version, please download new version and install it again

 

should help

 

regards

  • Like 1

Share this post


Link to post
Share on other sites

Looks like working now! Thanks a lot!

 

hello

 

module updated

 

i added support old smarty version, please download new version and install it again

 

should help

 

regards

Share this post


Link to post
Share on other sites

Looks like working now! Thanks a lot!

 

you're welcome

 

many thanks for your attention, i really appreciate

Share this post


Link to post
Share on other sites

Actually it's a big thank you to you, for this module!

Although, this module works now on presta 1.3.9 and Smarty 2 it won't allow to moderate comments. I figured out, that this could be because of the output code it delivers:

 

<meta property="Array[\'fcbc_appid\']"/><meta property="Array[\'fcbc_admins\']"/><div id="fb-root"></div>

<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/Array[\'fcbc_lang\']/all.js#xfbml=1&appId=Array[\'fcbc_appid\']";

fjs.parentNode.insertBefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));</script>

 

I think those backslashes cause the problem...

 

 

you're welcome

 

many thanks for your attention, i really appreciate

Edited by ufikas (see edit history)

Share this post


Link to post
Share on other sites

thanks again :-)

 

i updated it, can you try now?

  • Like 1

Share this post


Link to post
Share on other sites

Sorry for the late reply, it's working now :)

 

thanks again :-)

 

i updated it, can you try now?

Share this post


Link to post
Share on other sites

Sorry for the late reply, it's working now :)

 

no problem, Thanks to you once again, i really appreciate your help and patience in this case

Share this post


Link to post
Share on other sites

Vekia jestem pod wielkim wrazeniem Twoich modulow :) Dzieki serdeczne za prace jaka wkladasz w spolecznosc Prestashop :) Pozdrawiam :)

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

this module support only one selected Facebook language?

is it possible to add multilanguage support?

 

and also - possible to add automatic dimensions of block (responsive)?

  • Like 1

Share this post


Link to post
Share on other sites

you can use own language code, you can define it in module configuration page

Share this post


Link to post
Share on other sites

i

you can use own language code, you can define it in module configuration page

i know it.

but question was regarding multilanguage support, i have shop with 3 language, but in module i can setup only 1 language.

 

and what about responsive dimensions ?

Share this post


Link to post
Share on other sites

responsive

everything depends on css, you can define own css styles with media queries for this addon. By default it isn't possible. It's better to create own css, i don't know how your theme looks like and how the responsiveness works there.

 

Multilanguage

Well, by default it isn't possible, but it's really easy to achieve. In the module .tpl file you have to add {if} condition for checking the page language version - then use correct language definition for facebook comments.

 

{if $this->context->cookie->id_lang == "1"}
EN_en
{/if}

 

{if $this->context->cookie->id_lang == "2"}
IT_it
{/if}

 

etc.

Share this post


Link to post
Share on other sites

responsive

everything depends on css, you can define own css styles with media queries for this addon. By default it isn't possible. It's better to create own css, i don't know how your theme looks like and how the responsiveness works there.

 

Multilanguage

Well, by default it isn't possible, but it's really easy to achieve. In the module .tpl file you have to add {if} condition for checking the page language version - then use correct language definition for facebook comments.

 

{if $this->context->cookie->id_lang == "1"}
EN_en
{/if}

 

{if $this->context->cookie->id_lang == "2"}
IT_it
{/if}

 

etc.

 

thank you :)

Share this post


Link to post
Share on other sites

let me know if you've got any questions related to this case, i will try to help :-)

Share this post


Link to post
Share on other sites

Hy, i've searched in all modules and themes translation and i can't find how to change the tab name., it says "Comments" and i want to translate it into romanian "Comentarii Facebook". I would like to keep the integrated module as well so i would name the standard one "Comentarii Magazin" (which translates "Shop Comments") and next to it i want to have "Comentarii Facebook".

I searched in tpl files also and i can't seem to find word "comments". I am missing something?

 

Later: Nevermind...solved it :). I just created a ro.php file and add it $_MODULE['<{facebookcomments}prestashop>tab_8413c683b4b27cc3f4dbd4c90329d8ba'] = 'Comentarii Facebook';

Edited by anukku (see edit history)

Share this post


Link to post
Share on other sites

hello, check this:

 

Micgin0.png

 

localization > translations

 

then "module" from drop down + click on flag you want to translate.

search for "facebookcomments", and you will get the same fields as I show above

Share this post


Link to post
Share on other sites

For some reason i don;t have that field in admin/modules translations. Very weird. I tested on my localhost because there is were i do my translations then export form localhost and import on live store. Anyway i solved it like i said by creating a ro.php and adding manually the line i mentioned before. Thanx for your reply and for this great module.

 

I have one question... is it posible to add a function to delete unwanted comments?

Edited by anukku (see edit history)

Share this post


Link to post
Share on other sites

function to remove comments is available in this plugin. You have to define ADMIN ID (this is your private profile ID number)

you can check own id here: http://graph.facebook.com/MyPresta

 

where the MyPresta is your private profile name.

 

you've got there something like:

{
  "id": "399888213399907",
(...)
}

 

put this number to the ADMIN ID field in module confiugaration page.

then you will be able to remove unwanted comments.

Share this post


Link to post
Share on other sites

Hmm now i notice i have a warning message that the link to the product is unaccesible.(on live store) I am not familiar with API. admin and app id. I must create first an account on facebook for the shop. Then create a page for it. And then generate somehow admin id and app id? Sorry for being such a noob :(

Edited by anukku (see edit history)

Share this post


Link to post
Share on other sites

maybe your store is under maintenance mode? or maybe you're on localhost?

if so - this is normal, because facebook can get access to the page where you've got comments

Share this post


Link to post
Share on other sites

I am on live and i was on mentenance mode but i turned off mentenance and the message error did not go away. But after a module reset plus turn on force compile it solved my problem. Thank mate. I owe you big time.

Share this post


Link to post
Share on other sites

you're welcome B)

 

and here is an answer for your questions related to the api:

 

I am not familiar with API. admin and app id. I must create first an account on facebook for the shop. Then create a page for it. And then generate somehow admin id and app id? Sorry for being such a noob :(

 

well, it isn't necessary to have own fanpage. All you have to do is to create own facebook profile (private profile account), then you can get own private profile ID - put it to the "admin ID" field.

 

you don't have to create own app on facebook - it isn't necessary. Just fill the admin ID field with your private profile ID.

Share this post


Link to post
Share on other sites

I have one more question. There is no option to be notified on facebook when a new comment is added with this module? I,ve commented some products and i have no notification on facebook.

Share this post


Link to post
Share on other sites

unfortunately this is how facebook comments works (it not depends on me, this is facebook app, not mine)

Share this post


Link to post
Share on other sites

Thank you for sharing this addon. Installation and style integration is a breeze. However, I do not know how I can monitor the comments and how to set up comment notification. Could you please share this as well?

Share this post


Link to post
Share on other sites

you configured also fields with APP ID / Administrator ID ?

it's necessary to manage the comments in bulk.

Share this post


Link to post
Share on other sites

version 1.3.3 released!

 

new features:

- automatic updates checker

 

fixed

- notification issue in back office module configuration page

Share this post


Link to post
Share on other sites

Hi Vekia,

 

Even after I added facebook ID the module won't display moderation settings, can you help me?

Share this post


Link to post
Share on other sites

please share url to your website, i will inspect code of your website.

Share this post


Link to post
Share on other sites

hello

 

yes i've noticed that all available comment plugins just disappeared, i think that facebook changed something in their core.

i'm checking it right now

Share this post


Link to post
Share on other sites

hello

 

yes i've noticed that all available comment plugins just disappeared, i think that facebook changed something in their core.

i'm checking it right now

 

Have the same issue. Looking forward for a possible solution :)

Share this post


Link to post
Share on other sites

it's related only to comments located in "tab" (if you use product footer comments works well)

i checked everything and it seems like this is issue on facebook side (i reported bug)

Share this post


Link to post
Share on other sites

version 1.3.5 released! problems with disappearing comments definitely fixed!

  • Like 1

Share this post


Link to post
Share on other sites

you mean that you removed comment, and comments count  still shows old comment number?

Share this post


Link to post
Share on other sites

you mean that you removed comment, and comments count  still shows old comment number?

 

Yes, exactly.

Share this post


Link to post
Share on other sites

unfortunately, we can't do anything with this :(

stuff like comments / counter are stored on facebook side.

Share this post


Link to post
Share on other sites

Hello! How to translante this module to pt_BR language (Brazil portuguense)? I tryed to change language code to pt_BR, br, pt.... and it not translated to BRASIL language.

Share this post


Link to post
Share on other sites

hello

 

you use APP ID in back office? if so, please remove it. and let me know if this helps

Share this post


Link to post
Share on other sites

hello

 

you use APP ID in back office? if so, please remove it. and let me know if this helps

Hello Vekia! Thanks for reply. I noticed that the my country language code is pt_BR  and I was set to pt-BR, then fix to pt_BR, cleaned App ID and everything worked fine, I now only try css. Thank you.

Share this post


Link to post
Share on other sites

that's correct :)

thank you for information that it works and how you solved it, it will be helpful for other merchants here :)

with regards,

Milos

Share this post


Link to post
Share on other sites

Here the module apparently installed correctly, but I can not post any comment.

When I press the button to comment on, nothing happens. And the comment is not sent.

I need to configure anything else?

Share this post


Link to post
Share on other sites

Here the module apparently installed correctly, but I can not post any comment.

 

When I press the button to comment on, nothing happens. And the comment is not sent.

 

I need to configure anything else?

 

The module is perfect.

 

My problem was that my domain (URL) is not accepted by facebook, the error was:

 

App Domains: should not contain protocol information.

 

App Domains: is not a valid domain.

Share this post


Link to post
Share on other sites

in module configuration you can specify app id, use valid app id there (create app for your domain and use app id there)

Share this post


Link to post
Share on other sites

How To Fix :

This due to new Open Graph update recently, this update impact on most importation function :

 

- Like Button - On product page or any sub-directory - just use facebook.com/FullURL for like button, other wise "confirm" link will show up 

- Commenting - You need to create app in order to get the facebook app_id due to page_id no longer a valid property for Open Graph.

 

Solution for both issue is simple, just create app for better Open Graph result if you wanted to.

 

Vekia done great job for this module. Thank DUDE  B)  correct me if i'm wrong.

Share this post


Link to post
Share on other sites

Hi Vekia

Thank you for the FB module, it is cool. I have just installed it, activated and it is working apparently without doing nothing for myself. Must I have to do something more? I have not found instructions.

Share this post


Link to post
Share on other sites

hello

you don't have to do anything, basic installation will work well.

if you want to moderate comments, you have to use own facebook profile id and remove app id field (or just create own app of facebook but it's a bit complicated)

 

if you need any help, paste url, and just let me know ;)

Share this post


Link to post
Share on other sites

installed, checked, and everything is fine.

example: https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fdemo.mypresta.eu%2Fen%2F1-ipod-nano.html

 

i don't know what kind of problem you've got exactly, but it's not related to module.

Double check fb debug https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fdemo.mypresta.eu%2Fen%2F1-ipod-nano.html

 

Status show : 

 Errors That Must Be Fixed

Share this post


Link to post
Share on other sites