SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    Louisville, KY
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You use the Twitter API. Authentication and updating the wallpaper are documented here:

    http://apiwiki.twitter.com/

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    Louisville, KY
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    You use the Twitter API. Authentication and updating the wallpaper are documented here:

    http://apiwiki.twitter.com/

    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.

  4. #4
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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-R...ckground_image

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

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2009
    Location
    Louisville, KY
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Grossman View Post
    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-R...ckground_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?

  6. #6
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Then skip the first part. You just need to authenticate and make the API call, providing the URL of your background image.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •