instagram-api | Instagram API for public profiles | REST library

 by   tanuj101 JavaScript Version: 2.0.6 License: GPL-2.0

kandi X-RAY | instagram-api Summary

kandi X-RAY | instagram-api Summary

instagram-api is a JavaScript library typically used in Telecommunications, Media, Advertising, Marketing, Web Services, REST, Nodejs applications. instagram-api has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

To use CLI mode install like:-.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              instagram-api has a low active ecosystem.
              It has 14 star(s) with 9 fork(s). There are no watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 4 have been closed. On average issues are closed in 115 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of instagram-api is 2.0.6

            kandi-Quality Quality

              instagram-api has 0 bugs and 0 code smells.

            kandi-Security Security

              instagram-api has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              instagram-api code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              instagram-api is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              instagram-api releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of instagram-api
            Get all kandi verified functions for this library.

            instagram-api Key Features

            No Key Features are available at this moment for instagram-api.

            instagram-api Examples and Code Snippets

            No Code Snippets are available at this moment for instagram-api.

            Community Discussions

            QUESTION

            Instagram API, fetching instagram images with client credentials instead of users access tokens
            Asked 2022-Mar-09 at 18:31

            I need to show images from my Instagram business account to my website. I just need the last 5 images. I do not need other Instagram accounts and access tokens (I want to pull images with my user).

            By documentation: https://developers.facebook.com/docs/instagram-api#instagram-graph-api

            • I created all Facebook apps
            • Created access token with the Instagram authorization window (do not want)
            • I am fetching images with user's access tokens (do not want)
            • Also I tried https://www.instagram.com/:name/?__a=1 but cors issue with images

            Any idea how to pull images from Instagram without the Instagram authorization window on my website? Is it possible to create an access token with client credentials flow?

            ...

            ANSWER

            Answered 2022-Mar-09 at 18:31

            Using OAuth with the access tokens is the only way to pull content from Instagram. Instagram doesn't have a public API - if there were no authorization it would be a public API.

            What you need is a back-end service. Since you're only getting your own data, generate the access tokens and store them server side - a one time event. Create an endpoint to get the last 5 posts and server-side make the Instagram API call with the access tokens. The front-end will call the your new endpoint and display the posts.

            Another option is a paid social media aggregator.

            Source https://stackoverflow.com/questions/71398776

            QUESTION

            Post image to Instagram from a Javascript using Instagram API
            Asked 2021-Sep-07 at 12:38

            Instagram Graph API:
            https://developers.facebook.com/docs/instagram-api/

            Content Publishing:
            https://developers.facebook.com/docs/instagram-api/guides/content-publishing/

            My code Javascript in Google App Script:

            ...

            ANSWER

            Answered 2021-Aug-26 at 06:22

            First, we create IG Container by hitting the endpoint.

            Source https://stackoverflow.com/questions/68930697

            QUESTION

            PHP check & resize image to meet Instagram requirements
            Asked 2021-May-07 at 12:18

            The Instagram image ratio requirements are:

            • 1:1
            • 4:5
            • 1.91:1
            • 16:9

            Readed here and here. The documentation also says:

            (...) Advise the app user to try again with an image that falls withing a 4:5 to 1.91:1 range.

            Althought the documentation doesn't say, I know for a fact that publishing a photo with 1:1 ratio works.

            So I would like to check if the image uploaded meets the requirements and if not resize to meet them (either by downsizing or upsizing). I'm using Laravel with Image Intervention library.

            To check the aspect ratio, I'm using the following code:

            ...

            ANSWER

            Answered 2021-May-07 at 12:18

            Solved.

            The code to check the aspect ratio was not correct. To check it properly all we need to do is divide the width for the height and see if it fits the range of Instagram requirements.

            Source https://stackoverflow.com/questions/67421536

            QUESTION

            How can I get engagement data over time for an Instagram business account user and media post (IG Graph API)?
            Asked 2021-May-03 at 15:40

            I would like to know if there is a way to get engagement for a month (ex. get total engagement from current date minus 30 days) for an Instagram post in the Instagram Media Insights API or total engagement from a month from Instagram User Insights API.

            As of now from the IG Media Insights, it seems you can only get cumulative engagement (see snippet below taken from IG Media Insights API:

            ...

            ANSWER

            Answered 2021-May-03 at 15:40

            For IG Media Insights you can only see lifetime metrics. If you wanted a monthly breakdown you would have to build a mechanism to query the lifetimes every month and calculate the delta to track monthly change.

            For IG Account Insights you can use metrics which offer days_28 period or use the since and until filtering.

            Source https://stackoverflow.com/questions/67337880

            QUESTION

            Instagram Grap Api returns empty data for recent media GET request
            Asked 2021-Apr-26 at 21:57

            I'm trying to get all related media to my hashtag #Corona which is identified with ig-hashtag-id: 17843934877037015 so i'm sending my GET Request: GET graph.facebook.com/17843934877037015/recent_media?user_id=myUserID It's supposed to work like it's shown on the facebook documentation here: https://developers.facebook.com/docs/instagram-api/guides/hashtag-search but i'm getting empty Data back as Json Result.

            ...

            ANSWER

            Answered 2021-Apr-26 at 21:57

            There is an active bug causing this. A fix should be landing soon. Please subscribe to the bug report below for updates; https://developers.facebook.com/support/bugs/307613840758756/

            https://developers.facebook.com/status/issues/471343314132946/

            Source https://stackoverflow.com/questions/67254212

            QUESTION

            Instagram Graph API. Content Publishing. Publishing Videos
            Asked 2021-Apr-12 at 09:02

            I can't find correct video .mp4 format what will be support by Instagram. Any body did something like this? .Supported Video Requirements.

            I tried .mp4 ratio 1:1, 4:5, 16:9 in response Unsupported format.

            What is means? container for video? Help please

            ...

            ANSWER

            Answered 2021-Apr-12 at 06:21

            My browser refuses to load https://104.131.59.122/uploads/my_images/gallery_429/im_295_1617796300.mp4, because of the untrusted certificate.

            Facebook is strict about proper SSL as well, so you will either have to use a plain HTTP URL, or make your SSL setup use a valid certificate, issued/backed by a trusted authority.

            Source https://stackoverflow.com/questions/66986007

            QUESTION

            Facebook Login is unable to request instagram_basic permission
            Asked 2021-Apr-06 at 06:28

            I follow the Getting Started Guide to implement Facebook Login with instagram_basic and pages_show_list.

            pages_show_list works. But instagram_basic permission keeps failing with the error message.

            Invalid Scopes: instagram_basic. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions"

            The Instagram account is a business type. I've linked the Instagram account with a Facebook page which I am the admin.

            The Facebook Developer account email address is the same as the Facebook account.

            This is my code asking permissions

            ...

            ANSWER

            Answered 2021-Apr-06 at 06:28

            It is important which app type you choose when setting up your app, different app types have access to different sets of features.

            https://developers.facebook.com/docs/development/create-an-app/app-dashboard/app-types

            The “Consumer” type should have access to Instagram Basic Display API, according to that list.

            pages_show_list will require the “Business” type though.

            Source https://stackoverflow.com/questions/66771708

            QUESTION

            Send data in body via POST - Flask
            Asked 2021-Feb-02 at 01:49

            I need to send a POST request to the Instagram Basic API with Flask.

            This is my code:

            ...

            ANSWER

            Answered 2021-Feb-02 at 01:49

            Where did you find that you need to serialize POST request parameters to json? You'll get JSON response, sure, but you don't need to serialize request parameters. Try just to pass dict_to_send itself as data parameter:

            Source https://stackoverflow.com/questions/66002454

            QUESTION

            Instagram: no API endpoint to create a post?
            Asked 2021-Jan-19 at 06:14

            It seems that there's no way to upload an image from command line or to make a post to instagram from command line

            Looking at the API docs here https://developers.facebook.com/docs/instagram-api/reference/media under the "creating" section it explicitly says that "This operation is not supported".

            ...

            ANSWER

            Answered 2021-Jan-19 at 06:14

            Instagram never offered an API for publishing, they always wanted you to use their App for sharing, with all the included features (filters and stuff).

            So there answer is no, there is no API for it.

            Source https://stackoverflow.com/questions/65782343

            QUESTION

            Getting a long-lived User Access Token for Instagram Graph API
            Asked 2020-Sep-02 at 15:23

            We are building a mobile app on behalf of a corporation and the API needs to be able to return the corporation's Instagram feed. We have found that implementing what should be a simple requirement incredibly difficult.

            We need to retrieve the following Instagram post data from the corporation's feed:

            • image url
            • caption
            • url to post
            • timestamp

            With this in mind we identified that we need to use the Instagram Graph API which means there are strict requirements around permissions.

            Note: We are open to using any method that returns us the required data.

            Using the Instagram Graph API we need to use the following endpoints:

            • Media (to get a list of the latest IG Media objects for a user)
            • IG Media to get detail about each media object

            This works fine but the problem lies with getting a long-lived User Access Token. To get this kind of token we need the instagram_graph_user_media permission. The Long-Lived Access Tokens documentation says:

            Long-lived tokens are valid for 60 days and can be refreshed as long as they are at least 24 hours old but have not expired, and the app user has granted your app the instagram_graph_user_profile permission.

            How can the app user (the corporation) grant the app the permission? As I mentioned this is for an app on behalf of a corporation.

            Any help here would be really appreciated!

            Thanks

            ...

            ANSWER

            Answered 2020-Aug-26 at 14:35

            Unsure if this will be of any help, but battling exactly the same thing today came across this and it made for some intresting reading https://solrevdev.com/2020/05/28/instagram-basic-display-api.html

            Source https://stackoverflow.com/questions/63592453

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install instagram-api

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link