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

Save and load tweets using twitter4j

I want to write an Android app that gets tweets using twitter4j. I want to make the app save the downloaded tweets (for example in a database) and make the timeline appear when the app is started without internet connection or before the timeline…
Toast
  • 596
  • 2
  • 19
  • 39
0
votes
1 answer

twitter without OAuth in android

Anyone knows how can I use twitter directly whitout asking for credential and not using OAuth library? I want to put the credentials directly in the code and authorize the app, and then just see the home timeline. I tried using jTwitter library but…
JoseLion
  • 105
  • 2
  • 7
0
votes
1 answer

Get Twitter trends through twitter4j in Android

I am beginner in Android and want get Twitter trends, but getting a null value in trends. I don't understand where I made a mistake. List list; Trends trends; private Twitter mTwitter; public ListgetDailyTrends(Date date, boolean…
0
votes
2 answers

Facebook SDK doesn't work after API LEVEL 10 on Android

I used Facebook SDK (and Twitter, Linkedin) to make a log in on my app. It works perfectly if I specify the minSdkVersion<10. I need to upgrade the app to use Fragment.. For the 11 and greater, the app…
user420574
  • 1,437
  • 5
  • 21
  • 33
0
votes
1 answer

authtoken Not trusted server certificate*

i am trying to get the authtoken using twitter 4j i put it in try and catch but it catches always this error twitter4j.TwitterException: Not trusted server certificate here it is my function public String BeginAuthorization() { try …
user1115684
  • 75
  • 1
  • 11
0
votes
1 answer

Twitter page not loaded

I am trying to load twitter page using twitter 4j but the twitter page is not loaded i have registered my application and get my consumer key and consumer secret key here it is my code package a.a.a; import android.app.ListActivity; import…
0
votes
1 answer

twitter4j setpage() not working

I'm using twitter4j version 2.2.5. setPage() doesn't seem to work if I use it with setSince() and setUntil(). See the following code: Twitter twitter = new TwitterFactory().getInstance(); twitter.setOAuthConsumer(CONSUMER_KEY,…
0
votes
1 answer

incompatible types in Twitter4j

I'm following this tutorial for twitter4j: http://www.javacodegeeks.com/2011/10/java-twitter-client-with-twitter4j.html and I've gotten almost everything right. All my code compiles except for this one little part: ResponseList list =…
yiwei
  • 4,022
  • 9
  • 36
  • 54
0
votes
2 answers

How to switch between networks from a Java application?

Is it possible to disconnect from one wi-fi network and connect to another network programatically using java? My java application makes request to twitter using twitter4j. I can make only 350 requests per hour from a particular IP address. Now I'm…
Balaji
  • 123
  • 1
  • 7
0
votes
4 answers

Twitter API returns invalid callback - Cannot authorize

[SOLVED, but I'm open to new suggestions...] I'm integrating Twitter into my Android app using twitter4j. When I try to authorize with Twitter, I am calling the following endpoint with my oauth…
Bojan Radivojevic
  • 717
  • 3
  • 12
  • 23
0
votes
2 answers

E/AndroidRuntime(585): java.lang.NoClassDefFoundError twitter4j.http.AccessToken

I have been following this tutorial http://www.android10.org/index.php/articleslibraries/291-twitter-integration-in-your-android-application I entered these details for the consumer_key and the consumer_secret public class Constants { public…
al23dev
  • 845
  • 2
  • 8
  • 17
0
votes
1 answer

Twitter Streaming API : Tracking changing keywords

I would like to track changing keywords on the streaming API (from a java client) without losing tweets in the process - for instance, if I am tracking 'keyword1,keyword2' at this moment, a moment later, I would like to configure the streaming api…
Jay
  • 2,394
  • 11
  • 54
  • 98
0
votes
0 answers

How to get around the Twitter 3200 status limit?

Possible Duplicate: Find ALL tweets from a user (not just the first 3,200) Im working on an app the requires access to ALL of a users statuses. Problem is, twitter only allows for 3200 of the most recent statuses to get retrieved. I know that…
r2DoesInc
  • 3,759
  • 3
  • 29
  • 60
0
votes
1 answer

add twitter widget in wicket onload page

I am new in wicket . I am trying to add twitter search widget in my wicket page, and want to make it work when the page loads. https://twitter.com/about/resources/widgets/widget_search I created a new panel and implement IHeaderContributor public…
0
votes
1 answer

Twitter Stream API to Collect Tweets

I want to collect tweets with some specific information. Consider hash tags. I want to collect some specific hash tag. The tweets are 15 days old and even today there are fresh tweets regarding it. I was wondering if there is any API with the…
Shiv Kumar Ganesh
  • 3,799
  • 10
  • 46
  • 85
1 2 3
99
100