GithubHelp home page GithubHelp logo

Comments (2)

DeaconDesperado avatar DeaconDesperado commented on July 19, 2024

It wouldn't be too difficult to spin something up for this, but unless I'm mistaken, the server-side access tokens are given the extended 60-day expiration by default. The deprecation of the offline access permission has gotten rid of the indefinite tokens that would never expire, but all that really needs to be amended in existing apps is to change the way you manage the persistence of your tokens (IE, expect to get a new one every time the user comes back from FB and re-authenticates, since this will provide a new token.)

See the section on "Server-side OAuth Developers"
https://developers.facebook.com/roadmap/offline-access-removal/

I would consider this more about how you manage the storage of your access tokens and associate them with your users. It's a little outside the scope of the sdk in that regard. If they are coming back and initiating a login again, you should be sending them back through the auth process as normal rather than just assuming your saved token is good. If they have already granted permission to your app, they will immediately hit the callback with a fresher token. You'd only encounter the expired access token issue if you were assuming you had good tokens like you used to be able to do with offline_access, which now, unfortunately, would mean you aren't Doing It Right™

from facebook-sdk.

martey avatar martey commented on July 19, 2024

I think I agree with @DeaconDesperado's comments, and so am closing the issue. I think issues like this could be better resolved by us having better, more up-to-date examples, so it is clearer how developers might want to use this SDK.

from facebook-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.