Facebook Post with Image

Chad Donnick asked on April 13, 2020 20:01

Has anyone successfully implemented a custom solution that extends the Kentico out-of-the-box Facebook post functionality to include an image?

When creating a new Facebook post (Social & Community > Facebook > Posts), I have everything set up so the basic content post is working properly. The content being posted is just text (no links). I'm trying to find a way to add an image to the post.

This site is using version 12 portal engine.

Thank you.

Correct Answer

Brenden Kehren answered on April 13, 2020 20:20

This is not about the OOTB Kentico functionality with Facebook. It's about the content available on the page being rendered. What I mean is implementing the OpenGraph (OG) tags properly on your post. Check this DevNet question out for more details.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Chad Donnick answered on April 19, 2020 20:49

Thank you for your response. If I understand correctly, the scenario for the OG tags solutions would depend on the Facebook post having a URL in it. The image would pull from the URL based on the OG image.

However, what if the post doesn't have a URL? That's the case for the scenario I'm working with. The client makes posts without URLs in them, but would like to attach an image.

I do think it's silly that they want to do this through Kentico when they are already doing it directly on Facebook, but they have their reasons for asking. It seems like it may be a big undertaking for not a lot of value.

Thank you.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 19, 2020 21:19

No, the Facebook post doesn't need a URL in it. You simply take the values the user entered in the Form tab of the post or the article and populate the OG tags dynamically. Then when the post publishes to Facebook, it finds the OG tags and their values and automatically displays the preview and image without any additional interaction from the end user. There is no extra work whatsoever unless you want to create extra fields for each social media channel (which isn't specifically needed).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.