Open Graph Facebook

Asked

Viewed 83 times

0

I created the following Open Graph tags to share pages of a website:

<meta property="og:type" content="article">
<meta property="og:title" content="Tranzao">
<meta property="og:site_name" content="BrainStorm">
<meta property="og:url" content="nome do site">
<meta property="og:image" content="https://www.google.pt/url?sa=i&rct=j&q=&esrc=s&source=images&cd=&cad=rja&uact=8&ved=0ahUKEwj_67mx0OLTAhVM6xoKHT5XADYQjRwIBw&url=https%3A%2F%2Fwww.mensagenscomamor.com%2Fimagens-de-deus&psig=AFQjCNFNZ_33-_diZiOY1CckXHoXO6Huzw&ust=1494412997941849">
<meta property="article:author" content="Romeu">

The share button even works, however no image appears. The only thing that is correct is the name of the site.

I used the Facebook Bugger tool and there appear several errors, for example:

The 'og:type' Property is required, but not gift

However this should not appear, because I already have a goal property defined, as shown above.

From what I noticed in debuger he does not catch any tag, so it must be some mistake, but I do not know where. I have also put prefix og: http://ogp.me/ns# in the head, but nothing, it’s all the same.

  • Hello Romeo, all right? So the tag og:image is not an image. When trying to open it tries to direct me to a website. You could add the url of the Debugger to see?

  • https://developers.facebook.com/tools/debug/sharing/? q=http%3A%2F%2Fbraincast.azurewebsites.net%2FPensamento%2FDetails%3FpensamentoId%3D1 Here is the url of Debugger. Thanks for your help. I’ve followed different approaches but the result is always the same.

1 answer

0

I did, but...

I installed this package in my project: Skybrud.Opengraph, then just follow what the documentation says, it is not complicated.

However this did not work at first. Went to the Facebook Bugger and gave me the same mistakes, minutes later I tried again, I did not touch the code, and to my surprise it worked.

I hope this helps someone else.

Browser other questions tagged

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