Automatically posting GooglePlus articles to Twitter
By Leo Gaggl
I have switched most of my Social Media postings to Google+ over the last year. Despite popular opinion being that Google+ is some ‘ghost town’, I find G+ the most useful environment for my particular needs & interests (specially since the introduction of groups). It has in my experience a vastly better signal-to-noise than other social media in particular Facebook.
However I would still like to feed postings through to my Twitter stream. Unfortunately Google has (stupidly / purposely / nastily) not included RSS support to make this possible without much work. There are a few publicly accessibly services out there, but they generally are either not updated or tend to fail very frequently as they hit the API Access limits as soon as they get a few users on their services.
To achieve this I have created a PHP script utilising the Google API Client to convert the public activities to a standard RSS feed. The code is available on GitHub. I used to use a script by by Michael Mahemoff (https://plus.google.com/106413090159067280619/posts/8NE3cFi4cB6) – thank you ! The main reasons for needing to change were IFTTT having issues with the initial script output (not valid RSS and illegal characters).
Create API Project
- Go to https://cloud.google.com/console/
- Create a project
- Go to ‘APIs & auth’ –> ‘APIs’ and turn “Google+ API” on (see Screenshot below)
- Go to ‘APIs & auth’ –> ‘APIs’ and create a ‘Public API access’ key (see Screenshot below)
- Copy the API Key for the next step
Setting up the RSS Feed
- Copy files from Github repository to your website (either by downloading the ZIP file or cloning the repository
- Change your Google User ID and your API Key (from the previous step) in gplus2rss.php
- Test the feed on your YOURWEBSITE/gplus2rss.php (and copy the URL for the next step)
You can then use the standard IFTTT RSS Feed trigger to post to a Twitter Channel to automatically update Twitter anytime you post to Google+.
Setting up IFTT
- Create a new IFTTT recipe here: https://ifttt.com/myrecipes/personal/new
- Choose the ‘Feed’ trigger
- Choose the ‘New Item’ to trigger the recipe whenever a new item appears in your GPlus feed
- Paste your feed link and click on ‘Create Trigger’
- Click on the ‘that’ link to create the action
- Paste your feed link and click on ‘Create Trigger’
- Choose ‘Twitter’ icon and choose ‘Create new Tweet’ as the action
- Paste your feed link and click on ‘Create Trigger’
- Choose the fields from the feed (see screenshot below)
- Finish off by clicking the ‘Create Recipe’ button