share railway link in facebook
adiv2100
HOBBYOP

8 months ago

hello

i have problem in sharing railway link in facebook -facebook give warning of og and not display the link with image. i compare this to streamlit cloud in free plan and i had not this problem. so i understand it cause the way railway deployed my project. please i wait your answer - thanks.

$10 Bounty

4 Replies

brody
EMPLOYEE

8 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 8 months ago


amir-r1384
HOBBY

8 months ago

Could you specify what kind of app you're building? For example is it a React application, a nodejs server... ?


amir-r1384

Could you specify what kind of app you're building? For example is it a React application, a nodejs server... ?

adiv2100
HOBBYOP

8 months ago

hello

i have a real state app with streamlit. in streamlit cloud when i deployed the app it created open grapgh tags automaticly and i could share link of my site in facebook with image. when i deployed my app in railway it didnt creat open graph meta tags and i cant share my site in facebook - what can i do to fix that? thanks


kinghanzala
FREE

8 months ago

Railway just deploys your app, it doesn’t inject or modify meta tags. That means your app is now fully responsible for setting Open Graph (OG) tags — but Streamlit (by default) doesn’t support injecting custom HTML <meta> tags directly.

Deploy a reverse proxy like Nginx or Cloudflare Pages/Workers that serves a small HTML page with OG tags before redirecting to your Streamlit app.


adiv2100
HOBBYOP

8 months ago

hi, i have deployed index.html and json file with railway up(static page) and it success but i cant see a link to view in browser - it suppose to be index file redirect to my domain. how can i check this? thanks


Loading...