[twitter-dev] @anywhere login code samples

2010-04-15 Thread siggy
Hi there,

Some of the @anywhere sample code in the Working with the current
user section required some tweaks to get working.

The text specifies a User Callback function but the sample code does
not.

Also, the twttr.anywhere() function does not appear to work with an
API key, instead I specify it with the anywhere.js file.

Here is a modified code snippet that appears to work:

//var anywhereApiKey = abcdefghi-123;
//twttr.anywhere(anywhereApiKey, 1.0.0, onAnywhereLoad);
twttr.anywhere(onAnywhereLoad);
function onAnywhereLoad(twitter)
{
// Conditionally display the Connect Button based on current logged
in state:
if (twitter.isConnected)
{
twitter.User.current(user_callback);
}
else
{
twitter(#twitter-connect-placeholder).connectButton();
}
};

function user_callback(currentUser)
{
screenName = currentUser.data('screen_name');
profileImage = currentUser.data('profile_image_url');
profileImageTag = img src=' + profileImage + '/;

$('#twitter-connect-placeholder').innerHTML = Logged in as  +
profileImageTag +   + screenName;
};

Thanks,
Andrew
twitter.com/siggy_sf


[twitter-dev] Re: Introduce yourself!

2010-02-20 Thread siggy
Hello all,

My name is Andrew Seigner. I created http://heypic.me to display
tweets on a Google Map, with iPhone integration and a public API
supporting XML and KML.

The site uses python-twitter and oauth-python-twitter. I contributed
minor changes to each, adding Geo and Trends support to python-twitter
and a bug fix to oauth-python-twitter:
http://code.google.com/p/python-twitter/
http://code.google.com/p/oauth-python-twitter/

The feature I would most like to see was actually fulfilled a few days
ago with the release of the mobile OAuth login page, go team! The next
feature I'd like to see is delegated OAuth, so the iPhone app could
post photos to TwitPic or YFrog, rather than just using ImageShack.

Nice to meet everyone,
Andrew
http://twitter.com/siggy_sf
http://heypic.me/user/siggy_sf


[twitter-dev] Re: Any iPhone Twitter apps with OAuth login ?

2010-01-29 Thread siggy
This is great news Ryan, big ups to you and the team!

Andrew
twitter.com/siggy_sf



On Jan 29, 7:20 am, Ryan Sarver rsar...@twitter.com wrote:
 Good news. A mobile-friendly version of the OAuth page is due to be
 deployed next week (finally!:). We look forward to your feedback on
 the new screens when they are ready.

 Also, we currently block any custom protocol URLs from being
 registered as a callback to protect against XSS attacks. However, you
 can email a...@twitter.com to request a custom callback for iPhone apps
 and other mobile platforms that support it.

 Thanks for your endless patience on this pesky issue.

 Best, Ryan

 On Thu, Jan 21, 2010 at 2:18 PM, hunterjensen hunterjen...@gmail.com wrote:
  Yes please! We're submitting an iPhone app in a couple weeks and that
  page is the least user-friendly thing in our whole app. At this point
  we're considering going back to basic auth just until it gets a more
  mobile-friendly UI.

  Any chance you guys are working on this? Anything we can do to help?

  On Jan 20, 2:52 am, Jeff Enderwick jeff.enderw...@gmail.com wrote:
  and can we contrib/help?

  On Tue, Jan 19, 2010 at 11:07 AM, joepwro joep...@gmail.com wrote:
   We are also developing an iPhone app that uses Twitter's OAuth.

   Posting this just to add more momentum to the request that the Twitter
   OAuth login page should be made mobile friendly.  I believe doing so
   would have a significant usability impact.

   Raffi, can you provide input is this thread if this is something
   Twitter is considering
   doing in the short term?  Long term?

   Thanks,
   Joe

   On Jan 17, 3:12 am, jeff.enderw...@gmail.com
   jeff.enderw...@gmail.com wrote:
Hi, we're releasing an app that has a twitter-based sharing component
in a couple of weeks.

Does Twitter have any interest in making a mobile friendly version of
theoauthallow/deny/pin pages?
Could one of us on the outside just gin it up and give it to Twitter?

On Jan 12, 7:15 am, funkatron funkat...@gmail.com wrote:

 Just FWIW, this isn't really aniPhone-specific issue – there are a
 lot of rich mobile devices out there. One reason (excuse?) for not
 usingOAuthin Spaz on webOS is the poor functionality on mobile.

 I'm really reluctant to move toOAuthuntil the flow for mobile is
 improved. The data from heypic.me is just what I was afraid of.

 --
 Ed Finklerhttp://funkatron.com
 Twitter:@funkatron
 AIM: funka7ron
 ICQ: 3922133
 XMPP:funkat...@gmail.com xmpp%3afunkat...@gmail.com

 On Dec 6 2009, 3:08 am, Ram group...@cascadesoft.net wrote:

  As a followup to the mobileOAuthdiscussions from October 
  (seehttp://
   groups.google.com/group/twitter-development-talk/browse_thread...)
  

  Does anyone know of any (publicly released)iPhoneor other mobile
  Twitter apps that useOAuth?

  I'm partly curious to know/confirm whether our app is the 
  onlyiPhone
  (or mobile) app that uses TwitterOAuthlogin for posting
  tweets, but I also want to know what you think of the UI, if
  you've used TwitterOAuthlogin in any publicly released mobile app.

  Thanks Ram


[twitter-dev] Re: Any iPhone Twitter apps with OAuth login ?

2010-01-12 Thread siggy
Hi Raffi,

If you guys really wanted to go all out for the iPhone, you could
implement your OAuth login page using PastryKit. It would provide
ideal webview integration.

For those not familiar:
http://davidbcalhoun.com/2009/pastrykit-digging-into-an-apple-pie

Thanks,
Andrew
twitter.com/siggy_sf


On Jan 11, 10:32 pm, Raffi Krikorian ra...@twitter.com wrote:
  2.      Replace the manual PIN entry requirement with something else. The
  OAuth 1.0a designers greatly under-estimated the poor usability of manual
  PIN entry, especially on mobile devices. One suggestion off the top of my
  head: allow OAuth 1.0 (in addition to OAuth 1.0*a*) if--and only if--all
  parts of the OAuth authorization flow take place in the same TLS session
  (e.g. using TLS session resumption and/or a persistent HTTPS connection
  when/if Twitter supports persistent connections) and the application is
  registered as a desktop app (not a web app).

  i definitely hear the pain in the PIN workflow -- just as a quick point of

 note, we're not set up to handle persistent HTTP/HTTPS connections at this
 time.

 keep the ideas going - loving this thread.

 --
 Raffi Krikorian
 Twitter Platform Teamhttp://twitter.com/raffi


[twitter-dev] Re: Any iPhone Twitter apps with OAuth login ?

2010-01-11 Thread siggy
Hi Raffi,

I concur with the above suggestions by Fabien and Rich.

Our iPhone app, heypic.me, displays the OAuth login page in a webview.
Upon launching the login page, we only see about 20% of our users get
all the way through the Twitter login process. This is not a bug,
we've checked, but rather the cumbersome experience of using that
login page.

Thanks,
Andrew
twitter.com/siggy_sf


On Jan 11, 1:42 am, Rich rhyl...@gmail.com wrote:
 Hi Raffi

 For me there are two very important changes that need to be made to
 the oAuth login page

 1) The DENY button is currently default, which means if you hit the
 return button on the iPhone keyboard is uses DENY instead of ALLOW.
 Please change the default button!
 2) Please have a mobile friendly version like the m.twitter.com login
 page so that it fits a 320px wide screen without zooming.

 On Jan 8, 10:54 pm, Fabien Penso fabienpe...@gmail.com wrote:

  On Fri, Jan 8, 2010 at 11:24 PM, Raffi Krikorian ra...@twitter.com wrote:
   hey fabien (and the rest of the list).
   what do you think we could do to improve this for all of you?  i'm 
   actively
   interested in making it better.  feel free to add to this thread, or mail 
   me
   personally.

  Raffi,

  That would be such a great improvement. I think the required changes
  is small, I would go very simple and just display a login/password and
  the 2 buttons approve/deny in *large* without the sidebox on the right
  you have currently, as it's not needed. Something like what you get
  when you browse twitter.com/username from your iPhone.