Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Adding meta tag for Facebook sharing

Hi all!

Is there a way to add a meta tag like <meta property="og:image" content="..." /> to Dash app?


There’s no way to do this through Dash’s API. I would solve this by subclassing the Dash class and overriding the index method. Here’s an example of that that to add local CSS files you could adapt:

1 Like

In case anybody is directed here via Google like me - as explained in the documentation (see " Customizing Meta Tags" on, meta tags can now simply be passed as a dictionary when you create the app.