django-seo-js icon indicating copy to clipboard operation
django-seo-js copied to clipboard

django-seo-js does not appear to work with Facebook

Open physicsai opened this issue 6 years ago • 2 comments

I have been trying to use django-seo-js and prerender.io to display a preview of my React SPA on Facebook. However, it appears that the Facebook crawler is not rerouted to prerender.io.

I have the following code in my setting.py file:

SEO_JS_USER_AGENTS = [
    "Googlebot",
    "Yahoo",
    "bingbot",
    "Badiu",
    "Ask Jeeves",
    "facebookexternalhit/1.1",
    "facebookexternalhit",
    "twitterbot"
]

physicsai avatar Aug 04 '19 06:08 physicsai

While previously I thought the Google crawler was working, it also appears not to work. So something is wrong with my middleware. I think my first post was premature.

physicsai avatar Aug 04 '19 07:08 physicsai

It seems there is a PR for this

Added Googlebot etc. user agent since they don't support escaped fragment anymore. #37

paribaker avatar Sep 26 '21 18:09 paribaker