• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

how to integrate facebook comment

phansontt

Chevereto Member
Hi,



I try to add facebook comment to the upsieutoc.com

the following is the code facebook provide me

<div class="fb-comments" data-href="http://upsieutoc.com" data-width="600" data-numposts="5" data-colorscheme="light"></div>



Please show me the code to get the current URL to replace http:///upsieutoc.com


I’ve tried

<?php show_image_viewer(); ?>

and

<?php echo get_image()["url_viewer”]; ?>



but it only show error: href URL is not properly formatted
 
Go to facebook, get the code and then go to your admin dashboard > Settings > External services and paste the code for "comments code". Boom, done.
 
Hi Rodolfo,
I dont think so. Because there is a field named "URL to comment on" -> it's return to the data-href="what is here"
If you place your site URL it will only comment on fix URL
if you remove data-href="http://upsieutoc.com" attribute, when view the image, it getting this notice
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.
 
@msbg Add this code at the end of facebook comment code in your dashboard. It works for me.

<script>document.write("<fb:comments data-href='" + window.location.href.split('/?')[0] + "' num-posts='5' colorscheme='light'></fb:comments>");</script>
 

Attachments

  • Untitled2.jpg
    Untitled2.jpg
    57.5 KB · Views: 22
Last edited:
Back
Top