{"id":32289752,"url":"https://github.com/ayeshaiftikhar/insta_login","last_synced_at":"2026-02-22T00:01:43.370Z","repository":{"id":211539187,"uuid":"729164203","full_name":"AyeshaIftikhar/insta_login","owner":"AyeshaIftikhar","description":"Connect instagram profile to flutter application easily. Youtube Video Demo: https://youtube.com/shorts/wElaG-Kq_20","archived":false,"fork":false,"pushed_at":"2024-12-30T12:28:41.000Z","size":3696,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T16:45:22.442Z","etag":null,"topics":["android","cross-platform","display-api","flutter","instagram","instagram-api","ios","web"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/insta_login","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AyeshaIftikhar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"AyeshaIftikhar","patreon":"AyeshaIftikhar","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"buy_me_a_coffer":"ayeshaiftikhar","thanks_dev":"ayeshaiftikhar","custom":["https://wa.me/923137128036?text=Thank%20you%20for%20supporting%20me%20%E2%9D%A4%0AI%20will%20share%20my%20bank%20details%20with%you%2-soon.%20%E2%9D%A4%0AReceived%20from%20Github!"]}},"created_at":"2023-12-08T15:11:10.000Z","updated_at":"2024-12-30T12:28:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"a03becdc-0a40-4f88-b31e-3a32d603b64b","html_url":"https://github.com/AyeshaIftikhar/insta_login","commit_stats":null,"previous_names":["ayeshaiftikhar/insta_login"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/AyeshaIftikhar/insta_login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaIftikhar%2Finsta_login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaIftikhar%2Finsta_login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaIftikhar%2Finsta_login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaIftikhar%2Finsta_login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AyeshaIftikhar","download_url":"https://codeload.github.com/AyeshaIftikhar/insta_login/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaIftikhar%2Finsta_login/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29699335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T23:35:04.139Z","status":"ssl_error","status_checked_at":"2026-02-21T23:35:03.832Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cross-platform","display-api","flutter","instagram","instagram-api","ios","web"],"created_at":"2025-10-23T02:44:03.139Z","updated_at":"2026-02-22T00:01:43.364Z","avatar_url":"https://github.com/AyeshaIftikhar.png","language":"C++","funding_links":["https://github.com/sponsors/AyeshaIftikhar","https://patreon.com/AyeshaIftikhar","ayeshaiftikhar","https://thanks.dev/ayeshaiftikhar","https://wa.me/923137128036?text=Thank%20you%20for%20supporting%20me%20%E2%9D%A4%0AI%20will%20share%20my%20bank%20details%20with%you%2-soon.%20%E2%9D%A4%0AReceived%20from%20Github!"],"categories":[],"sub_categories":[],"readme":"# Important Notice\nSince the `Instagram Basic Display API` has been discontinued by Facebook. This plugin is not longer maintained and up-to-date. And it will not work in any future as well.\n\n\n# Instagram Login/Connect\n\nThis package is intended to let developers easily integrate instagram integration in Flutter Application. We will be using `Instagram Basic Display API`. Currently it is supporting the following:\n\n- Connect to Instagram\n- Get Access Token for a particular user\n- Get `userid`, `username`, `account_type`, `media_count` and `media`.\n\n[![Thumbnail](https://github.com/AyeshaIftikhar/insta_login/blob/main/demo/2.jpeg)](https://youtube.com/shorts/wElaG-Kq_20)\n\n\n## Upcoming Features\n\n- Profile details in terms of (captions, email, etc)\n- Download Reels\n- Complete Working support on Web, MacOS, Linux, \u0026 Windows Platform\n\n## Getting started\n\n```dart\ndart pub add insta_login\n```\n\n```dart\nimport 'package:insta_login/insta_login.dart';\n```\n\n## Usage\n\n```dart\nimport 'package:insta_login/insta_login.dart';\nInstaView(\n    instaAppId: '215643524910532',\n    instaAppSecret:'b19d87bf98b632e0319f2ebab495b345',\n    redirectUrl: 'https://ayesha-iftikhar.web.app/',\n    onComplete: (_token, _userid, _username) {\n        WidgetsBinding.instance.addPostFrameCallback(\n        (timeStamp) {\n            setState(() {\n                token = _token;\n                userid = _userid;\n                username = _username;\n            });\n        });\n    },\n),\n```\n\n## Setup\n\n- Create an app on [Facebook Developer Platform](), by selecting `other` and App Type as `Comsumer or other`.\n- Enable `Instagram Basic Display API`, and from the bottom create an application that will be your instagram app whose appid and secret we will be using in our api calls.\n- Add Some instagram accounts to test the integration but after adding the account accept the invitation from `Setting \u003e App and Websites` in your instagram account. You can follow this [link](ttps://www.instagram.com/accounts/manage_access/) as well.\n- On Facebook Developer Platform, Add your required platforms in the settings.\n- _**Note:** The Platform setup is same as, we are suppose to setup our application for facebook login and other services._\n\n\n[setup](https://github.com/AyeshaIftikhar/insta_login/blob/main/setup/1.jpg)\n\n\n## Example\n\n```dart\n\nclass _HomeState extends State\u003cHome\u003e {\n  String token = '', userid = '', username = '', accountType = '';\n  int mediaCount = -1;\n  List\u003cdynamic\u003e mediaList = [];\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(title: const Text('Plugin example app')),\n      body: Center(\n        child: Padding(\n          padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 20),\n          child: Column(\n            mainAxisAlignment: MainAxisAlignment.center,\n            children: [\n              if (token != '' || userid != '' || username != '')\n                Expanded(\n                  child: Column(\n                    crossAxisAlignment: CrossAxisAlignment.start,\n                    children: [\n                      const Center(\n                        child: Text(\n                          '------Instagram Connected------',\n                          textAlign: TextAlign.center,\n                          style: TextStyle(\n                            fontWeight: FontWeight.bold,\n                            fontSize: 18,\n                          ),\n                        ),\n                      ),\n                      5.vertical,\n                      InfoWidget(title: 'Access Token', subtitle: token),\n                      InfoWidget(title: 'Userid', subtitle: userid),\n                      InfoWidget(title: 'Username', subtitle: username),\n                      const SizedBox(height: 10),\n                      if (accountType != '' || mediaCount != -1)\n                        Column(\n                          crossAxisAlignment: CrossAxisAlignment.start,\n                          children: [\n                            const Center(\n                              child: Text(\n                                '------Basic Profile Details------',\n                                textAlign: TextAlign.center,\n                                style: TextStyle(\n                                  fontWeight: FontWeight.bold,\n                                  fontSize: 18,\n                                ),\n                              ),\n                            ),\n                            5.vertical,\n                            InfoWidget(\n                              title: 'Media Count',\n                              subtitle: mediaCount.toString(),\n                            ),\n                            InfoWidget(\n                              title: 'Account Type',\n                              subtitle: accountType,\n                            ),\n                          ],\n                        )\n                      else\n                        Center(\n                          child: ElevatedButton(\n                            onPressed: () async {\n                              await Instaservices()\n                                  .getContent(\n                                      accesstoken: token, userid: userid)\n                                  .then((value) {\n                                if (value != null) {\n                                  accountType = value['account_type'];\n                                  mediaCount = value['media_count'];\n                                }\n                                setState(() {});\n                              });\n                            },\n                            child: const Text('Get Basic Profile Details'),\n                          ),\n                        ),\n                      const SizedBox(height: 10),\n                      if (mediaList.isNotEmpty)\n                        Expanded(\n                          child: Column(\n                            children: [\n                              const Center(\n                                child: Text(\n                                  '------Media List------',\n                                  textAlign: TextAlign.center,\n                                  style: TextStyle(\n                                    fontWeight: FontWeight.bold,\n                                    fontSize: 18,\n                                  ),\n                                ),\n                              ),\n                              5.vertical,\n                              Expanded(\n                                child: GridView.count(\n                                  crossAxisCount: 3,\n                                  crossAxisSpacing: 10,\n                                  mainAxisSpacing: 10,\n                                  children: List.generate(\n                                    mediaList.length,\n                                    (index) {\n                                      var media = mediaList[index];\n                                      return InkWell(\n                                        onTap: () {\n                                          Navigator.push(\n                                            context,\n                                            MaterialPageRoute(\n                                              builder: (context) =\u003e\n                                                  DetailScreen(\n                                                url: media['media_url'],\n                                                media: media,\n                                              ),\n                                            ),\n                                          );\n                                        },\n                                        child: Container(\n                                          alignment: Alignment.center,\n                                          decoration: BoxDecoration(\n                                            borderRadius:\n                                                BorderRadius.circular(10),\n                                            image: DecorationImage(\n                                              image: NetworkImage(\n                                                  media['media_url']),\n                                            ),\n                                          ),\n                                          child: media['media_type'] == 'VIDEO'\n                                              ? const Icon(Icons.videocam)\n                                              : null,\n                                        ),\n                                      );\n                                    },\n                                  ),\n                                ),\n                              ),\n                            ],\n                          ),\n                        )\n                      else\n                        Center(\n                          child: ElevatedButton(\n                            onPressed: () async {\n                              await Instaservices()\n                                  .fetchUserMedia(\n                                userId: userid,\n                                accessToken: token,\n                              )\n                                  .then((value) {\n                                mediaList = value;\n                                setState(() {});\n                              });\n                            },\n                            child: const Text('Get Media'),\n                          ),\n                        )\n                    ],\n                  ),\n                )\n              else\n                SizedBox(\n                  height: 50,\n                  child: ElevatedButton(\n                    onPressed: () {\n                      Navigator.of(context).push(\n                        MaterialPageRoute(\n                          builder: (context) {\n                            return InstaView(\n                              instaAppId: '215643524910532',\n                              instaAppSecret:\n                                  'b19d87bf98b632e0319f2ebab495b345',\n                              redirectUrl: 'https://ayesha-iftikhar.web.app/',\n                              onComplete: (_token, _userid, _username) {\n                                WidgetsBinding.instance.addPostFrameCallback(\n                                  (timeStamp) {\n                                    setState(() {\n                                      token = _token;\n                                      userid = _userid;\n                                      username = _username;\n                                    });\n                                  },\n                                );\n                              },\n                            );\n                          },\n                        ),\n                      );\n                    },\n                    child: const Text('Connect to Instagram'),\n                  ),\n                ),\n            ],\n          ),\n        ),\n      ),\n    );\n  }\n}\n```\n\n## Screenshots\n\n| ![screenshot 1](https://github.com/AyeshaIftikhar/insta_login/blob/main/demo/2.jpeg) |  ![screenshot 2](https://github.com/AyeshaIftikhar/insta_login/blob/main/demo/flutter_01.png) | ![screenshot 3](https://github.com/AyeshaIftikhar/insta_login/blob/main/demo/flutter_02.png) |\n| --------------------------------------- | --------------------------------------- | --------------------------------------- |\n| ![screenshot 4](https://github.com/AyeshaIftikhar/insta_login/blob/main/demo/flutter_03.png)|       \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayeshaiftikhar%2Finsta_login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayeshaiftikhar%2Finsta_login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayeshaiftikhar%2Finsta_login/lists"}