Publish to Drupal feed and social channel

  • Updated

To post an article to a social channel using the Drupal plug-in (versions 6, 7, and 8), you must publish it from a task in the Drupal feed plus the social channel.

This article will teach you how to publish in your Drupal feed and social channel.

Integrate your Drupal website under the Website, CMS & Feeds settings page. For information on integrating your Drupal website, see Integrate your Drupal website. A feed channel is automatically created for publishing when you add the Drupal site.


When publishing content, the feed displays in the Publishing & Share section under the Add Channel drop-down on the Publishing tab of a task. The feed name displays the title you set on the settings page, which is Drupal Test Site, in the following example.

Screen Shot 2020-01-15 at 7.46.47 AM.png

In the following example, someone created a Quick Article post with an article selected from Optimizely Content Marketing Platform (CMP), and selected Drupal Test Feed 1 to publish the article.

Publishing an article to Facebook requires that the content have a canonical link, so select a Facebook channel along with the feed channel in the task for publishing.

Click Publish, which publishes the post to the feed channel. The Facebook channel shows pending publishing as it waits to update the article content with the canonical link.

To ingest the published article from our feed to the Drupal site, copy the link under the Feed URL that is exposed when you click Export Feed. (You can find this under Website, CMS & Feeds, where you set up your Drupal integration.)

Add that link to your Drupal site.


The following image shows that CMP published the article.

The following image shows the published article on your Drupal website.

Screen Shot 2020-01-15 at 7.23.59 AM.png

Return to your task page, where the pending Facebook channel content was published.

Screen Shot 2020-01-15 at 7.22.15 AM.png

Publishing in your Drupal feed and social channel has the following benefits:

  • There is no need for the user to visit the article after publishing.
  • There is no need to figure out the regex for the website URL pattern.
  • It occurs near real-time because CMP calls the API service when there is a publishing event.

Because many bots ingest content from various sites, many website URLs for the same article can affect the API service. To prevent updating the article with wrong canonical links, the client must add the CMS base website URL as it is on the CMP Settings page under the Website, CMS & Feeds section.