Open Graph and Meta tags

Asked

Viewed 45 times

0

For some reason, the facebook Developer does not recognize the meta tags of my site, he even states, that there are metatags on <body> and I define them right after the <title> in the <head> (I call them with a include in PHP). The code is like this:

<!doctype html>
<html lang="br">
<head>
<meta charset="utf-8">
<title>Rainbow 6: Club - By Players. For Players.</title>
AQUI ESTÁ A META TAG
<?php include("meta.php"); ?>

<noscript><?php echo $noscript; ?></noscript>
<link rel="icon" href="favicon.ico"/>
<link rel="stylesheet" href="css/home.css"/>
...outras tags
The meta.php file looks like this:

<meta name="description" content="descrição" />
<meta name="keywords" content="keys" />
<meta name="Copyright" content="...." />
<meta name="Title" content="...." />
<meta name="autor" content="...." />
<meta name="company" content="..." />
<meta name="Distribution" content="Global" />
<meta name="Language" content="Portuguese" />
 <!-- Facebook -->
<meta property="og:title" content="titulo">
<meta property="og:site_name" content="titulo">
<meta property="og:url" content="url do site">
<meta property="og:image" content="url de uma img com 1200x630">
<meta property="og:description" content="descrição">
<meta property="og:type" content="website">

I don’t understand why I made the mistake. Someone has been there so you can help me?

  • I realized that if I remove include and put the metatags on the page itself, Facebook recognizes it. But the problem is that there are about 30 pages, so....

  • Try changing the file extension you are doing include from . php to . html and take a test to see if it solves... it’s just an idea I don’t know if it will solve

  • I managed to solve saving the file without BLOOM

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.