OG Meta tags


#1

On a blogpost detail page, I have a couple of share buttons. In the head section I have the right meta tags in place. However. When I click on, for example, the Facebook button, I indeed go to facebook, and I'm able to share the article but not with the right title and image. Instead the title and image from the index page are displayed. When I click on the link I go to the right page though. What am I doing wrong?

Thnak you in advance


#2

Hard to say without looking at the actual source. Can you post a link to a detail page?


#3

@ScallioXTX Thanks a lot for the reply. This is a link to the page. Not sure what I'm doing wrong?

Thank you in advance


#4

Cool, I'll check later when I'm on my laptop. Checking stuff like this is hard to do on a phone.


#5

@ScallioXTX Thanks a lot


#6

Okay, so I ran it through the facebook opengraph debugger (see https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fflying-paradise.com%2Fblog_posts%2Fpost%2F2) and the problem is there is a canonical URL in your HTML (<link rel="canonical">) that doesn't resolve well and it's using the information from there.

HTH


#7

@ScallioXTX. Thank you for this info. How is that possible you think? Because when I look in the source the canonical ia ok. How can I solve this?


#8

Have you clicked the canonical? It's not ok :slight_smile:


#9

@ScallioXTX I just saw it :banghead: I just added a SSL certificate to the domain i only forgot to adjust the canonical :(. I also used the title instead of the id. Thank you very much


#10

On a side note, I see you have a couple of twitter tags there too, but are missing this one.


#11

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.