Is there any way to get news feed by API?
Now I can get it only if I set sessionId cookie, is there any another way?
Maybe with access token?
The only way to do it is to authenticate the user to instagram. As a result you'll get an access_token. You'll then have to use this token to query the api.
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 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 am not sure what is smart to do.
Should I check if facebook access token is valid inside in middlware or maybe is better solution to make route which check if facebook access token valid and then return JWT access token to allow user access?
If it's a rest api, do not use logins or sessions. Just send out jwt tokens. Embed all required data in the tokens.
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!
How can I get user data from Spotify without login?
YouTube Data API, you can get user public data information if you know the Channel ID.
Is i possible to do it in the same way?
I have tried the following link with UserID but it requires authentication.
https://api.spotify.com/v1/users/{user_id}/playlists
Maybe you should check documents below
Spotify documents
hope helps
If you want to fetch user's public playlists you need to authenticate the request.
The authentication is based on OAuth 2.0 and there are several ways to obtain a token. On of them, the Client Credentials flow doesn't involve a login form and you only need your client_id and client_secret to obtain a token.