Reputation: 39
I created a php page and its content is loaded using jquery. Can I change the meta tags of the page based on the loaded content in order to show correct information when post the link in Facebook ?
I tried to change the meta tags using JavaScript, but because It is client side it makes no effect, always the ordinal meta tags of the page is being displayed in facebook
Upvotes: 0
Views: 168
Reputation: 6513
Robots do not execute active content (ajax requests). So it is not relevant how it can be done in javascript, because facebook (or other robots) only sees the page as it is generated by the server at first moment.
Upvotes: 1