Closed davidbauer closed 10 years ago
Should work with $('meta[property=og:title]').attr('content', 'new title');
, but somehow didn't when I tested it.
Could it be that this doesn't work because we dynamically build the site each time it is opened?
It should be possible to change the values of the meta tags. But I think it would be pointless in this case, as Facebook would request the pure html page from the server and wouldn’t get any of the information that is injected into the DOM by JavaScript later on.
I guess–in the long run–you’ll need to redesign the whole thing more in a “progressive enhancement” way with more stuff done on server side–at least as a fallback for js-incapable clients.
Sounds like fun ;-)
The following properties should be updated.
og:title
og:url
og:description