Twitter的整合在Android应用程序 [英] twitter integration in android application

查看:213
本文介绍了Twitter的整合在Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好如何在Android应用程序集成的Twitter无需验证?
我想通过我的应用程序,以强烈抵制我的状态。使用OAuth我在我的应用程序,但使用OAuth TWIT更新Twitter的完成,这只是一个用户。


解决方案

  

这是我的Twitter ID我创建
  customerkey,secratekey ......我用这个
  在我的应用我的状态键
  将在我的Twitter帐户更新
  。中没有任何的登录信息
  编码。所以如何twitt针对不同
  使用?


您是正确的,当你安装一个Android应用程序使用OAuth验证,你不编程包括任何用户的详细信息 - 但是,当你第一次使用你的应用程序,该应用程序code会已指示你Twitter的授权的应用程序,使你的更新 - 这是当你输入你的Twitter正常登录信息,这就是为什么应用程序被发布在你的用户ID的鸣叫。例如,如果你装到别人来使用另一台设备的应用程序,他们将不得不授权的应用程序进行更新/后鸣叫,如果他们把他们的用户详细信息将出任他们。

有任何可能的方式来允许更新多个帐户没有OAuth的 - 因为,你将能够张贴他人的鸣叫 - 然而,正确的OAuth实现允许手机用户一次授权您的应用程序,然后继续更新他们的用户。

这听起来像你已经整理Twitter和消费者的键/秘密的东西排序的用户授权,但没有的OAuth与Android和Twitter(包括源$ C ​​$ C)的这里

Hi all how to integrate twitter in android application without authentication ? i want to twit my status through my application . using oauth i have done twitter in my application but using oauth twit updated and it is only for one user .

解决方案

from my twitter id i created customerkey ,secratekey ...i used this key in my application and my status will be updated in my twitter account . there is no any login information in coding .so how to twitt for different use ?

You are correct, that when you setup an android app to authenticate using OAuth, you do not programatically include any user details - however, when you first used your app, the app code will have directed you to Twitter to authorise the app to make updates for you - that is when you will have entered your normal Twitter login details, and this is why the app is posting tweets in your user id. For example, if you loaded the app on to another device for someone else to use, they would have to authorise the app to make updates/post tweets and if they put in their user details it would post as them.

There is no possible way to allow updates to multiple accounts without OAuth - as then you would be able to post tweets for other people - however, the correct OAuth implementation allows the phone user to authorise your app once and then continue to update for their user.

It sounds like you have already sorted the user authorisation on twitter and consumer key/secret stuff sorted but there is an overview of OAuth with Android and Twitter (including source code) here

这篇关于Twitter的整合在Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆