missgee — 2010-06-26T11:10:33-04:00 — #1
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.
missgee — 2010-06-27T18:00:28-04:00 — #2
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.
dan_grossman — 2010-06-26T20:59:54-04:00 — #3
You use the Twitter API. Authentication and updating the wallpaper are documented here:
dan_grossman — 2010-06-27T20:37:48-04:00 — #4
Then skip the first part. You just need to authenticate and make the API call, providing the URL of your background image.
dan_grossman — 2010-06-27T20:07:05-04:00 — #5
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:
It's a single step for the user, but multiple steps for you in the background.
missgee — 2010-06-27T20:19:47-04:00 — #6
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?