i'm trying make simple app twitter and i use twitter4j library and i got good tutorial how to login and post twitter used that library. my app display timeline and had retweet button, my question how to retweet using twitter4j library?
You can call Status#retweet() or TwitterStream#retweet() with the original tweet id.
You can also use Twitter#retweetStatus(), for example:
Twitter twitter = new TwitterFactory().getInstance();
twitter.retweetStatus(idOfStatusToRetweet);
Related
I have implemented the socialAuth library.But my problem is i cannot retrieve complete profile details.Is there any way to retrieve it?
Now SocialAuth lib is depreciated.You wont get complete profile details because now social media has improved their security.But you can try it by making profile details as public(goto profile setting and make certain detail public like birth date etc)
Instead of socialAuth try official SDk
I am developing android application and want to use twitter log in and import contact list from twitter. i am using twitter4j library and i can log into twitter via android app.i want to know how to import contact list from .
You will have all the followers Ids from below api,
https://api.twitter.com/1/followers/ids.json?cursor=-1&screen_name=patel
And than you can get info of all that followers from this api,
https://api.twitter.com/1/users/lookup.json?user_id=401702563,1013369934,....
But, these apis will be deprecated by Twitter from March,2013. Rather this, You can try Twitter api version 1.1.
Refer this link for that.
I'm a beginner of android and reading a book on android and found that code snippet there
twitter = new Twitter("student", "password");
twitter.setAPIRootUrl("http://yamba.marakana.com/api");
All the post I tweet goes to the site yamba.marakana.com but I don't want to see my twits in that marakana site, I want to post those directly to my twitter account(changing the "student" and "password" field ).
How can I do that? Is it a problem of APIRoouUrl? If yes then let me have the correct URL for the setAPIRootUrl() method.
By the way, I'm using jTwitter API from twitter in Android. Thanks in advance for the repliers :)
I followed the video series of the book on Youtube. He mentioned that if you want to post to the actual Twitter site, you have to submit some sort of form to Twitter as a developer for them to give you the proper information. Also, Twitter's API is probably a bit different from that of jTwitter, so it's probably not a good idea when you're just starting to learn.
I am new in android...i have given a task to do..i have provided an textView where my link is present..i have two buttons..on with named share in facebook and other with named share in twitter..what i have to do is when i click on any of the button at first the login page of each of the facebook or twitter is opened depending upon the button click..now when the user loged in..the link present in the textview is automatically shared on the facebook..so can anyone suggest me how to do this..if possible with example..
regards
Rahul
Facebook Dev Docs
Twitter Dev Docs
Do a little search, and you will get quite a few examples.
This can be done by getting Facebook and Twitter libraries to your project. Then make object of Twiiter and Facebook classes and perform the tasks with the help of that objects.
I am new to twitter .I like to develope one twitter Application. Can anyone tell me:
The methods to be used for replying the tweets.
How to retweet with userID in arraylist
you can use OAuth for your twitter application. You can refer to these links to learn how to make calls using the same
Android: Twitter and OAuth anyone?
http://www.devx.com/webdev/Article/40511/0/page/1
http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html
http://dev.bostone.us/2009/07/16/android-oauth-twitter-updates/#awp::2009/07/16/android-oauth-twitter-updates/