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

Broken ngMeta demo #16

Closed
yobre opened this Issue Sep 14, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@yobre

yobre commented Sep 14, 2016

schermata 2016-09-14 alle 10 33 14

Hi all,
i'm trying to test your demo site on facebook debugger page and doesn't work. It's normal?

I've tried to use yours module for my app but it gives me the same results. Any suggestion?
thanks

@vinaygopinath

This comment has been minimized.

Owner

vinaygopinath commented Sep 14, 2016

Please refer to the Support for other crawlers section of the README

@yobre

This comment has been minimized.

yobre commented Sep 14, 2016

Ok.
Now i understand.
But i've tried to post on G+ your demo site link and doesn't work. what am I doing wrong?

schermata 2016-09-14 alle 12 22 01

@vinaygopinath

This comment has been minimized.

Owner

vinaygopinath commented Sep 14, 2016

Google and Google+ don't use the same bot to index websites - Googlebot fetches the HTML, executes Javascript, waits till rendering is complete (during which Angular and ngMeta are loaded, and ngMeta creates the tags based on your route/state configuration) and then picks up the meta tag information from the page.

The bots of Google+, Facebook, Twitter and others simply fetch the HTML and, expecting the page to be static (either static HTML or pre-rendered server-side), grab the tags and values defined in elements. This is why Facebook sees the raw text "{{ngMeta.title}}", not "Example - Dynamic Tags | ngMeta - Customize meta tags from your controllers".

ngMeta, like any other Angular 1x SEO library, or indeed, Angular itself, is incapable of generating static HTML. ngMeta can only support crawler bots that execute Javascript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment