Tuesday, 15 July 2014

spotify - Auth missing in Preview API -



spotify - Auth missing in Preview API -

i'd able connect facebook app within spotify (coke highlights allows this).

however, in preview api (which need app) looks authenticatewithfacebook missing:

http://developer.spotify.com/technologies/apps/docs/09321954e7.html

the closest is:

https://developer.spotify.com/technologies/apps/docs/preview/api/api-facebook-facebooksession.html

where can utilize showconnectui, doesn't appear work , undocumented.

the auth module not nowadays @ first, part of spotify apps api. can read more on its documentation page. looks this:

class="lang-js prettyprint-override"> require(['$api/auth#auth'], function(auth) { var appid = '<your_app_id>', permissions = ['user_about_me']; var auth = new auth(); auth.authenticatewithfacebook(appid, permissions) .done(function(params) { if (params.accesstoken) { console.log('your access token: ' + params.accesstoken); } else { console.log('no access token returned'); } }).fail(function(req, error) { console.error('the auth request failed error: ' + error); }); } });

in addition, there a working example in tutorial app on github.

spotify

No comments:

Post a Comment