Instagram API stopped authorizing - instagram-api

I'm having new issues with Instagram users authorizing my app. After the user presses authorize it doesn't do anything. Has there been any new changes? I can't seem to duplicate the issue on my own but I'm getting a ton of messages from my users.

I found the answer to the issue here -
https://api.instagram.com/oauth/authorize api login error
It seems to be an unaddressed Instagram bug

Related

Getting API error occurred: account_inactive when using Slack Postmessage api to send message to slack user

I am building a slack app that would send messages to user. Recently I am getting an error which says "account_inactive". The slack documentation describes the following error as below
Authentication token is for a deleted user or workspace when using a bot token.
I tried sending a message to a deactivated slack user using "chat.postMessage" using a bot token "xoxb-token" and the API returns success all the time. It would be great if anyone can help me with what causes this error.
PS: I am not using BoltJS, I am using he JS SDK directly.
Sounds like your app has been uninstalled from the workspace. You can try calling auth.test to see if the token is still valid.
I've come across this error recently.
In my case, the cause was that when a user account is deactivated, some apps they've installed are also deactivated. If this is the case for you, a member with the permission to manage apps will need to reactivate it.
More information can be found in this Slack help article.

Instagram webhook not activating

My goal is to use the Facebook webhooks to get a notification whenever an IG user mentions my IG account. For that I have followed these steps:
I have created a Facebook page and connected it with an Instagram business account.
I have created a Facebook app (which is now live) and added the product "webhooks".
I have connected my app with my page.
I have created a webhook and subscribed to the mentions event.
I have tested the webhook, using the tools provided by Facebook and it works.
The problem I'm facing is that I can't get my app to work with real data. I have tried to mention my business IG account from my IG personal account, but nothing happens. My callback url is not getting called.
My app doesn't need users to login, so I'm not sure if I need to send my app for review. Do I need a special permission?
I had the same problem. For my case, when I installed the app via graph api explorer, the page token I was using didn't have the instagram_manage_insights permission. So I granted that permission, got a new token, re did the POST request to the {page-id}/subscribed_apps again with the new token and that fixed the problem. Just for the record, I used a system user token from the business manager.
Did you verified your Facebook app via app review? If not, you won't get production data via a webhook callback for the Instagram. I had the same issue and asked the Facebook support and got following response:
However, this is not the same for instagram or pages. This is just how the product teams have decided to implement it. For app review, you can show a mock process of the flow, using either the test webhook or your own process. The app review is less about technical implementation steps, but just a way to make sure that your app is going to use the permission in a way that follows our guidelines, so mocking the procedure should be fine. The reviewers understand that you do not receive webhooks in dev mode and should take this into consideration.
For more information check out following links:
Why is the Instagram Graph API webhook not working
https://developers.facebook.com/support/bugs/495933900986533/
I just figure it out of this problem.
There is a mistake in the official Instagram webhook guide:
With Graph API version 3.2, the /{page-id}/subscribed_apps edge now requires the subscribed_fields parameter, which currently does not support Instagram webhooks fields. To get around this, use your app's dashboard to subscribe.
https://developers.facebook.com/docs/instagram-api/guides/webhooks/#install-app
However, the app's dashboard subscribe is another function. You need your page to subscribe to some field to receive webhooks
Just POST /{your-instagram-connected-page-id}/subscribed_apps?subscribed_fields=feed&access_token={your-instagram-connected-page-token}
Then you will receive webhooks in live mode.

Instagram API logout link not working anymore

Does anybody know why this link is not working?
https://instagram.com/accounts/logout
One week ago it was working, but now it doesn't log me out anymore :/
Probably problems with the Instagram API, is it completely necessary to use the logout URL?, because it seems that you could only delete the token. If the user doesn't want your app to access their data they will cancel your app access. See: How to log out of the instagram API?

I want to show the last photos of my instagram on my website, can I do that with their API?

I'm using a javascript code (instafeed.js) to connect to the Instagram API and get the last photos of my Instagram account. The problem is that the thing works for a few days and then the token I got from instagram "expires" or something and it stops working. It throws me Uncaught Error: Error from Instagram: The access_token provided is invalid.
I believe (I might be wrong) it's because I never sent my "app" for review and they are giving me a "sandbox mode" token. Or should I be able to use their API for this simple thing without approval?
Should I send my website for review or is this not an intended use of their API? And if it's not, what should I do?
You should be able to use API in sandbox mode to access your latest 20 posts. You dont need to get reviewed.
Not sure about access_token expiring, in live mode it never expires, so I expect sandbox to be same

(#200) Feed story publishing to other users is disabled for this application

we are sending invitation via facebook graph api. and our code is working fine before some days but now i always fount error (#200) Feed story publishing to other users is disabled for this application in our Application.
please suggested me anybody what to do.
Facebook removed this on Feb 6th.
See similar question here and here.

Resources