views:

52

answers:

2

I have seen the following in a few different apps so it seems like some kind of public api. Anyone where I can find the code for this? Specifcally the twitter login that appears in the popover:

alt text

A: 

I think your understanding of OAuth needs to be better… OAuth is a way for users to sign into a service without revealing the credentials to the application. The interface you are seeing is Twitter's OAuth endpoint. I suggest looking into the twitter API for integration help.

If you would like to program your own interface for collecting the users credential, use XAuth instead.

coneybeare
A: 

What you need to understand is that you are looking at an interface.

The coding behind is what does all the magic This is how you do the code and it is up to you to create the interface.

the coding: two good solutions for this

solution 1:

The Oauth.net website lists a couple of Objective-C implementations on their code page - http://oauth.net/code. specifically check out MPoauthconnection

or you can also try

solution 2:

http://github.com/bengottlieb/Twitter-OAuth-iPhone

PK

Pavan
I understand that it's an interface. I have seen it multiple times so I'm wondering where that interface comes from.
sol
do you mean if you were designing for the iphone?
Pavan
all you do is create this in xcode or in interface builder. where you can grab ui controls, graphic tools and so on.
Pavan
Pavan
You dont need to recreate this interface. It is just a webpage that twitter provides.
coneybeare
WOW REALLY?! thats brilliant. i didnt know twitter actually provide the interface
Pavan
and can you give us a link please that show that twitter provides the interface? thanks
Pavan
yeah, that was my question coneybeare, where can we find this?
sol