Simon Willison’s Weblog

Subscribe

How do I put my Twitter picture on my company’s about page so that it automatically updates?

28th November 2013

My answer to How do I put my Twitter picture on my company’s about page so that it automatically updates? on Quora

This used to be pretty easy, but Twitter made it a lot harder with their APIv1. You need to do authenticated API calls to access their image API now, which means it’s best to set up a cron job and cache the correct URL.

I suggest using Facebook for this instead. You can construct a URL to your profile image directly using your Facebook custom URL. You can reference this directly from an HTML image tag. Here’s my current Facebook image:

https:// graph.facebook.com / swillison / picture (remove spaces to see it, working around Quora’s content rewriting)

Docs here: https://developers.facebook.com/...

More recent articles