Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
instagram-fetcher
Advanced tools
Fetch Instagram Business and Creator account feeds with this Node.js package. This package uses the Instagram Graph API to fetch all posts from an authorized Instagram Business or Creator account, including non-public posts.
Readme
Fetch Instagram Business and Creator account feeds with this Node.js package. This package uses the Instagram Graph API to fetch all posts from an authorized Instagram Business or Creator account, including non-public posts.
To install the package, use the following command:
npm install instagram-business-fetcher
To use the package, you will need to obtain an access token from the Instagram Graph API. You can do this by following the official documentation.
Once you have an access token, you can use the package in your Node.js application by importing the InstagramFetcher class and initializing it with your access token:
const InstagramFetcher = require('instagram-business-fetcher');
const fetcher = new InstagramFetcher('your_access_token_here');
fetcher.fetch()
.then((media) => {
console.log(media);
})
.catch((error) => {
console.error(`Error: ${error.message}`);
});
The fetch method will return an array of media objects, which include information about the post such as its ID, type, URL, caption, and timestamp.
The package uses the dotenv module to load configuration from a .env file. You should create a .env file in the root directory of your project and add the following line:
ACCESS_TOKEN=your_access_token_here
Replace your_access_token_here with your actual Instagram Business or Creator account access token.
This package is licensed under the MIT License.
FAQs
Fetch Instagram Business and Creator account feeds with this Node.js package. This package uses the Instagram Graph API to fetch all posts from an authorized Instagram Business or Creator account, including non-public posts.
The npm package instagram-fetcher receives a total of 2 weekly downloads. As such, instagram-fetcher popularity was classified as not popular.
We found that instagram-fetcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.