Hein (fub) wrote,

  • Mood:
It seems like I have to retract my previous post -- now I'm using something else to post to Twitter from the kliktikfix website.

After the posting to Twitter was done, I proposed to include a thumbnail of the photo in both the RSS feed and the Twitter post. Resizing images with PHP is not much of a problem, and including an <img>-tag in the RSS feed is trivial. But uploading media to Twitter seems to be impossible with the Twitter library I was using.
Searching around, I came across this entry on StackOverflow, which pointed me to the Codebird library. (This is the PHP version, there's also a Javascript version.)
Codebird does allow uploading media along with a status, so I changed the feed-mechanism once again to make use of it.

Today's entry is online: it has both a photo and a haiku, and I've activated the new feed mechanism in time for the 21:00 cron job. It ran without a hitch -- so there's now thumbnails on Twitter and in the RSS-feed, which is syndicated here on LJ as kliktikfix!
Tags: software

  • Final RPG-a-Day: Thank

    The last prompt for RPG-a-Day this year is ‘Thank’. If you have read every entry of this year’s RPG-a-Day, then I certainly…

  • Next-to-last RPG-a-Day: Mention

    Today’s prompt is ‘Mention’. I guess this is where I mention people I look up to, or websites I frequent? Ok, here’s…

  • RPG-a-Day 29: System

    We’re in the home stretch for this year’s RPG-a-Day! Today’s prompt is ‘System’. Paulo, who has been doing…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded