You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create a new Instagram App, you need to register your app on the [Facebook Developer Portal https://developers.facebook.com/apps/](https://developers.facebook.com/apps/)
97
+
98
+
When asked for a use case select `Other`
99
+
When asked for an app type select `Business`
100
+
101
+
Once the app is created you need to add Instagram as a product to your app, you can do this by clicking on the `Add Product` button and selecting Instagram on the left side of the app dashboard.
102
+
103
+
Then goto `API setup with Instagram Login`, goto `Step 3.` and click `Business login settings`.
104
+
105
+
You will need to set the redirect uri to: `http://your-app-url.com/instagram/callback`
106
+
107
+
You should also set the Deauthorize callback URL to: `http://your-app-url.com/instagram/deauthorize`
108
+
109
+
You should also set the Deletion callback URL to: `http://your-app-url.com/instagram/delete`
110
+
111
+
> NOTE: The links above need to be publicly accessible so you can use tools like NGROK or Expose to expose your local development environment to the internet. When using the tools, ensure you set your `APP_URL` in your `.env` file to the url provided by the tool.
112
+
92
113
## Overriding the default routes
93
114
94
115
If you want to override the default routes, you can do so by creating a `instagram.php` file in your routes directory and adding the following code:
@@ -111,7 +132,6 @@ Then you should register the routes in your `bootstrap\app.php`:
You can get your client id and client secret by registering your app on the [Instagram Developer Portal](https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login)
131
-
132
-
When configuring your app on the Instagram Developer Portal, you will need to set the redirect uri to: `http://your-app-url.com/instagram/callback`
133
-
134
-
You should also set the Deauthorize callback URL to: `http://your-app-url.com/instagram/deauthorize`
135
-
136
-
You should also set the Deletion callback URL to: `http://your-app-url.com/instagram/delete`
137
-
138
-
The links above need to be publicly accessible. You can use tools like [Expose](https://expose.dev/) or [ngrok](https://ngrok.com/) to expose your local development environment to the internet.
139
-
When using the tools above, ensure you set your `APP_URL` in your `.env` file to the url provided by the tool.
0 commit comments