manuel-schoebel / ms-seo

A seo helper package for meteor.js
198 stars 55 forks source link

Facebook ignore my og tags. #75

Closed Ethaan closed 6 months ago

Ethaan commented 9 years ago

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!

maksimkurb commented 9 years ago

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

rafadorado commented 8 years ago

:+1: Same problem here.

kevohagan commented 8 years ago

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

Ethaan commented 8 years ago

Using this package with Prerender works great

rafadorado commented 8 years ago

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()){