ms-seo icon indicating copy to clipboard operation
ms-seo copied to clipboard

Facebook ignore my og tags.

Open Ethaan opened this issue 9 years ago • 5 comments

Hi Manuel.

Im having some troubles to make facebook recognize my og tags.

screen shot 2015-10-25 at 1 17 20 pm

if you see the image the og is there.

but on facebooks it looks like this.

screen shot 2015-10-25 at 1 18 36 pm

is there something im missing?

This is how my SEO config looks.

SEO.set({
            title: dataToSeo.slug,
            rel_author: ownerUrlSocialAuthor,
            meta: {
              'description': dataToSeo.proposition
            }
            og: {
              'title': dataToSeo.slug,
              'description': dataToSeo.preposition,
              'image': url + query.url()
            },
            twitter: {
              'title': dataToSeo.slug,
              'description': dataToSeo.preposition,
              'image': url + query.url(),

            }
          });

NOTE Already try also with ?_escaped_fragment_= and it looks ok

Thanks!

Ethaan avatar Oct 25 '15 18:10 Ethaan

May be it can be done in fastrender way? We should wait for data and SEO to fetch/compute and only then return html page with meta tags already included

maksimkurb avatar Nov 12 '15 17:11 maksimkurb

:+1: Same problem here.

rafadorado avatar Feb 24 '16 11:02 rafadorado

@rafadorado this could be maybe a good alternative , i've been using it and its pretty smooth sailing : https://github.com/kadirahq/meteor-dochead

kevohagan avatar Feb 24 '16 16:02 kevohagan

Using this package with Prerender works great

Ethaan avatar Feb 24 '16 16:02 Ethaan

Thanks! I'll check your ideas, i just want time to migrate everything Flow Router!!

Anyway, I fixed it by waiting the subscription ready in the action of the route. this way Iron Router render the page when the model is loaded.

action: function(){ var subOffer = OfferSubs.subscribe('OfferFromSlug',offerSlug); if(subOffer.ready()){

rafadorado avatar Feb 24 '16 17:02 rafadorado