My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 650: update_profile_background_image does not consistently update background tiling
5 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  alexfpayne
Closed:  Sep 04
Type-Defect
Priority-Medium
Component-REST


Sign in to add a comment
 
Reported by matt.parrett, Jun 04, 2009
Using curl you can make several requests to update the tiling of the
background image with "tile=true" or "tile=false". "curl -v" will allow you
to see the request and response headers. I've attached a sample 

Replace the username, password, and image path
with valid information before running from a command line. You can also see
the inconsistencies by using
twitterbackgrounds.com to post tiled and non-tiled backgrounds to see that
the tiling is not consistently set as expected.

curl -v -i -H "Expect:" --basic -u "username:password" -F
"image=@/path/to/an/image.jpg;filename=whatever.jpg;content-type:image/jpeg" -F
"tile=false" http://twitter.com/account/update_profile_background_image.xml

Thanks for your prompt attention. 
update_profile_background.txt
1.5 KB Download
Comment 1 by matt.parrett, Jun 04, 2009
Oops, forgot some information that may be helpful: 

For our users, it seems like more than 50% that attempt to set a certain background
tiling (true/false) fail. In our testing, nearly 100% of attempts to set background
tiling to "true" from an existing "false" state seem to fail. In addition to failing,
if you attempt to change the tiling using the web interface, it often causes the
background image to revert to a previous background image. 

Thanks again.
Comment 2 by m...@twitter.com, Jun 04, 2009
Triage: setting labels and editing the title
Summary: update_profile_background_image does not consistently update background tiling
Status: Accepted
Owner: m...@twitter.com
Labels: Component-REST
Comment 3 by mailjayanderson, Jun 17, 2009
So is background image now changed immediately with REST API? If yes - can anybody
help me with what piece of code?

I am PHP cURL but background image does not change and I get error as "Something has
gone wrong".

Any help will be highly appreciated.

- Jay

Comment 4 by kyle.mulka, Jun 23, 2009
I'm unable to get this API call to change the tiling from true to false or false to
true. Although, it does update the image except for the problem noted in  issue #663 
Comment 5 by m...@twitter.com, Jun 23, 2009
Looking into this once again now that other image issues have been sorted out.
Comment 6 by m...@twitter.com, Jun 25, 2009
Part 1 of the fix has been deployed, tile=true now works:

 curl -v -i -H "Expect:" --basic -u username:password -F "image=@./glasses-no-sig.png;type=image/png" -F 
"tile=true" http://twitter.com/account/update_profile_background_image.xml

Part 2 is to support tile=false (had to be broken into two deploys)

Comment 7 by mygtricks, Jul 15, 2009
does this work with Oauth?
Comment 8 by m...@twitter.com, Jul 24, 2009
Reassigning to Doug to manage since I am no longer on the Platform team.
Owner: igudo1
Comment 9 by igudo1, Sep 03, 2009
Assigning to al3x.
Owner: alexfpayne
Comment 10 by alexfpayne, Sep 04, 2009
This should now be fixed, and should work with OAuth (although you may have to search around for the correct 
incantation for your particular OAuth library).
Status: Fixed
Comment 11 by alexfpayne, Sep 04, 2009
This should now be fixed, and should work with OAuth (although you may have to search around for the correct 
incantation for your particular OAuth library).
Sign in to add a comment

Hosted by Google Code