Social share images not displaying for dynamic pages

Until very recently, the social share images worked on dynamic pages. Now they do not.

When testing dynamic pages on the LinkedIn post inspector, it returns the message: “Add an og:image tag to the page to have control over the content’s image on LinkedIn.”

So apparently the wix dynamic pages no longer have og:images.

Static pages continue to work fine.

Has anyone else encountered this, and is there a solution?

1 Like

I have tried solving this issue using WixRouterResponse ( https://www.wix.com/corvid/reference/wix-router.WixRouterResponse.html ) but am not sure how to implement it.

Not being knowledgeable about this, I tried simply pasting code the one below into my dynamic page, but this doesn’t seem to work. Can someone help me with this?

export function myRouter_Router(request) {

let headOptions = {
“title”: “A page title”,
“description”: “A page description”,
“keywords”: “wix code example”,
“noIndex”: true ,
“metaTags”: {
“copyright”: “Wix.com”,
“Classification”: “Example”,
“og:title”: “The Rock”,
“og:image”: “http://ia.media-imdb.com/rock.jpg
}
};

let response.head = headOptions;

}

Replying to myself again, in case it is helpful to other users. I spoke with tech support at wix and they were quite helpful. Here are the important points:

  • The site-wide social share image no longer works on dynamic pages.
  • Instead, for dynamic pages go to settings, google seo, and add the social image there from your database field.
  • Note that although I had previously tried that, I had still run into problems. At least some images uploaded by my users were, for some reason, not accepted by the social sites.