I did 4 landing pages on a website http://www.getyogi.fr/ and a php script randomize the differents landing pages.
But my problem is to fix the open graph facebook. He returns: Could Not Follow Redirect Path - Using data from http://www.getyogi.fr/lp1/ because there was an error following the redirect path.
Here is my open graph HTML:
<meta property="og:title" content="Le yoga en ligne">
<meta property="og:site_name" content="GET YOGi">
<meta property="og:url" content="http://www.getyogi.fr/">
<meta property="og:description" content="GET YOGi est un site pour pratiquer le yoga en ligne et prendre soin de vous où et quand vous voulez. Depuis votre mobile, votre tablette ou votre ordinateur, des cours HD disponible 24H/24, 7 jours /7.">
<meta property="fb:app_id" content="677363099034751">
<meta property="og:type" content="website">
<meta property="og:image" content="http://www.getyogi.fr/lp1/img/yoga1.jpg">
Anyone could help me ?
The issue here is because of the URL you are using in your og:url
. You say that you have a piece of PHP which randomizes a landing page and then redirects the user to that page. Here is what is happening:
og:url
is https://your-url.com/ which is considered the canonical URL so the crawler then goes thereThere are a couple of options you can do here:
Option 1: on your landing pages have the og:url
be the URL of the landing page the user lands on.
Option 2: on the main URL have your randomizing PHP script ignore requests from the Facebook crawler which has a user agent of facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments