Can I add to Deezer collaborative playlist without the access token? - deezer

I want to make a small application (for personal use) that can search for and add tracks to a Deezer playlist from an offline list I have on my computer. Since I don't have a front-end in this app, I don't have an URI which I can redirect to after authentication, and therefore can't get the access token. Can I somehow add tracks to a collaborative playlist using the POST request without the permissions you have only when you (or user) log in? I made a collaborative playlist on my personal Deezer account and have the playlist id.

Related

webhook realtime event on post shared to many facebook pages

my application can share posts (like photos) to some user's page. (can be for multiple users).
when sharing a post, the user gives my app a permission for sharing. when doing this, my app receives token and post-id, and I can make API requests to get some post data like views etc...
I read Webhooks api, but couldn't find any reference if my requested behaviour is supported: I could understand that the supported behaviour is the one if a user is manual configuring his page to support hooks.
to make better understanding, this is the flow:
some user is logged in to my app
user wants to share a photo from my app to his facebook page
user 'click' on share, accept the permissions, the photo is shared on his page, my app receive token and post id
I want to receive hooks to my app endpoint on any change to this post (like, view..)
is it possible??
thanks.

Redirecting to permalink URL with credentials

We have a special case, where we are uploading audio assets from our asset management system to Soundcloud. It works fine, but when redirecting the user I would like to do the authentication to a certain user on their behalf if they are not logged while doing the redirect. The workflow goes something like this:
User chooses an audio asset in DAM
User clicks the plugin that calls an API which handles the upload to Soundcloud
We redirect the user to permalink_url from the response
The problem is that we have two separate accounts. I would like to authenticate / login the user with certain credentials before the redirect. Is this doable?
yes that should be possible.
user grants access for your app, you store the tokens and may refresh it later or request new ones.
more here:
https://developers.soundcloud.com/docs/api/reference#connect
https://developers.soundcloud.com/docs/api/reference#token
oAuth 2.0 - Acting on behalf of the user

URLs of facebook photos retrieved using access tokens are permanent or temporary

According to my web application facebook-page owners and facebook-users can keep their facebook photos in their profile gallery. So they would login in my facebook app and provide required access while configuring their profile in my web application. The web application will retrieve and enlist all photos through graph api, the user is required to select among them for keeping it in their gallery. I don't want to take any burden of storing those photos in my database so I would just store the URLs received. Further when other users of my web application views that person's profile or gallery, he/she will find those selected photos.
So are these URLs of photos retrieved through access tokens permanent? Will they work if the access token expires or user removes my facebook app from his/her facebook account in future or any other such activity? Or these photo URLs are permanent until the user disable or deactivate his/her facebook account?

How to get all facebook app request for a user of my apps without storing them

We are building a apps and we want to clear all the apps request for our user when he log into our apps.
I know we could store the request when we send them and clear them when the user log to the apps.
But is there anyway to get all the apps request from FB (through fb api or fql) instead of storing them in our apps.

Login system like Disqus for Twitter and Facebook

How do they manage to get user to login to Twitter / Facebook through Javascript so smoothly?
I am trying to replicate it for the web app. Basically, the user only needs to add a javascript snippet to their site to kickstart but I am clueless as to how to integrate facebook and twitter connect seamlessly.
Do they store access tokens after successfully authenticating a user?
Short answer is yes, they store access tokens after successfully authenticating a user.
After you try facebook and twitter apis, you'll see that, they both returns ids for every user who succesfully logged-in through your application. You can then simply add those ids pairing with the platform they logged in to your database. You can then use that data to track users easily.
You need to
Create applications on both platforms
Have pages for each provider to check if user performed a succesful login
Check if user is a newcomer and add that user to your database if so.
Set a session or cookie variable of user's local id in your own application or do whatever you are normally doing to track if a user logged-in as that user is your local user.