<aside> ÂŠī¸ Author: _yudax
Website: instapost
Contact Me: [email protected]
Contributors:
This tool enables you to publish Instagram posts directly from Notion, with the scheduling posts feature that helps you to plan and publish posts automatically. All in one place!
<aside> â ī¸ This project is currently beta and uses Instagram's private API to publish posts. Use it at your own risk.
</aside>
You need to complete the steps below to use the tool.
<aside>
đĄ Each Step has âļī¸ See How?
toggle that contains a GIF that shows how to complete the step.
</aside>
đ Open the link below and click the Duplicate
button on the top right. this creates a new page in your workspace where you can manage Instagram posts.
Share
button on the top rightShare to the web
option.Create a new integration
submit
Internal integration Token
(you will need it in step 4.1.1)<aside> â ī¸ Don't forget to Invite the integration to the Notion page
share
invite
</aside>
4.1 - ⥠Once-click setup (Recommended)
4.1.1 - đ Use one of the One-click setup links Below to deploy to your favorite hosting provider.
For every provider, you will be asked to enter these properties.
**IG_USERNAME** is your Instagram account username.
****IG_PASSWORD** **is **your **Instagram account password.
****PAGE_LINK** **is the link of the Notion page that you just duplicated in step 2
****NT_SECRET** ** is the Notion internal integration secret that you created in step 3.
4.2 Manual setup
You Must have Nodejs
and Npm
installed in your machine.
git clone [email protected]:notionblog/notion-instagram.git
cd notion-intagram
npm install
.env
File (copy from .env.template
)cp .env.template .env
**IG_USERNAME=** #is your Instagram account username. (*Required)
****IG_PASSWORD=** *#*is **your **Instagram account password. (*Required)
****PAGE_LINK=** *#*is the link of the Notion page that you just duplicated in step 2 (*Required)
****NT_SECRET=** ** #is the Notion internal integration secret that you created in step 3. (*Required)
npm start
đĨŗ if You Completed these steps you can head over to your Notion page and test the Tool, Enjoy!
By increasing INTERVAL in ms (milliseconds) in environment variables solve the problem of duplicated posting.
INTERVAL=10000
You Must have Nodejs
and Npm
installed in your machine.
git clone [email protected]:notionblog/notion-instagram.git
cd notion-intagram
npm install
PM2
(a process manager)npm install pm2 -g
Create a file and name it ecosystem.config.js
in the root directory of the project
For each account, you need to add an object inside the apps
array
You need to change name
, PORT
and Instagram credentials for each instance
module.exports = {
apps: [
{
name: "ACCOUNT1",
script: './index.js',
env: {
**PAGE_LINK**: "**PAGE LINK**",**
**NT_SECRET**: "**YOUR NOTION SECRET**",**
PORT: 3000,
IG_USERNAME**: "**account1username**" ,**
**IG_PASSWORD**: "**account1password**",**
},
},
{
name: "ACCOUNT2",
script: './index.js',
env: {
**PAGE_LINK**: "**PAGE LINK**",**
**NT_SECRET**: "**YOUR NOTION SECRET**",**
PORT: 3001,
IG_USERNAME**: "**account2username**" ,**
**IG_PASSWORD**: "**account2password**",**
},
},
],
};
pm2 start ecosystem.config.js