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

Reading twitter public stream

I'm trying to read the twitter public stream, I have used the twitter4j Java Library to do this. The examples given in Sample Codes section "Streaming API" show that it should be coded like below StatusListener listener = new…
Proceso
  • 567
  • 1
  • 6
  • 24
0
votes
1 answer

Display tweets on google maps

I Have retrieved 5 tweets with twitter4j(Java api for twitter) and now I want to display them on google map. Google map has a javascript api. Any Idea how could I display them on google map. can this data be sent to google maps directly and display…
Sara
  • 585
  • 7
  • 12
  • 22
0
votes
1 answer

Twitter integration in Android App

I've registered my app on the Twitter Developers site and got some OAuth credentials (Consumer Key, Consumer Secret, Request token URL etc).I have left the callback url blank.App is developed for both IOS and Android.Without callback url app is…
user1767260
  • 1,543
  • 8
  • 26
  • 51
0
votes
1 answer

getURLEntities twitter4j

Im using the getURLEntities() (twitter 4 j) b.getURLEntities().toString(); instead of getting the url entities, i m getting console output which looks something like: [Ltwitter4j.URLEntity;@ccd249 [Ltwitter4j.URLEntity;@101f287 …
adamantium
  • 25
  • 5
0
votes
1 answer

Twitter4j redirect to previous activity

I am new to working with the Twitter4J library and am running into a bit of a problem in Android. So I currently have an activity stack like A,B,C,D. From activity D I login to twitter using twitter4J. When the twitter login redirects back to my…
PPierson
  • 410
  • 3
  • 18
0
votes
1 answer

Get public status from twitter

how to access this url https://stream.twitter.com/1.1/statuses/firehose.json from twitter4j? I hope this will return all public statuses.
sattu
  • 632
  • 1
  • 22
  • 37
0
votes
1 answer

is it possible to define location as double[][]

I am using Twitter4j where I am using QueryFilter Class and it says http://twitter4j.org/javadoc/twitter4j/FilterQuery.html#locations private double[][] locations I tried my every best but couldnt find my way out how to define location as double or…
Sara
  • 585
  • 7
  • 12
  • 22
0
votes
1 answer

Data from Twitter within given dates

I want to gather all tweets from twitter within specified dates. Is it possible? Is there any way to achieve it? Currently I am able to retrieve my own tweets using twitter4j.
sattu
  • 632
  • 1
  • 22
  • 37
0
votes
1 answer

Share Image and Text in Facebook,Twitter from Android Application

I am working in one Application where i can share my gallery image to facebook,twitter i have searched the some links..Where everybody mentioned as intent service..but i do not know how it will use in my application,i would really be thankful if…
user2047120
0
votes
1 answer

API twitter rate limit

Here is what i'm trying to do : I have a list a twitter user ID, for each one of them I need to retrieve a complete list of his followers ID and his friends ID. I don't need anything else, no screen name etc.. i'm using twitter4j btw Here is how I'm…
Simon-Okp
  • 687
  • 7
  • 28
0
votes
1 answer

ClassCastException error Twitter4J in android

I'm using the Twitter4J link library and is working well, the problem is not to receive the error java.lang.ClassCastException I had to declare my manifesto on the seguite: android:name=".TwitterApplication" after I did…
jucajl
  • 1,195
  • 3
  • 12
  • 29
0
votes
1 answer

How to use twitter4j along with storm

I use the twitter4j query interface to filter tweets http://twitter4j.org/javadoc/twitter4j/Query.html. But the twitter spout in https://github.com/nathanmarz/storm-starter/blob/master/src/jvm/storm/starter/spout/TwitterSampleSpout.java:43 uses…
Joe
  • 14,513
  • 28
  • 82
  • 144
0
votes
1 answer

android twitter integration with twitter client

I use twitter4j to integrate my Android app with Twitter. Everything goes smooth, but customer requires to operate through local Twitter client (if installed), not through browser. As you know, integration with Facebook has such a functionality. I…
Nick
  • 3,205
  • 9
  • 57
  • 108
0
votes
1 answer

Bad Authentication Data 215 - Twitter4J 2.2.6

I've encountered this problem recently after releasing my app in GooglePlay. It seems that Twitter has changed their API or configuration without having legacy compatibility. I'm using Twitter4J 2.2.6. This is a ref link about this problem but there…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
0
votes
1 answer

Missing access tokens

This is the code i have currently, but I am unable to get the access tokens from my callback, any tips or hints will be appreciated. @Override protected void onCreate(Bundle savedInstanceState) { …
kabuto178
  • 3,129
  • 3
  • 40
  • 61