spences10/react-seo-component

Not working for facebook social cards

Closed this issue ยท 3 comments

When using the Facebook social debugger, the response code is a 404 and it does not fetch the og:image, og:title, etc.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy the site, copy url
  2. Go to the debugger (link above), paste url and click "debug"
  3. See error

Expected behavior
It should render the card correctly, as it does with twitter

Screenshots
Polo issue

Additional context
Here's the link to my dummy site: https://polo-dev.netlify.app/

Hey @MartinSchere thanks for taking an interest in the project ๐Ÿ‘

I'll be honest I personally don't use FB so have never tested it for that, have you tried using it without the FB debugger?

I know sometimes with the Twitter Debugger it can give inconsistent results, that's mainly because I use a serverless function to generate the image.

If that's not the case and it flat out doesn't work I'm happy to listen to any suggestions you have and open to PRs ๐Ÿ™

Thanks again!

My error was very dumb, I forgot to use the plugin for react-helmet so it wasn't generating anything during pre-render

Yeah, it is in the docs, I did think about adding it as a peer dep but my opinion was that everyone would be using it already ๐Ÿ˜‚

Ok, so cool to close the issue?