Twitter Background Install

I made some twitter backgrounds for a small section that I’m adding to my website.

How do I make it to where users can install my backgrounds with the click of a button, so that they don’t have to upload it manually? Here’s an example of what I mean. At the bottom, it has something to where the user’s twitter connects to the page and installs the bg with the click of a button.

It’s so difficult to find. So far, all I have found in tutorials from those links was how to allow users to upload a twitter background from their computer onto thier Twitter profile from their site.

So far, I was able to make it to where people could connect to Twitter from my website using Oauth from the click of a button, but what code do I use to make a background install with the click of a button once they log in? I can’t find it.

You use the Twitter API. Authentication and updating the wallpaper are documented here:

http://apiwiki.twitter.com/

Then skip the first part. You just need to authenticate and make the API call, providing the URL of your background image.

They upload the picture to you. You move the image somewhere on your server (or upload it somewhere else) so that it’s accessible at a URL. You then make an update_profile_background_image API call with their authentication and the URL of the uploaded image:

http://apiwiki.twitter.com/Twitter-REST-API-Method:-account%C2�update_profile_background_image

It’s a single step for the user, but multiple steps for you in the background.

I may have communicated my words wrong. I was trying to say that I didn’t want them to upload anything.

I want to make it to where I provide a background that I created, and they can install it simply by clicking the button.

But I wonder if it can be achieved with this code as well?