Instagram open source client android

Instagram Integration in Android Application Tutorial

To download the code, login with one of the following social providers.

Login Login

Be patient. we are fetching your source code.

Objective

You will get Final Output:

Instagram has captured lot of eyeballs after it got acquire by Facebook, and Instagram is also growing its user base and getting more popular day by day. So, integrating Instagram sharing in your app can give you lot of leverage. For easy integration, Instagram provides quite rich API.

The API can help you in following kind of operations:

  • To get all Media files uploaded by user on Instagram.
  • To view like and comments for the media file.
  • To get followers and following information.
  • To get user information etc.

Instagram does not provide:

  • API to upload image.
  • To add follower.
  • To follow someone etc.

It provides read only API, using which we can view all information.

I am creating an app in which I am fetching all the Instagram photos of a user and also getting the followers and followings list.

Following are the steps to Integrate Instagram in your Android application

Step 1 Register your Application

To Register the app follow the below link. After open the page click on Register your Application

Step 2 Register new Client ID

Fill in the app information After clicking on Register your Application you will be redirected to Client ID page. Enter all the information of your app and then click on register.

Step 3 Manage Clients

Manage Clients page will be displayed after registration done successfully.

To Integrate Instagram in our app, we will need 3 things

  1. Client id
  2. Client secret
  3. Redirect Uri

Copy client id, client secret and redirect Uri and paste it in ApplicationData class as following:

Step 4 Creating InstagramDialog Class

Create InstagramDialog class to display webview for login into Instagram as following:

Step 5 Create InstagramApp Class

Create InstagramApp class which is used to store Instagram user session information by calling API as following:

In the above code getAccessToken() method uses.

https://api.instagram.com/oauth/access_token API with post method to get user id, username etc. and stores it to session using InstagramSession class object.

Step 6 Create InstagramSession Class

InstagramSession class is used to store user info as following:

Step 7 Fetching User Data

After creating above classes in MainActivity , create object of InstagramApp and add set
OAuthAuthenticationListener() to that object as following in onCreate() method :

In onSuccess() method, I have called another method fetchUserName() of InstagramApp class which calls https://api.instagram.com/v1/users/1574083/?access_token=ACCESS-TOKEN API which is used to get all information such as

  • User full name
  • User name
  • Profile photo path
  • Number of photos uploaded by user
  • No of following and followers etc.

I have stored this information in Hashmap. On view info button click, all the information will be displayed as alert dialog.

Code for the MainActivity is as following:

I hope you find this Instagram Integration in android tutorial blog helpful. If you are facing any issues or have any questions regarding instagram integration please feel free to comment over here, I would be glad to help you ASAP.

Also check out following Android Integration:

Learning Android sounds fun, right? Why not check out our other Android Tutorials?

Got an Idea of Android App Development? What are you still waiting for? Contact us now and see the Idea live soon. Our company has been named as one of the Best Android App Development Company in India.

Shraddha Gadesha

I am android developer, and do development not because to get paid or get adulation by the public, but because it is fun to program. I have been working in this field since one and half year.

Источник

Instagram open source client android

Codepath Android Bootcamp: Instagram Client

Time Spent: 15hrs

###Walkthrough

###Features:

Required User Stories:

  1. User can scroll through current popular photos from Instagram — DONE
  2. For each photo displayed, user can see the following details: — DONE
    1. Graphic, Caption, Username
    2. (Optional) relative timestamp, like count, user profile image
Читайте также:  Ваш android может принимать sms или звонки во время процесса подтверждения номера

Optional User Stories:

  1. Add pull-to-refresh for popular stream — DONE
  2. Show latest comment for each photo — DONE
  3. Display each photo with the same style and proportions as the real Instagram — DONE
  4. Display each user profile image using a RoundedImageView — DONE
  5. Display a nice default placeholder graphic for each image during loading — DONE
  6. Improve the user interface through styling and coloring — DONE

###Libraries Used

  1. Android_Async-Http
  2. Picasso
  3. RoundedImageView

About

Instagram Client for android as part of Codepath Android Bootcamp

Источник

Instagram open source client android

InstagramClient is an android app that allows a user to check out the most popular photos on Instagram

Submitted by: Khoa Bui

Time spent: 11 hours

The following required functionality is completed:

  • User can scroll through current popular photos from Instagram (5 points)
  • For each photo displayed, user can see the following details:
  • Graphic, Caption, Username (2 points)
  • Optional: relative timestamp, like count, user profile image (3 points)

The following optional features are implemented:

  • Advanced: Add pull-to-refresh for popular stream with SwipeRefreshLayout (1 point)
  • Advanced: Show latest comment for each photo (bonus: show last 2 comments) (1 point + 1 bonus)
  • Advanced: Display each user profile image using a RoundedImageView (2 points)
  • Advanced: Display each user profile image using a RoundedImageView (2 points)
  • Advanced: Display a nice default placeholder graphic for each image during loading (read more about Picasso) (1 point)
  • Advanced: Improve the user interface through styling and coloring (1 to 5 points depending on the difficulty of UI improvements)
  • Bonus: Allow user to view all comments for an image within a separate activity or dialog fragment (3 points)
  • Bonus: Allow video posts to be played in full-screen using the VideoView (2 points)
  • Bonus: Apply the popular Butterknife annotation library to reduce view boilerplate. (1 point)

Here’s a walkthrough of implemented user stories:

GIF created with LiceCap.

Challenges encountered while building the app: (To be updated)

Источник

Open-source alternative Instagram client on Android.

Overview

THERE ARE CURRENTLY NO OFFICIAL GOOGLE PLAY RELEASES. PLEASE REPORT ANY OCCURRENCES TO US.

Instagram client; previously known as InstaGrabber.

By installing, you indicate your acceptance of Terms of Service and Privacy Policy.

Version status: vs.

We need maintainers!

To speed up development, we need more hands on deck. If you are proficient in Java and Android development, and are willing to perform such a public service, please contact us.

  • Use GitHub issues when possible.
  • Email: [email protected] (Synced to GitHub issues)
  • Reddit:
  • Chat (Bridged to each other):

Prominent contributors are listed here in the all-contributors specifications, see emoji key. Want to contribute to Barinsta?

This app’s predecessor, InstaGrabber, was originally made by @AwaisKing on GitLab.

Logo by Stefan Najdovski. Used under license.

Releases(v19.2.4)

v19.2.4(Jul 12, 2021)

  • arm64-v8a: c28cf77ce14032c3b9bf65e0e1e3ed4f
  • armeabi-v7a: ea2e4546d4b293513e3d757d5190a7bf
  • x86_64: 52e81a78f75388fbabbfafe98716d240
  • x86: 43aae98bce2d58cca6275e6d2b5bc449
  • Full: c356353bd74f17b8db6dd505f84d4dc7

It has been a year since I took over this project. Thank you for your continuous support! Remember that you can test out beta builds and provide feedback to the Developers!

v19.2.3(Jun 22, 2021)

  • You can now share posts via DM, as well as profiles via URL.
  • Implementation of Storage Access Framework. Download features are improved as a result, and the app no longer requires WRITE_EXTERNAL_STORAGE permission.
  • Android’s Auto Backup (of app data, including settings, logins and favourites) is no longer enabled by default. You will need to manually enable it if you wish to use it in the future.
  • Bug fixes and improvements.
    • Credits to @Vonter for contributing #1374.
  • Arabic translations.

(Please reinstall if you have the old v19.2.3, which has been recalled)

v19.2.2(May 21, 2021)

Note: Separate APKs by CPU types are now available. If you know what you’re doing, you can grab the one that corresponds to your device, which is smaller than the full APK. Otherwise, you can use the full (largest) APK. This does not affect F-Droid users. Also, the GPG signature will only be produced for the full APK, but you may request one from me if desired. I’ll include the md5 checksum for all variants though.

v19.2.1(Apr 11, 2021)

v19.2.0(Apr 4, 2021)

All GitHub release users: IMPORTANT NOTICE

The following applies to users who download from GitHub as well as https://t.me/foss_Android (prior to this version), but does not apply to F-Droid users.

  1. The builds will now contain Sentry for tracking errors. They’re opt-in (default disabled).
  2. Android Studio lost my signing key, so you must uninstall before update. You may back up your settings for restoration after update.

If you are affected by #813 and cannot access the app.

  • If you’re rooted, get these two files:
    • /data/data/me.austinhuang.instagrabber/databases/cookiebox.db : Contains favourites and login info. Use DB Browser for SQLite to read the data. Do NOT put the database back after update (the app will not launch).
    • /data/data/me.austinhuang.instagrabber/shared_prefs/settings.xml : Contains settings. You can put it back to the same location after update.
  • If you’re not rooted, there is no way to restore the data. Sorry.
Читайте также:  Очистить память андроид самсунг галакси j2 prime

Moving on, users are generally recommended to use F-Droid builds and, in the future, Google Play builds. (You would also need to uninstall before switching to F-Droid.)

v19.1.0(Mar 17, 2021)

(For those updating from v19.1.0-a1: The DM button on profiles has been restored.)

test-v19.1.0-a1(Feb 13, 2021)

READ ME FIRST

This update includes parts of the long-awaited DM update, as well as high definition downloads. This also fixes the lunar new year reel problem.

Keep in mind that this version is UNFINISHED. Most non-DM features have been tested and should work as intended. However, certain DM-related features may be unstable.

DM button on profiles has been temporarily removed.

DO NOT DOWNLOAD IF YOU HAVEN’T READ ABOVE

v19.0.5(Jan 6, 2021)

v19.0.4(Dec 31, 2020)

This is either the last release of 2020 or the first release of 2021. Thank you for your continuous support!

  • Allow sorting feed stories, as well as viewing feed stories as a vertical list
  • Support more activity notifications (Story responses, comment likes. )
  • You can now see «Suggested Users» (in «More» tab)
  • You can now see your story archive
  • You can now see comment likes (also available for anonymous users)
  • Add story «swipe up» links (as a button)
  • Add Slovak and Japanese translations
  • Bug fixes, namely #412, #438, #453, #455, #459, #470, #477, #478, #487, #489, #491 and their duplicates.

Source code(tar.gz)
Source code(zip)
app-release.apk(6.37 MB)
app-release.apk.sig(833 bytes)

v19.0.3(Dec 23, 2020)

Important: Up to one (no more) of your favourites might crash the app, in that case simply remove it from the Favorites list and re-add it. We’re sorry for any inconvenience.

Merry Christmas and Happy Holidays!

New features

  • You can now see who liked a post (logged-in users only, long-click the like button)
  • You can now translate comments, captions, and bios (logged-in users only, through Instagram’s API)
    • Bio/Comment: Click bio once, then click «translate»
    • Caption: Scroll down, then click «translate»
  • You can now respond to slider stickers on stories
  • Add Dutch and Hindi translations

Improvements

  • Feed now uses the app endpoint, which allows you to see posts from followed hashtags
  • New profile details layout
  • Viewing comments and following/followers should be faster and more stable
  • The APK is now smaller (

Bug fixes

Fix #317, #319, #326, #361, #367, #369, #375, #385, #408, #417, #429, #436 and their duplicates, as well as Reddit posts jxn0or, k1e2k7 and kd5dve.

(If you downloaded prior to 3:30pm UTC December 23rd, re-download it)

v19.0.2(Nov 30, 2020)

v19.0.1(Nov 13, 2020)

  • Restore anonymous access to hashtag and location posts to a reduced level (See below).
  • Resolve F-Droid compliance issues (See here).
  • Chinese (Traditional) and Hindi are now supported.
  • Fix #196, #247, #257, #258, #266 and #269.

Note for anonymous users only: Instagram no longer returns certain required properties on hashtag/location GraphQL, and mitigations make opening posts a bit slower. Also, your layout settings will be overridden so that no avatar nor username will be shown. AFAIK this is equally affecting Instagram on browser as well (i.e. slideshows not being shown as such, etc.) so I would assume it’s a bug but it could be them cracking down on anons.

v19.0.0(Nov 7, 2020)

YOU MUST UNINSTALL THE ALPHA VERSIONS FIRST

We are now back to the original application ID me.austinhuang.instagrabber . Hooray!

The following list is in comparison to v18.3.

Features

  • We’re now (officially) Barinsta! New name, new icon!
  • Total revamp of UI. Specifically, the profile/hashtag/location, feed, and discover tabs have been redone. Explore our new look!
  • You can now pick a feed layout and a theme!
  • You can now DM a user from their profile page!

Improvements

  • You can now skip to another user in story feed by clicking the skip buttons
  • URLs and emails in descrptions are now tappable
  • Downloaded file names now use shortcode instead of post ID
  • Support FELIX_SHARE DM message type

Fixes

  • Fix file corruption bug
  • Fix video autoplay & auto-mute issues

Source code(tar.gz)
Source code(zip)
app-release.apk(12.09 MB)

test-v19.0-a2(Sep 26, 2020)

See v19.0-a1 for important notes.

  • Added DM’ing a user from profile page!
  • Reworked all profile/hashtag/location actions (buttons => icons).
  • Fixed DM attachment bug
  • Most old features should be restored (with the most notable exception being the download indicator)

Source code(tar.gz)
Source code(zip)
app-release.apk(6.08 MB)

test-v19.0-a1(Sep 14, 2020)

This is the UI change trial build. Features are subject to adjustments.

WARNING

Since this is a pre-release (aka. non-production-ready), a separate application ID is assigned to it: me.austinhuang.instagrabbr (without e ). This means you can use the current release (v18.2 or v18.3) parallel to this pre-release.

Your settings are not carried over from the current release, since it’s a separate app. Your settings made in this pre-release will not be carried over to the current release either. However, once we are ready to publish a full release, we will revert to the original application ID, and then you can update your original app and retrieve your settings.

Читайте также:  Экран зеркало для андроид

v18.3(Sep 8, 2020)

This release only contains translations and bug fixes, specifically addressing #115, (dup. #118, #120 and #123), #124, #126 and #127. No new features are implemented.

This is the final regular release for the old UI/codebase. Moving on, it will be moved into a legacy branch, and updates will only include API changes and (significant) bug fixes.

Details about the trial releases for the new UI/codebase will be released later.

v18.2(Sep 1, 2020)

Non-DM

  • You are alerted before unfollowing a private account
  • Update checker can now be toggled
  • «Swipe up» story sticker type is now supported
  • Unread DM are now indicated
  • You can now mark DMs as seen, either automatically (settings) or manually
  • You can now kick DM members
  • «Clip» message type (basically sharing reels) is now supported

Bug fixes

  • Proper login support for those under Android 8 (#76, #89, Telegram-7566, Telegram-7573)
  • Temporary Glide error handling (#90, #98, #105, Telegram-7963) («Temporary» because we’re phasing Glide out in the next version)
  • New line in DM message (#104)
  • URL parser (#92, Telegram-7843)
  • Comments query hash change (#100)
  • Hashtag query hash change (#106, Telegram-8010)
  • MultiDirectDialog location unserializable fix (Telegram-7880)
  • Notification mark-as-read

Source code(tar.gz)
Source code(zip)
app-release.apk(4.69 MB)

v18.1(Aug 22, 2020)

v18.0(Aug 21, 2020)

We’re on F-Droid now, but where’s the description and screenshots? Let’s see what happens when I publish this version.

  • InstaGrabber will check activity/notifications every minute, when the app is on and when you’re logged in
  • Changes to DM interfaces (#65)
  • You can now unsend messages
  • Adding favourite button on profile views (#61)
  • Enforcing a limit of 100 posts per download due to #63 & #67
  • Fix updater

Source code(tar.gz)
Source code(zip)
app-release.apk(4.66 MB)

v17.9(Aug 18, 2020)

v17.8(Aug 14, 2020)

v17.7(Aug 11, 2020)

v17.6(Aug 7, 2020)

The Answer to the Ultimate Question of Life, the Universe, and Everything is 42.

  • Implements #36 and #37, both massively improve the feed stories bar
  • Story viewer will tell you to slow down if you scroll across users too fast (Instead of launching another window)
  • Fixes a bug where emoji messages in DM crash the app
  • Improvements on login/logout

(No new features in this version, sorry. Also 42 is the build code)

v17.5(Aug 6, 2020)

v17.4(Aug 6, 2020)

v17.3(Aug 5, 2020)

We’re now listed on Up for Grabs!

  • You can now use discover by topics
  • You can now see posts you liked (it’s in your own profile, also despite supposedly having a limit of 300 InstaGrabber seems to let you scroll infinitely)
  • Some DM improvements, including #28 (Our first real PR!) & make sure messages are attributed to the right person

Source code(tar.gz)
Source code(zip)
app-release.apk(4.49 MB)

v17.2(Aug 4, 2020)

v17.1(Aug 3, 2020)

Thank you, kind redditors!

READ: WAIT FOR v17.2 IF YOU FOLLOW MORE THAN 500 PEOPLE

READ: If you downloaded before 3am UTC August 4, you need to re-download.

  • You can now respond to question boxes in stories
  • You can now check out story mentions (except non-Spotify music stickers, but you can hear them by playing the story)
    • Above 2 does not apply to highlights
  • You can now click on locations from feed
  • Fixed a bug where you cannot access your own follower/following list when you are private and have no posts

Source code(tar.gz)
Source code(zip)
app-release.apk(4.47 MB)

v17.0(Aug 1, 2020)

READ: If you upgraded from a previous version, you need to press Quick Access (compass icon) at least once to retrieve your favourites and enable favouriting new accounts, otherwise your app will crash. Your favourites will not show up on first click but it’ll happen on the second click.

READ: If you downloaded before 1:35am UTC August 2nd, you need to re-download it.

  • You can now see tagged/»saved» posts. Tagged will work without login.
  • You can now write comments, and reply/like/delete comments through the menu (by clicking the comment)
    • Liked comments are shown with a pink background.
  • You can now share posts in the post viewer.
  • You can now respond to green/red polls in stories (you also get to see results before voting)
  • You can now open Spotify if a story has linked it (non-playing ones)
  • Geotag viewing/searching support
  • Added automatic cookie detection on login
  • Search field is now empty if you’re viewing your own profile while logged in
  • Post like counts are now displayed (The button texts are slightly reduced to accommodate @world_record_egg) (logged in only)
  • Mute buttons are changed to display the current status (i.e. muted icon when muted, sound icon when not muted)
  • Added some new user guidance stuff
  • Fixed bugs related to the «Downloaded» icon
  • Fixed a bug relating to viewing feed stories
  • Fixed a bug where scrolling in full screen causes it to quit full screen

Note: v16.8 introduces an F-Droid button as update checker, however since F-Droid is unexpectedly slow in doing things, it is not functional, and please do not report «it’s not working» because I know it’s not.

Источник

Оцените статью