Shuvayatra / shuvayatra-pwa

Progressive Web App for Shuvayatra
0 stars 0 forks source link

Polymer SEO for search engines / dynamic meta tags for facebook crawler #29

Open isurajkc opened 7 years ago

isurajkc commented 7 years ago

@tyohan Search engines are not able to crawl pages for the web app. Facebook and Google are not able to crawl the contents of the page that are dynamically generated. Hence, sharing on facebook does not show respective title and description.

prashantsh commented 7 years ago

@tyohan do you have any suggestions on how this can be resolved?

tyohan commented 7 years ago

Let me try to find if we can do something about this

tyohan commented 7 years ago

@prashantsh so far there is no way to make single page app read directly by Facebook crawler. One thing that we can do is keep using AMP version as sharing URL because it's server rendered page. Currently it doesn't work with new API, need to fix that first and test.

prashantsh commented 7 years ago

@tyohan Do you mean we need to implement AMP in the current application. We haven't implemented AMP before so would be helpful if you could give few pointers on how this can be done.

tyohan commented 7 years ago

@prashantsh no need, you just need pointing the share url to AMP version. We already have it on https://amp.shuvayatra.org but it's doesn't work properly for now. I still working on updating our AMP site to work with new API. Will let you know once it ready so you can change the share url to AMP site.

tyohan commented 7 years ago

@prashantsh please update the share url to use AMP site. Now it works for example this post https://amp.shuvayatra.org/post/70 I have set some social media met tags as well so it should show the content preview on share.