how to support google and social media schema of my main domain which redirect to language [closed]

I have my main domain example.com but if any one go to example.com will be dinamcly redirect to prefferd language like example.com/en for english example.com/fr for french

now my problem with seo my main domain example if i past the link with out language the domain have no markups or meta title, discription etc.. whay should i do about that i want if some one add the domain link in facebook, twitter or in google to have title, discription and logo image, favico. i’m using flask