Hi everyone,
I’m writing a blog and I would like my links to appear with images/descriptions when posted to FB and other social media sites. I familiarized myself with https://github.com/meteorhacks/meteor-ssr, https://github.com/kadirahq/flow-router, and https://github.com/meteorhacks/picker by @arunoda.
I understand we can use SSRendering and SSRouting to serve static versions of our page. When a regular user hits my page, the javascript app is served. I am assuming this will not suffice for facebook bots trying to read OG data because I would only be able to modify via javascript. So we need to serve facebook a different URL.
I was thinking of specifying the “_escaped_fragment_=” version of the URL (a server side route, which serves rendered HTML) in my tags instead of the regular URL. This way, when facebook hits my site to get OG data, it will see the meta data corresponding to the route and params in question. If the user wants to share my link to facebook, I’ll modify the url to be the current URL plus the “_escaped_fragment_=”, so they share the static link.
Is this the preferred way to do this, or is there a better way? If I did it this way, then the link shared to facebook would direct the users to the static link. Is there some agreed upon solution for handling dynamic data? Please no iron-router solutions, thanks!