I'm just now having a hard time understanding the instagram API. Is there really no way to write a simple plugin that displays images based on latitude and longitude? The media/search endpoint needs authentication and I'm not wanting to have my users authenticate to instagram before they can see these images. But from what I read I need an access token and I'll only get the access token after doing a full OAUTH2 routine.
Thanks!
Related
I've checked many resources, and most of them claim the only way to fetch users media using an token is to create facebook app, add instagram, generate user token for yourself and fetch graph api. https://graph.instagram.com/me endpoint. Is there no other way to simply fetch user's media via official api by using access token and username?
Also, when I use /me endpoint, everything works. If I change it to /*myusername*, where I obviously put my username instead, it says that said object does not exist, cannot be loaded due to missing permissions, or does not support this operation.
So, no. If you want to use Instagram API to fetch regular( ie not business ) users' feed, you need to use Instagram Basic API.
I'm trying to build an app that gets public information from Facebook. In the past, this type of operation would require an App Token (A token that could be used on behalf of the application to query public data). I had no problem implementing this technique with Twitter and Youtube, but Facebook looks like you can only access their API by letting a user login with Facebook via OAuth, retrieve them a personal token, and give them permission to query their own information.
I see a lot of posts related to this question, but they seem outdated. I know Facebook has been under a lot of privacy pressure lately and I'm wondering if they changed it.
Here are my questions:
Is it possible to generate an App Token used to access Facebook's Graph API?
If so, where can I find the documentation for this? I can only find information on using a user token.
I prefer to use Node.js as my backend, so any direction on where to start there would also be appreciated.
User Profiles: They always require a User Token, there is no way to access User Data without explicit authorization of the User, no matter if data is public or not.
Pages: If you manage the Page, you can use a Page Token of that Page to access data. If you want to access other Pages, you need to apply for Page Public Content Access - after that, you can use an App Token for those Pages.
In other words: App Tokens for public Pages (with PPCA), Page Tokens for Pages you own, User Tokens for User Profiles.
Btw, App Tokens do not need to be "generated", they are just "App-ID|App-Secret" (with a pipe in the middle).
I´m trying my self with the Instagram API, but I can´t understand the whole acces_token thing.
I understand that it is for authorization to access information, but why is it so so hard to get a token to get public information ?
For example with facebook you just need a profile to get your personal access_token and with that you can gather information. Why is this not possible with Instagram or is there a way to get a access token that has public_content as a scope ?
I would like to have it seperate from my profile ofc. It is possible with Facebook that easily and it´s basicly the same company.
And for example it´s possible to combine the App-ID & App Secretcode to use it as a access_token. Is this possible with Instagram ?
Am I missing something ?
Thanks for your help !
I'm trying to create a simple script (node) that each day collects information from various APIs, including Facebook's Graph API.
The idea is simple, each day I want to collect the total friend count of my personal account, total page likes of my managed pages, total social interactions of my content (personal and from pages).
Now, if I was doing this in a web app, the normal route would be using facebook login to request the access tokens for my profile and pages, but since this is a script it does not have a public exposed url to return the authentication to.
Does anyone know of a way to manually get the tokens, to use in a scenario like this?
Thanks
Have you tried to use this node package?
If you get an accesstoken via some other Oauth module like everyauth ,
connect-auth or node-oauth you can just set the access token directly.
Most get calls, and pretty much all post calls will require an
access_token
There is also a decent article on Medium which works through this process.
I am uploading photos to Flickr in .NET project using Flickr.NET API Library (Flickr.NET CodePlex Link). Its working perfect. But for every request, Flickr asks my permission to authorize the app (check screenshot below):
My question: is there any way I authorize the app once for my whole life rather it asks for my permission for each photo to upload?
Once you have exchanged your request token for an access token, you can store the access token in your application's persistent memory and use the access token to make subsequent requests.