score:3

Accepted answer

The annswer I implemented is the following. Assume the Facebook URL is

https://www.facebook.com/sharer.php?u=https:example.com?imageurl=${this.state.imageUrl}}

You can append the dynamic image URL to the imageurl attribute and facebook's crawlers will go to https:example.com/imageurl=https://imageurl.url.com. Then, you must extract the query parameters and append the imageurl-URI, and finally return it from getInitialProps if you are using NEXT JS.

Whatever the extract URI from imageurl can me added to the meta og:image tag.


Related Query

More Query from same tag