Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow meta tags to be seen by Facebook & Twitter scraper #181

Closed
RichardJECooke opened this issue Oct 4, 2016 · 4 comments
Closed

Allow meta tags to be seen by Facebook & Twitter scraper #181

RichardJECooke opened this issue Oct 4, 2016 · 4 comments

Comments

@RichardJECooke
Copy link

RichardJECooke commented Oct 4, 2016

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: #26)

@cwelch5
Copy link
Contributor

cwelch5 commented Oct 4, 2016

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.

@cwelch5 cwelch5 closed this as completed Oct 4, 2016
@jotto
Copy link

jotto commented Oct 8, 2016

@RichardJECooke @cwelch5 I had this problem (social media sharing not picking up the tags) and just launched https://headless-render-api.com/ to solve it

@cjimmy
Copy link

cjimmy commented Oct 27, 2017

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

@ademidun
Copy link

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

Thanks @cjimmy, here is the specific comment: #26 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants