two9seven
I am able to add meta tags to the head of the index. They end up at the end of the head section. I've set up OG tags for data derived from each page. I have a page of posters and then a details page which I want show different titles for. Why do you think the Facebook crawler is not seeing the OG tags. Heres my details page: `<!-- @license Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../bower_components/plastr-poster/plastr-poster.html"> <link rel="import" href="../bower_components/polymerfire/firebase-document.html"> <link rel="import" href="../bower_components/app-metadata/app-metadata.html"> <link rel="import" href="shared-styles.html"> <dom-module id="my-details"> <template> <style include="shared-styles"> :host { display: block; } </style> <app-route route="{{route}}" pattern="/:poster_id" data="{{routeData}}" tail="{{subroute}}"> </app-route> <firebase-document id="firebaseDoc" path="/posters/[[routeData.poster_id]]" data="{{poster}}"> </firebase-document> <app-metadata></app-metadata> <div class="poster_board"> <a href="./[[routeData.poster_id]]"> <plastr-poster id="poster" name="[[poster.name]]" location=[[poster.location]] poster="[[poster.poster]]" date="[[poster.date]]"> </plastr-poster> </a> </div> </template> ` ` <script> Polymer({ is: 'my-details', ready: function() { }, attached: function() { // this will create the singleton element if it has not been created yet Polymer.AppMetadata.requestAvailability(); }, properties: { prop1: { type: String, value: 'plastr-app', }, }, observers: ['_fireMetadataEvent(poster, routeData)'], _fireMetadataEvent: function(poster, routeData) { if (poster) { this.fire('app-metadata', { "description": poster.name, "keywords": 'events, posters, local, music, dance, art', "og:title": "plastrr", "og:description": poster.name, "og:image":poster.poster, "og:url": "https://plastrr-baa70.firebaseapp.com/details/" + routeData.poster_id, "twitter:card":"", }); } } }); </script>`