Integrating Twitter Api on ANDROID (using native api from twitter)
Asked Answered
M

4

8

Recently the Twitter kit is going to lose the support and I'm wondering what's is the right and recomended way to integrate to show feed tweets from search (using the api native or some new alternative to twitter kit) now and futter.

The most tutorial online is deprecated or uses twitter kit not work for some changes that Twitter made on your service and fails on oAuth.

The Question is how integrate twitter now in this year with the new native api on Android Api-28

If some one have a sample or start project I apreciated.

Maris answered 31/12, 2018 at 19:59 Comment(2)
Have you tried Twitter4J? twitter4j.org/en It can be used with Android.Macaque
No, I tied with twitter kit , and for now I want to find a native implementationMaris
V
3

There are several alternative solutions for displaying Tweets in your app without Twitter Kit. You can render Embedded Tweets and Timelines within webviews using Twitter for Websites. You can fork the Twitter Kit project and build it into your app, or copy the parts you need into your app. Or you can use Twitter’s standard API to power your own native displays.

Vascular answered 14/1, 2019 at 11:25 Comment(0)
A
0

You should use Twitter4J. Right now there isn't any native Android libraries that work with Twitter's latest API. You can also directly call Twitter's API methods using any HTTP library, or an OAuth library such as scribejava.

Adept answered 10/1, 2019 at 19:28 Comment(0)
C
0

Ok just for you ;) I just put on github a simple Android app test. It uses Twitter4J. All you have to change is your twitter app credentials inside the file :

app/src/main/res/values/twitter_auth.xml

Here is the link : https://github.com/jrevault/twitroid

Feel free to ask questions if you need.

Contrecoup answered 11/1, 2019 at 13:30 Comment(1)
I know this is a bad practice to put credentials there, but it is not the purpose of the question :)Deva
M
0

You have do it easy with help of FCM , which provide all social Integration like G+,Facebook,Twiter ....FCM having all facility ...

Morphine answered 13/1, 2019 at 16:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.