React-helmet: Allow meta tags to be seen by Facebook & Twitter scraper

Created on 4 Oct 2016  路  4Comments  路  Source: nfl/react-helmet

My meta tags that I set with Helmet can be seen in the page inspector in my browser devtools, but not in the page source (because they're set dynamically in React obviously). So Facebook's share function doesn't see them if I share my page.

Does this mean Helmet (and any React meta tags) cannot be used for social media sharing? Is there a workaround?

(Our website is a React app separate to the server, not like this guy: https://github.com/nfl/react-helmet/issues/26)

Most helpful comment

@RichardJECooke @cwelch5 I had this problem (social media sharing not picking up the tags) and just launched https://www.prerender.cloud/ to solve it

All 4 comments

Hi @RichardJECooke, Helmet can only be used for social media sharing if used on the server. Because that is what the page scraper will see. If you are using client side only, you can still take advantage of all the great declarative organization in your document head that Helmet offers.

@RichardJECooke @cwelch5 I had this problem (social media sharing not picking up the tags) and just launched https://www.prerender.cloud/ to solve it

I wrote a brief summary of options, including @jotto's tool, back in #26

I wrote a brief summary of options, including @jotto's tool, back in #26

Thanks @cjimmy, here is the specific comment: https://github.com/nfl/react-helmet/issues/26#issuecomment-339128792

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bradbarrow picture bradbarrow  路  4Comments

aravind12345 picture aravind12345  路  5Comments

brianespinosa picture brianespinosa  路  3Comments

lxe picture lxe  路  5Comments

sneridagh picture sneridagh  路  4Comments