is there any twitter demo example to post photo on twitter with using OAuth in twitter?

纵饮孤独 提交于 2019-12-18 12:04:20

问题


I want to upload the Photo on Twitter as like ttweet photo. by Searching on net I got Some Example of the twiiter4j example to tweet the Photo on twitter. but in that example demo I have to enter the static Username and Password to post. I want is to enter and managed the username and password by twitter OAuth and post the photo on twitter... So is there any Demo that can Post the Photo on Twitter using Twitter OAuth?


回答1:


Twitpic is the place where your photos(tweeted on Twitter) are hosted. So once you get the username password for twitpic,you can upload photo to it using below code sample project. It would just upload the photo and gives you the link.so finally you will have to code for posting that link onto twitter as tweet.

Here is the complete project sample: https://github.com/lorensiuswlt/AndroidTwitpic




回答2:


Whenever you need demo's just do a search on Github. You will be able to see a lot of demo applications from others.

Twitter4j-android-Sample

twitterdroid

Tweety

TweetView

Or maybe this list will have something for you.



来源:https://stackoverflow.com/questions/8381671/is-there-any-twitter-demo-example-to-post-photo-on-twitter-with-using-oauth-in-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!