Hi, @lawmalroomcom. It sounds like you want to use Open Graph (OG) tags (specifically, the
og:image property) in the site HTML:
If so, this works at Netlify just like it does with any other service. If the OG tags are in the HTML, services that support OG tags will use them.
When I programmatically assemble a dynamic email and send it out, I also, at the same time, programmatically upload the image to my Netlify account via Github as well? The url in the email points to this Netlify hosted image I think.
What people see in email will depend on the HTML of the email itself. What people see on facebook when the URL is shared there is determined by the OG tag metadata.
About getting Facebook to show only the text and not the image for the shared URL, that is a question about Facebook and not Netlify. I don’t know the answer to that question but someone else here might. (To be clear, I’m saying that is a Facebook technical support question not a Netlify technical support question. The answer is determined by Facebook and is not controlled by Netlify.)
About the DNS question, yes, one custom domain can point to Netlify and a different subdomain can point to another service. This can be done with both DNS methods we support at Netlify. It works for both Netlify DNS and external DNS.
Also, reading between the lines, I think some of the question is: “Can the domain name in the
og:image tag URL differ from the sites URL?”
If so, the answer to that question is “yes” based on answer for the Stack Overflow topic below:
If there are other questions about this, please let us know.