Pomax / node-flickrapi

A node.js (and client-library) implementation of the Flickr API with oauth API key authentication and API method proxying
176 stars 51 forks source link

Access granted doesn't include write permissions #102

Closed mspanish closed 7 years ago

mspanish commented 7 years ago

Well your tool is the only one of about 4 that appears close to working :) - but I redid the auth and noticed that it said the app would NOT have write access - which probably explains why the uploads are failing. Do I need to adjust something? I am using this to authenticate, having set the keys already:

Flickr.authenticate(flickrOptions, function(error, flickr) {
  // we can now use "flickr" as our API object
});

thanks for your work on this, it must have taken a lot of work!

Pomax commented 7 years ago

Thanks! I mostly wrote it (although a while ago by now... time flies) because there were no free Flickr mirror solutions that actually just mirrored the data you had on Flickr. It worked pretty well while I was using it, so just to rule out a missing conf option, did you set the FLICKR_PERMISSIONS variable to write in your .env file? If you did, it's possible Flickr changed something about the authentication process.

mspanish commented 7 years ago

thanks I did change to "read" and all works great - thank you!!!

Pomax commented 7 years ago

if you change the permission, remember to remove the stored tokens, so that flickr-mirror can get a new token specific to that permission level (Flickr won't let you use "read" tokens for "read/write" or "read/write/delete", etc)

mspanish commented 7 years ago

ok thanks very much, lovely work here.