Twitter authentication without authorization
I wish to get the tweeter usename of a visitor to my 开发者_如何学JAVAsite.
I do not wish to post statuses or access any other information.
I'd be happy to use OAuth, possibly with a 'Sign in with Twitter' button, but this then takes the user to a page which requests authorization for the application, that I wish to avoid.
Is there a way to get the username without authorization?
Thanks,
Daniel
You can just have a text field with popup, like submit your twitter user name here. That will serve your purpose, You can use that name and can read all public tweets made by him.
I think you need:
http://twitter.com/oauth/authenticate
instead of
http://twitter.com/oauth/authorize
as the user authorization endpoint.
精彩评论