Configure Open Graph properties

To configure Open Graph properties, perform the following:

  1. Open the static module whose content items you want to configure and in the right pane, click Custom Fields for <content type>.
    For dynamic modules, navigate to Administration » Module builder, click the module and, then, the content type.
    For pages, navigate to Pages grid, and in the right pane, click Custom fields.
  2. Create the following custom fields:
    • Type: Social media (OpenGraph), OpenGraph field: OpenGraph title.
    • Type: Social media (OpenGraph), OpenGraph field: OpenGraph description.
    • Type: Social media (OpenGraph), OpenGraph field: OpenGraph image.
    • Type: Social media (OpenGraph), OpenGraph field: OpenGraph video

      NOTE: When you create the fields, you can make them localizable. This way, you can display different content items for different language versions. For more information about creating custom fields, see Create custom fields.

  3. Create a new content item or page or edit an existing one.
    You will see the new fields.
  4. Fill out the Title for social media field.

    NOTE: If you do not fill it out, the OpenGraph title is automatically taken from the Title for search engines field. If this field does not exist or is empty, then the Title for social media field is populated with the content item's Title field.

  5. Fill out the Description field.

    RECOMMENDATION: To get an optimal display, we recommend setting the length of the Title field not longer than 70 symbols, and the length of the description field to be between 160 and 200 symbols.

    IMPORTANT: If you leave the Description for the OpenGraph field empty, Sitefinity CMS automatically fills it out with the content of the Description for search engines field.

    If this field does not exist or is empty, then Sitefinity CMS taks the value of the first field after the content of the content item, regardless of whether it is a long or short text field. 
    For example, if after the news item, you have a Summary field, the Description field will be populated with the content of the Summary field. For dynamic modules, you can use Modify the backend screens of a dynamic module to change the order of the fields.

  6. Use the Image selector or the Video selector to fill out the Image and Video fields.
  7. To display the content item in an Open Graph format, paste the link to the detailed page in a social network, for example.

RESULT: When you paste a link to the detailed page of a content item in a social network that supports Open Graph, your content item will be displayed with the title, description, and image or video that you specified above. The Open Graph meta fields are added in the <head> tag of the page that displays the detailed item.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?