Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6179159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:36:20+00:00 2026-05-24T00:36:20+00:00

OK I’m loading each pages and posts (WordPress) via ajax and it works great.

  • 0

OK I’m loading each pages and posts (WordPress) via ajax and it works great. I integrated the iframe Facebook Like Button in the page/post templates and it loads correctly when I load a page or a post.

My only problem it that when I load a page or post and I click on the Like button it is the Open Graph Tags of the main page (header.php via index.php) that are shown on Facebook and not the tags of the page or post I just loaded.

http://themes.visualise.ca/visualise

How can I adjust this? This is the php code for the post template that is being called via ajax:

<?php
/*
Template Name: Ajax Post Using Slug
*/
?>
<html lang="fr">
<head>
<meta charset=utf-8>
<meta property="og:title" content="Portfolio | par Gab Labelle, artisan numérique montréalais" />
<meta property="og:type" content="blog" />
<meta property="og:url" content="http://themes.visualise.ca/visualise/#portfolio" />
<meta property="og:image" content="<?php bloginfo('stylesheet_directory'); ?>/images/visualise.ca-logo2.png" />
<meta property="og:site_name" content="visualise.ca" />
<meta property="fb:admins" content="10150720967625327" />
<meta name="description" content="&#171; J'aime croire que ma force réside en ma capacité à trouver l'histoire simple qu'inspirent marques, produits et services et à la présenter de manière intelligible, créative et engageante. &#187;" />
</head>
<body>
...
<?php the_content(); ?>
...
<div id="fb-root"></div><script src="http://connect.facebook.net/fr_FR/all.js#appId=153423521399187&amp;xfbml=1"></script><fb:like href="http://themes.visualise.ca/visualise/#portfolio" send="true" layout="button_count" width="450" show_faces="false" font=""></fb:like>           
</div>
</body>
</html>

Many thanks for you time and help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:36:20+00:00Added an answer on May 24, 2026 at 12:36 am

    You need to specify the page URL you want to “Like” in your IFRAME code.

    …

    “In order for Facebook to grab your meta tags, it needs a unique URL for your content. You’re going to have to make a “non-AJAX” version of your landing pages with different URLs, and send that to Facebook as part of the Like button URL. It looks like clicking an item hits /visualise/ajax/ with a “slug” param for the content. You’ll want to probably do something like /visualise/viewslug?slug=[blah] and send that to Facebook. It would have the right meta tags and auto-open your AJAX window upon that URL loading.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.