Lion789 Lion789 - 1 year ago 46
Node.js Question

Facebook OG not picking up nodejs - handlebars data?

I understand that since the data is dynamically loaded on the page with handlebars from nodejs that Facebook crawlers do not pick it up... however, how do I allow them to see what it is or send them an update or something...

This is my current facebook og example:

<meta property="og:description" content="{{project.description}}" />

And it shows text from the root url website instead, it was working in the past so not sure what happen that all of a sudden Facebook is not retrieving the data?

Here is a test link:

Answer Source

This is the current og:url tag: <meta property="og:url" content="" />

As you can see, it does not link to your current URL, so it will take the OG data from the URL specified in the og:url - which redirects to the root URL.

Change the og:url tag to the following: <meta property="og:url" content="" />