Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook share dynamic content #45

Closed
jillztom opened this issue May 9, 2017 · 5 comments
Closed

Facebook share dynamic content #45

jillztom opened this issue May 9, 2017 · 5 comments

Comments

@jillztom
Copy link

jillztom commented May 9, 2017

I'm trying to share a dynamic content that I fetch from a REST API in my SPA. Now, I don't think facebook is fetching that title, description and image when we share the link. Is there any option for this?

@ktquez
Copy link
Owner

ktquez commented May 10, 2017

At moment only Google support dynamic data in applications SPA.
Just using SSR (server side rendering), it's working with any social media and search mechanism, so it is recommended for SEO.

@jillztom
Copy link
Author

So, something like nuxtjs would be the solution?

@tbcinteractive
Copy link

Nuxt.js (...vue-meta) is your best option, that way you can fetch the dynamic data in the server side and populate the head tags with it, before the actual components/app are render/init . Crawlers don't really wait for your app to load + fetch the data. I recently had a project that required some SEO integration (WP-REST API/Yoast + Vue --vue-head/no ssr--), ended up having to conditionally (if crawler) render some data in the server side (php) for it to comfortably work.

@ktquez
Copy link
Owner

ktquez commented May 10, 2017

@jillztom
Yeap!

Nuxt.js uses the vue-meta and so far it's the best approach for SEO.

As @mateomrqz commented above.

@ktquez ktquez closed this as completed May 11, 2017
@maziarz
Copy link

maziarz commented Oct 22, 2017

I am running into a similar problem. My SEO meta tags are dynamically added, and never fetched by Facebook. My site is hosted on a CDN. Whats the best way to solve this? Can i block the rendering of the page until the head has been populated with the SEO tags?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants