Search code examples
vue.jsfacebook-debugger

How to fix facebook links preview for vue js links?


When I try (for testing) to post a link from my vue.js project in my facebook page, the link preview section does not work as expected although I've added the needed <meta /> facebook tags.

Here is an example of the result: enter image description here

How could it be fixed? Thanks.


Solution

  • Facebook's crawler doesn't execute JavaScript. As such, it only sees what you'd see if you hit "view source" on the page - in the case of a Vue app, that's very little.

    You'll need to dig into server-side rendering of your components.