Questions tagged [twitter4j]

Twitter4J is a library enabling calls to the Twitter API from Java. With Twitter4J, you can easily integrate your Java application with the Twitter service. Twitter4J is an unofficial library.

With Twitter4J, you can easily integrate your Java application with the Twitter service.

Features

  • 100% Pure Java - works on any Java Platform version 5 or later
  • Android platform and Google App Engine ready
  • Zero dependency: No additional jars required
  • Built-in OAuth support
  • Out-of-the-box gzip support
  • 100% Twitter API 1.1 compatible
1563 questions
0
votes
1 answer

How to use Twitter4J in android app

I'm using Twitter4j in my java app. working fine and able to get the tweets. I'm using the same formats and code in my android app. I kept the auth secret key in properties file inside package folder and also in asset folder. but i'm getting the…
Vignesh
  • 2,295
  • 7
  • 33
  • 41
0
votes
1 answer

Twitter Streaming API with Twitter4j

I need to stream all public tweets which contain a certain hashtag AND replies to a certain account (which I own) and store them in a database. However, I can't get Twitter4j to do this for me. Is there something I'm missing? I've only been able to…
Charlie-Blake
  • 10,832
  • 13
  • 55
  • 90
0
votes
1 answer

How can I detect twitter limit exceeded in json response

I am parsing the result from http://search.twitter.com/search.json?q="+"from:" + searchTerm + "&rpp="+limit; Not sure what to look/how to parse for rate limit exceeded? Whats a reliable way to check this before looking…
Code Complete
  • 43
  • 1
  • 5
0
votes
1 answer

Which twitter API supports favoriting a tweet? How do favor a tweet in Android app?

I think that one needs to be logged into twitter to favor a tweet. Currently I am using Twitter API ME but I am no sure it supports favoriting a tweet? I am already using Twitter API ME for logging in, can I keep this API or do I need to move on?
Code Complete
  • 43
  • 1
  • 5
0
votes
1 answer

Android- twitter.getFriendsStatuses missing in twitter4j 2.2.6

I am currently migrating from twitter4j-core-2.1.11.jar to 2.2.6. twitter.getFriendsStatuses(twitter.getScreenName()).toString(); I don't see any such methods in 2.2.6. Surprisingly the libraries are not backward compatible. Is there an…
Kamal
  • 5,462
  • 8
  • 45
  • 58
0
votes
1 answer

Twitter Streaming API vs. Twitter Search for live events streaming

I am going to be providing a twitter feed inside and Android app that allows re-tweets, favorites and reply to the tweet. I understand that there is a search api and also a streaming api. This is a major live event and I was just wondering if the…
NextDroid
  • 337
  • 2
  • 4
  • 10
0
votes
1 answer

Twitter4j Truncating Tweets

I am currently making a test application to retrieve tweets from a Twitter account and display them on the screen. All my code is working fine, but a few Tweets are being truncated. Anyone aware of what might be causing this and how to fix it? Code…
Aelexe
  • 1,216
  • 3
  • 18
  • 27
0
votes
1 answer

How to post hyperlink text in twitter using twitter4j in android

I want to post a text on twitter which will hyperlink with one Url. is this Possible? any way to implement this.I read some blog and posts that this is not supported by Twitter. There is any alternate to implement this one in my android…
Gaurav Gupta
  • 1,550
  • 4
  • 18
  • 35
0
votes
1 answer

retrieve tweets for a given keyword in twitter4j

I am new with twitter4j. Just wondering, how to get "a time of period tweets" from twitter. As the twitter4j only can get a minimum mount of tweet. Say, I'd like to get the last 2 weeks tweets of keyword "iphone5", how would I get these by using…
user1756488
  • 19
  • 1
  • 3
0
votes
2 answers

get tweets from keyword

Is there any way to get tweets containing a keyword in java? I want to download as many as possible, I have seen a java library twitter4j but it gives only small number of tweets.
Naveen
  • 773
  • 3
  • 17
  • 40
0
votes
1 answer

Twitter4j: How to remove a retweet

I have the id of a tweet that has been retweeted by the authenticated user. How do I remove the retweet using Twitter4j?
ePeace
  • 1,987
  • 1
  • 17
  • 23
0
votes
1 answer

Android Twitter feed friends thumbnails

For android, How can you get the home feed with friends thumbnails with it? Atm I'm using Twitter4j but I can't seem to find anything. I can get the feed but how do I get the thumbnails with it? Thumbnails being the users profile pic next to the…
rennoDeniro
  • 920
  • 2
  • 8
  • 19
0
votes
1 answer

Android Twitter sendDirectMessages not working

I am trying to send the Direct messages from my Android app. For that I have Googled and found the following solution from the links . In that Twitter4j I have found the code snippet. I have tried the same in my Android app also, but got the…
RAJESH
  • 231
  • 1
  • 5
  • 19
0
votes
4 answers

How to post picture on Twitter from android application using Twitter4j

I have seen this answer for the same type of question. when i am using the code its always throwing an Twitter Exception.I am calling it like upload_twic_pic(new File("my_image_path")); and getting following Exception W/System.err(2195): Connection…
Yasir Khan
  • 2,413
  • 4
  • 20
  • 26
0
votes
2 answers

AsyncTask with facebook and twitter4j

I have two images buttons and I'd like to share/tweet when I press it, but I was doing all the code in activity, so one day wasn't working anymore I don't know why :/ It was throwing a exception NetworkOnMainThreadException and it was in time to do…
Felipe
  • 33
  • 5