Delphi Handbooks Collection


Delphi XE Handbook


Delphi 2010 Handbook


April 7, 2009

Twittering Blog Posts

I'm implementing blog-to-twitter support, this is an experimental post.

I'm implementing blog-to-twitter support in my blog, that is the ability to surface automatically on twitter the title and url of every post in my blog. As I have twitter to facebook integration installed, this will also be forwards to my facebook account. 

Not sure if this would work, as this is an experimental post. Also, I might have to experiment with an URL shortening service, as http://blog.marcocantu.com/blog is quite long for a prefix to the actual link. My blog is powered by a custom scripting language we call GXI (the last two letters stand for 'Xml Interpreter'), so all I had to do was to add an HTTP call to the script posting to the blog, pointing to http://twitter.com/statuses/update.xml and providing a proper status string.

If this works, next I'll do the opposite, that is add my tweets to my blog, both as a blog post with a weekly summary of my tweets and by displaying the last tweets on the blog home page. Ready, set , go.

 





 

3 Comments

Twittering Blog Posts 

 Thank you for this useful info
Comment by Taha on April 7, 23:54

Twittering Blog Posts 

If post your tweets on your blog, hopefully you won't
get yourself caught in a non-ending loop as your
tweets are posted and re-tweeted and re-posted and so on.
Comment by dmillam on April 8, 16:58

Twittering Blog Posts 

Why limit your blog's exposure to only twitter users,
and only those following you?

You could get a friendfeed account and just add your
blog and twitter as services. Then in your friendfeed
account preferences, just tell it what to send to
twitter and how you want it sent.

It will post all of your blog posts to twitter, title
and shortened url, using friendfeed's own ff.im service.

It will also put your content on friendfeed, where
there is much in the way of discussions and activity.
And many friendfeed users have twitter accounts and
anything they mark as "like" or that they comment on
gets pushed to their twitter account, meaning your
posts have the potential of being announced in not
just your twitter account but also those that like
your content. (now you see why I suggest you do this,
it's not just to make things easier)

And if you add MediaRSS support to your feed, it can
even include thumbnails of the first image in your
posts or even audio podcasts on friendfeed.

If you want to see an example of this in action, take
a look at the DonationCoder.com accounts on both
Twitter and Friendfeed (I set up both for them):

Twitter: http://twitter.com/donationcoder
Friendfeed: http://friendfeed.com/donationcoder

(use custom feed option and not blog feed, when you
add the service to get the excerpts in friendfeed,
like they have)

By the way...

I already have your blog feed added to the very tiny
Delphi room I set up on friendfeed (that's how I
spotted this post), but that shouldn't stop you from
making your own account there and using it to send
things to twitter and watching/participating in the
discussions that could occur with your posts, on
friendfeed.

http://friendfeed.com/rooms/delphi
Comment by app103 [http://cranialsoup.blogspot.com] on April 9, 11:01


Post Your Comment

Click here for posting your feedback to this blog.

There are currently 0 pending (unapproved) messages.