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

Log in twitter in android

I use the library "twitter4j" to interface with Twitter API. I need to write log in code but i don't understand very well how i can do it. I must write an application where user can specify username and password and i must take this value(username…
francedema
  • 31
  • 2
  • 4
0
votes
1 answer

Processing and Twitter4j, problems searching for tweets

I have processing 2.0 and twitter4j 3.0.3; when I try to run the program I get the error message "The function "getTweet() does not exist". I have tried getStatuses instead to no avail, I get the same error message that the function does not exist.…
Amber
  • 1
0
votes
1 answer

Connection Refused with twitter4j

I am running following code for tweeting on twitter, using twitter4j-core-2.2.6.jar. package twitter4j.examples.tweets; //import java.awt.List; import java.util.List; import twitter4j.Status; import twitter4j.Twitter; import…
Indra Vikas
  • 59
  • 1
  • 6
0
votes
1 answer

Why do I get "value X is not a member of Y" error in this code?

I am using Twitter4j for fetching trends from Twitter using the following code: val twitter = new TwitterFactory().getInstance val twitterStream = new TwitterStreamFactory().getInstance twitterStream.addListener(simpleStatusListener) …
princess of persia
  • 2,222
  • 4
  • 26
  • 43
0
votes
0 answers

Twitter Android integration

I am running into problems every time trying to authenticate twitter and post a tweet from my application. I have used Socialauth and Twitter4j before to no avail. Has anyone tried this tutorial and got it working…
PhillyT
  • 15
  • 6
0
votes
1 answer

Multiple queries in different methods Twitter4j Processing

I am trying to execute separate queries in different methods, the code below is not my actual code but is just an example of the error, i have Twitter twitter = new TwitterFactory(cb.build()).getInstance(); called in both methods, however i get…
John Smith
  • 276
  • 1
  • 2
  • 15
0
votes
1 answer

tweeter4j upload image and message from android

Exception using trying to tweet after authentication , Twitter Login Error if (!isTwitterLoggedInAlready()) { Uri uri = getIntent().getData(); if (uri != null && uri.toString().startsWith(TWITTER_CALLBACK_URL)) { //…
hemant
  • 564
  • 2
  • 13
  • 37
0
votes
1 answer

Quote retweets Twitter4j

I have a problem when using twitter4j, when I get timeline using this code : try { ResponseList tweets = twitter.getHomeTimeline(); for(Status s : tweets){ Tweet temp = new Tweet(new…
user2099754
0
votes
1 answer

twitter4j: Running in asynchrounous mode

i have list of twitter user ids in a file. And i am required to collect tweets of all the users in that file. Currently i am able to fetch tweets of all users. But i need to run is code forever. Currently i am doing something like this while(true) …
Aniket Dutta
  • 175
  • 1
  • 2
  • 8
0
votes
1 answer

Activity closes when trying to asyncronously connect to twitter

I have been trying to program a twitter client for Android (using twitter4j). So far the idea is to have a simple GUI, and if there is not a file with the OAuth token in the SD Card, connect to the Twitter API using AsyncTask, get the URL for the…
Versec
  • 128
  • 1
  • 10
0
votes
1 answer

Does twitter4j.Status return geo location on every tweet

http://twitter4j.org/javadoc/twitter4j/Status.html return a GeoLocation object containing latitude / longitude (http://twitter4j.org/javadoc/twitter4j/GeoLocation.html). Does it return the values for all tweets, since I am observing that the object…
Sam
  • 8,387
  • 19
  • 62
  • 97
0
votes
1 answer

twitter4j filterquery with multiple conditions e.g location and track (GeoLocation and keywords) in processing

I am wondering if it is possible to filter users location and keywords double[][] location= location; String keywords[] = {"keywords"}; FilterQuery fq = new FilterQuery(); fq.locations(location); fq.track(keywords); …
user2158132
  • 5
  • 1
  • 3
0
votes
2 answers

Twitter integration using username and password

I am trying to integrate Twitter in my application, using Twitter4J JAR. But this requires Consumer key, Secret Key, Access tokens. Is it possible to use just User Name and Password for integration?
CR LM
  • 3
  • 2
0
votes
1 answer

How to use Twitter4j to show tweets

I have followed this tutorial http://www.javacodegeeks.com/2012/03/twitter-api-on-your-java-application.html and did the exact same thing. But I am getting an error which is shown below. Am I missing something? Should I be setting some permissions…
Sindu_
  • 1,347
  • 8
  • 27
  • 67
0
votes
2 answers

Using Regex to retrieve a repeated value in a String

Apologies in advance if i am misunderstanding the use of Regex in this context. I would like to retrieve a repeated field from a String. The string in question looks something like this - TrendsJSONImpl{asOf=Fri Mar 08 00:04:26 GMT 2013,…
iainmac
  • 23
  • 1
  • 4