Toni Michel Caubet
Toni Michel Caubet

Reputation: 20183

why is facebook not using the og:title tag?

its very frustrating

i have defined both tags, the default html one:

<title>Default title</title>

And aditionally, the opengraph one:

<meta property="og:title" content="Facebook custom title"/>

But facebook stills pulling the title from the regular title tag...

Can be seen/tested here

I don't think its a facebook caché issue because i first add the og tag and then tried to share it...

Any idea what am I missing?

Upvotes: 1

Views: 6417

Answers (2)

Mattias Wadman
Mattias Wadman

Reputation: 11425

The meta tags seams correct to me and they work fine in the debugger if I dump the HTTP response from your server and give it as response to the debugger when I run a dummy web server with netcat.

But if you take a look what the Facebook scraper get from your site you see that the open graph meta tags are gone. If I do the same with the response from your site using a dummy web server they appear.

Do your site conditionally output the open graph meta tags somehow or are they always included?

What I did:

$ nc -l -p 8000 > fbrequest

Debug http://myhost:8000 in Facebook debugger and dump request

$ vim fbrequest

Change request path to /nPromociones/producto/januarySupersale/jsp/C_Home.jsp?staticDomain=false and host header to es.solmelia.com

$ cat fbrequest | nc es.solmelia.com 80 > solmelia

Make fake Facebook scraper request and dump response

$ cat solmelia | nc -l -p 8000

Debug http://myhost:8000 in Facebook debugger again and it will show that the meta tags appear and are correct.

Upvotes: 0

字姓名
字姓名

Reputation: 436

debugger says your properties are inferred, that means that he was'n able to fetch them from your og metas. the reason for this may be invalid markup. try to place each of your og meta tags in different line and try to place a space before closing /> for valid XHTML

<meta property="og:title" content="Meliá - January Super Sales" />
<meta property="og:site_name" content="Meliá - January Super Sales" />
<meta property="og:description" content="Meliá - January Super Sales" />
<meta property="og:image" content="http://d2p65vgzoeytng.cloudfront.net/nPromociones/producto/januarySupersale/img/icoPromoCompartirFacebook.gif" />

and etc.

i'm not sure, but this may work.

Upvotes: 5

Related Questions