-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making it work with the 2020 API change #34
Comments
Sorry for hijacking this thread! I know that the longterm access token is the recommended way for showing someones' feed. But I wonder if The 60 days are described here: @oneWaveAdrian And thanks for your snippet. Actually helped me :) |
I have the same question as @sebastianjung, but also another question: I tried @oneWaveAdrians snippet, and it worked fine, so thanks for that. But the feed was blocked by uBlock Origin which made me wonder if all Instagram feeds using the new API will break/be blocked by adblockers after tomorrow's API changes? Has anyone else experience that, or is this just something on my end/implementation/setup? |
@sebastianjung Glad I could help! Ja the token gave me a headache too - for now I will do it manually since I lack the proper time but I thought a simple CRON on the server should do the trick since (as far as I understood it) all you have to do is call the refresh URL once every 60 days and then use the returned token for future. As far as I understand this is the request you have to make: This will return a json array from which you could pick the new token
@zwickmueller using uBlock myself I do not get any of these issues, just tested it again and it came out clear, thank's for the hint though, I usually deactivate it on dev URLs |
So do api calls to As stated on https://www.instagram.com/developer/
But im not sure whether or not the self/media-route is affected by this. Can someone clarify this? |
Sorry mate, I ditched the old auth completely, because of that uncertainty 😕 |
@oneWaveAdrian Nice, it's working!! any idea of how i can get the content also? now it's just returning some images only.. |
@oneWaveAdrian Okey the text is working!! 😅 |
That's what the |
For anyone interested: |
@sebastianjung I can confirm the same thing: API is working for existing tokens but new access tokens are no longer being provisioned. Does anyone know a simple way of getting the long term token to use the new |
@madebycaliper You can do it manually by sending a simple
Like this:
|
@oneWaveAdrian thanks for your reply. The problem for me is that Facebook/Instagram isn't allowing anymore client ID registrations for the old API and the process to get one for the new version is confusing to me. You used to be able to simply obtain an access token if you knew a couple details about the user account and have a client ID, and now it seems like you need to get vetted by Facebook for developer access. Am I missing something here? Is there an easy way to obtain the access_token and client secret? |
Sorry don't know. I have a fb dev account and there it's as "simple" as creating an app and clicking a button to request the secret. But i agree this became unnecessarily complicated for simply displaying pictures. >I know banking software that's less secure...
|
@oneWaveAdrian 🤣 🎯 |
This stopped working
|
Is it possible to describe the issue a little more? Which endpoint did you use? |
For @drKreso and anyone else still having trouble with the api: A friend of mine told me about this package: Check example 7 on their demo page for using the script without a template (just retrieving the data): https://www.sowecms.com/demos/InstagramFeed/ Did the job for me at least! |
@oneWaveAdrian I meant the original solution stopped working (that you already know). Your approach is working like a glove after you get access token. Since my app is not approved and I just need it for my company Instagram (one account) I added Instagram tester to get the token. It will stop working after two months, but I can adjust until then :) I think they are making it convoluted on purpose. |
|
I'm using some variation of this in one of my websites! Very glad you made this. Would you be willing to either make a PR to this repo with your version or publish your own on npm? |
I'm sorry I don't have the time to maintain a repo, so it will be this snippet for now... |
Requesting Permission to follow supporting it as a maintainer. |
@hvitis go ahead 👍 |
@kevinongko & @oneWaveAdrian thanks so much for your input! I was just following along and couldn't manage to get the GET request working with your provided URL. There might have been a change again with the newer API version 10.0. So I ended up using it with this URL and it works for me:
|
@case112 you're using facebook graph instead of instagram graph - did they merge that? Do you have any documentation to back it up that the insta graph API does not work anymore? My existing deployments still seem to work somehow... |
Unfortunately InstagramFeed is now archived.. in case anyone is sick of Instagram tokens and still needs to display simple Instagram feed widget on the website - take a look at https://github.com/restyler/inwidget-proxified which currently works fine (PHP/JS widget) |
Hey @kevinongko thanks for the amazing work on this!
Unfortunately with the recent API change (see https://www.instagram.com/developer/) it did not work for me anymore.
FB changed the structure entirely, I made a snippet maybe that helps in rewriting your component.
I am very sorry not to be able to rewrite yours, too backlogged atm, but I want to give back and maybe this saves some fellas from headaches in the meantime:
https://gitlab.com/snippets/1957175
The text was updated successfully, but these errors were encountered: