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 do I get Twitter4J to stream posts with a Photo?

Using Twitter4J i can able to get the home_line tweets by using the method Twitter.getHomeTimeline(); I want to retrieve the tweets which contains photo tags , i came up with the solution FilterQuery but i do not know how to use this…
Taruni
  • 1,671
  • 4
  • 22
  • 43
0
votes
2 answers

twitter4j how to get only statuses with location data from a twitter stream

I'm getting high numbers of "onTrackLimitationNotice". I'd like to narrow my predicate by only searching for statuses with geo location, but all geo locations? Can this be done? Im coding in Processing, using twitter4j-2.2.6. EDIT: it was an…
v.k.
  • 2,826
  • 2
  • 20
  • 29
0
votes
1 answer

How to get Access_Token from twitter in android?

I have some code and its work to login or logout ,but I want to get access_tonken and store it in database. my code: private void onTwitterClick() { if (mTwitter.hasAccessToken()) { final AlertDialog.Builder builder = new…
Lia
  • 57
  • 8
0
votes
1 answer

How to interpret my twitter4J error?

I'm trying to build an app to look at trending tweets from the bottom up building on the examples given; my steps so far: Download relvent files Make a new project Paste in example code from here Setup external library/archive things (I made this…
AncientSwordRage
  • 7,086
  • 19
  • 90
  • 173
0
votes
1 answer

Twitter4j interfaces and class structure

The twitter4j packages are not clear to me. For instance how would I retrieve 500 tweets containing a certain hashtag? How would I declare a user and get all their tweets in the past week? For example, I would like the following: User brit = new…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
0
votes
1 answer

How to upload video on twitpic/twitter programatically?

I am new in Android. I was working for uploading Image/Video on Twitter. I used the twitpic for this purpose. I first sent image to twitpic and then updated the status in twitter with url of the tweet. Image is successfully loading as per my…
user1381420RKS
  • 149
  • 1
  • 8
0
votes
1 answer

Twitter4j AccesToken with JavaFX Browser

I want to authentificate a user using an embedded browser with javafx. I can get the PIN (String) that twitter gives me but when I try to create the AccesToken it does not create it correctly. (I can't get my token or tokenSecret, both null). Here's…
Tibor Udvari
  • 2,932
  • 3
  • 23
  • 39
0
votes
1 answer

What is API URL executed by Twitter4j? (Search API)

I use Twitter4J libraries to access Twitter through their Search API. I provide such a query to Twitter4j: Query{query='#hungergames', lang='null', locale='null', maxId=-1, rpp=100, page=-1, since='null', sinceId=241378725860618240, geocode='null',…
chet
  • 607
  • 1
  • 6
  • 11
0
votes
2 answers

Invalid Access Token format Twitter4j 2.2.6

This is my stack trace, and I can't figure out whats wrong! 08-30 12:26:50.494: E/AndroidRuntime(19465): FATAL EXCEPTION: main 08-30 12:26:50.494: E/AndroidRuntime(19465): java.lang.IllegalArgumentException: Invalid access token format. 08-30…
eoghanm
  • 329
  • 1
  • 9
0
votes
2 answers

android twitter4j callback don't work

i have a problem with callback after authenticate with twitter. I get token on onNewItem but web page remain. This is my code public class TwitterRequest extends Activity { private Twitter niceTwitter; public RequestToken niceRequestToken; …
user1062198
  • 31
  • 1
  • 3
0
votes
2 answers

Exceptions being thrown with getting a status with twitter4j?

I was trying to follow the docs here: https://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/tweets/ShowStatus.java but appear to have gone wrong somewhere. I'm trying to do something slightly different…
ryebread761
  • 705
  • 1
  • 7
  • 14
0
votes
2 answers

Twitter doesn't return to Activity when set WebClient

I use Twitter4J to connect to Twitter. I prevent loading through the default browser by setting WebViewClient for WebView. The problem is Twitter doesn't return to my Activity. It shows "Web page not available" on WebView after redirecting. Calling…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
0
votes
1 answer

Android Twitter4j 401 Authentication error

I'm using the AndroidTwitter project at https://github.com/lorensiuswlt/AndroidTwitter to connect to Twitter and send a tweet. I can authorize with Twitter successfully, and it says I'm logged in, however when I go to post a tweet, I get this…
Andy
  • 1,815
  • 2
  • 22
  • 49
0
votes
1 answer

Android Twitter4j getUserTimeline slow in Thread

I have an alarmmanager that starts a broadcast receiver every minute which runs a thread with max priority. In that thread I get the 60 most recent tweets with Twitter4j.getUserTimeline(page) from a twitter account I use for our fire department…
0
votes
1 answer

twitter4j logins using different accounts

I am totally confused over the twitter4j API and I think I could really use your help. I am trying to build a desktop twitter client in java using the twitter4j API but somehow I am forced to used the OAuth method no matter what. In the simplest of…
stratis
  • 7,750
  • 13
  • 53
  • 94
1 2 3
99
100