Hi Hervé,
the challenge here is that ochOpenGraph needs to find any Custom Field on the page AND have the logic to see if this is a field that can be used by Social Media platforms.
Now for the intro image and full text image (and the Custom Field image set for this purpose) is is okay as these fields are specially designed to hold images, but every other custom field is potentially not: there is no logic as to what that field holds (image, sound, vido, etc.) nor what custom field is displayed in what order on the page.
So if I was able to implement this, this is what basically would happen (depending on your PRIO setting in ochOpenGraph:
- check for Intro image
- check for Full image
- check for Text image (first image in the article text)
- check for Custom image
- check for Custom Field image
if none found, use the Fallback image
if no fallback image found use no image: by doing this The social Media platform will visit the shared page and will look for the best suitable image on the page.
So the default behavior that the Social Media platforms already have, is what you would want me to build in: in steps 1 to 6 doesn't give an image, then take an image from the page (set by whatever custom field).
So not sure what this will add other then what is currently done by the Social Media platforms already.
or I am missing your point, that is also possible