-
Notifications
You must be signed in to change notification settings - Fork 44
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
Meta tags & og are not detectable by facebook share #40
Comments
Are you using Angular Universal? |
I am using Angular 2 |
Sure but you will need to use server side rendering to be able to use metadata on Facebook. Angular is a client side application and as such Facebook's crawler can't see the metadata updates you are applying as they are carried out past the initial load of the page. https://angular.io/docs/ts/latest/guide/universal.html Hope that helps. |
@tombpain Do I have to migrate from Angular 2 to Angular Universal? Because I have a huge project running on Angular 2 with Meteor 1.5 now |
@tombpain how do i deploy an universal Angular project. |
ng2-meta primarily aims to serve tags to Google's crawler, which renders your site with Javascript enabled, and can pick up the tags set by Facebook's crawler, like Twitter, Whatsapp and most other social media crawlers, does not execute Javascript. You need to use server-side rendering (in the form of Angular universal) and/or prerendering in combination with ng2-meta to provide your meta tags to these crawlers |
I am using Angular 2 + Meteor 1.4 & I have successfully integrated this package and I can see the titles on my web pages.
But when I check my website url on Facebook Sharing Debugger i.e:
https://developers.facebook.com/tools/debug/sharing
It doesn't shows the page title or the image etc on facekook and it gives these errors:
Why is this so?
The text was updated successfully, but these errors were encountered: