Skip to content

Broken ngMeta demo #16

Closed
Closed

Description

@yobre

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

Activity

  1. vinaygopinath commented on Sep 14, 2016

    @vinaygopinath
    Owner

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

  2. yobre commented on Sep 14, 2016

    @yobre
    Author

    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

  3. vinaygopinath commented on Sep 14, 2016

    @vinaygopinath
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions