Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Is there a way that a blog article can be automatically posted to the clients Facebook page, I found this link https://docs.couchcms.com/concepts/rss-feeds.html but unsure if will do what is required

Thank you in advance

UPDATE: I have created the rss feed using the following coding, I just need bit of help with getting it to post to Facebook automatically when new articles are published on the blog

Code: Select all
<?php require_once( 'cms/cms.php' ); ?>
<cms:content_type 'text/xml' /><cms:concat '<' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />
<rss version="2.0">
  <channel>
    <title>Blog</title>
    <link><cms:show k_site_link /></link>
    <description>Latest news from Site</description>
    <language>en-us</language>
    <pubDate><cms:date format='D, d M Y H:i:s' gmt='1'/> GMT</pubDate>
    <generator>Couch CMS</generator>

    <cms:pages masterpage='blog.php' limit="10">
    <item>
        <title><cms:show k_page_title /></title>
        <link><cms:show k_page_link /></link>
        <description>
            <cms:html_encode>
                <cms:excerptHTML><cms:show blog_content /></cms:excerptHTML>         
            </cms:html_encode>
        </description>

        <pubDate><cms:date k_page_date format='D, d M Y H:i:s' gmt='1'/> GMT</pubDate>
    </item>
    </cms:pages>
</channel>
</rss>
<?php COUCH::invoke(); ?>
UPDATE: I have managed to get it working using the rss feed from the link I provided above and using IFTTT https://ifttt.com/discover and their service called rss to facebook page and is free to use
2 posts Page 1 of 1
cron