To post an article to a social channel when using the Drupal plug-in (versions 6, 7, and 8) you must publish from a task in the Drupal feed, plus the social channel.
In this article, you will learn how to publish in your Drupal feed and social channel.
Integrate your Drupal website under the Website, CMS & Feeds settings page. For more information on integrating your Drupal website, see Integrate your Drupal website. When the Drupal site is added, a feed channel is automatically created for publishing.
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 in the settings page, which is Drupal Test Site in the following example.
In the following example, a Quick Article post was created with an article selected from the Content Marketing Platform (CMP) and Drupal Test Feed 1 was selected to publish the article to.
Publishing an article to Facebook requires that content to have a canonical link, so select a Facebook channel in the task for publishing along with the feed channel.
Click Publish. The post publishes to the feed channel. The Facebook channel shows pending publishing as it waits for the article content to be updated with the canonical link.
To ingest the published article from our feed to the Drupal site, copy the link under Feed URL which 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 on your Drupal site.
The following image shows that the article was successfully published through the CMP.
The following image shows the published article on your Drupal website.
Return to your task page where the pending Facebook channel content was published.
Publishing in your Drupal feed and social channel has the following benefits:
- No need for the user to visit the article after publishing.
- No need for figuring out the regex for the website URL pattern.
- Near real-time, because our API service is called as soon as there is a new publish.
Since there are many bots that ingest content from various sites, the API service may be hit with many different website URLs for the same article. In order to prevent updating the article with wrong canonical links, the client needs to add the CMS base website URL as is in the CMP Settings page under the Website, CMS & Feeds section.