You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I managed to adapt this boilerplate code for my project. Now I need to support dynamic meta tags for some routes. These components receive the meta tags using an API call to the server. Actually meta tags are set and viewable via inspecting the browser. But Facebook sharing debugger only reads the static meta tags.
<Helmet>
<title>{this.state.firstName+' '+this.state.lastName}</title>
<meta name="og:description" content={this.state.description+" this is my profile"} />
<meta property="og:image" content={"/images/share/home page share.jpeg"}
</Helmet>
state values are set by an API call inside the component. In the above example og:image is set as it is static. og:description only has static portion after scraped by facebook sharing debugger. Am I missing some step? data to be set meta tags are loaded in compnentWillMount life cycle.
The text was updated successfully, but these errors were encountered:
So far I managed to adapt this boilerplate code for my project. Now I need to support dynamic meta tags for some routes. These components receive the meta tags using an API call to the server. Actually meta tags are set and viewable via inspecting the browser. But Facebook sharing debugger only reads the static meta tags.
state values are set by an API call inside the component. In the above example
og:image
is set as it is static.og:description
only has static portion after scraped byfacebook sharing debugger
. Am I missing some step? data to be set meta tags are loaded incompnentWillMount
life cycle.The text was updated successfully, but these errors were encountered: