Giter Site home page Giter Site logo

Extend long-term token about fbgraph HOT 6 CLOSED

criso avatar criso commented on June 1, 2024
Extend long-term token

from fbgraph.

Comments (6)

chrisjhoughton avatar chrisjhoughton commented on June 1, 2024

Rather than add a new issue on this I thought I'd add to this discussion.

In the Facebook Docs they detail the exchange of temporary access tokens for permanent ones. There is nothing to suggest that a user's access token can be extended in any way.

As a result I got a little confused as to what the extendAccessToken was really doing - it's actually getting a new permanent access token, rather than extending the existing one.

Perhaps a change in method name to reflect this? E.g. getPermanentAccessToken?

Great module btw.

from fbgraph.

criso avatar criso commented on June 1, 2024

That makes sense. Rather than change the name though, we would output a "deprecated" message on the old method, so that it won't break backwards compatibility and properly update the docs.

Not sure when I can get around to doing that, but if someone wants to put a pull request for that, it would be faaaantastic!

from fbgraph.

chrisjhoughton avatar chrisjhoughton commented on June 1, 2024

Happy to do it at some point - give me a week or so!

FYI - this module is forming the backbone of my startup Sauce and it's all working fantastic. Was previously doing things all on the client side which was a heck of a lot slower!

from fbgraph.

criso avatar criso commented on June 1, 2024

Awesome!

from fbgraph.

cyrusdavid avatar cyrusdavid commented on June 1, 2024

Was this issue fixed?

from fbgraph.

SimonEast avatar SimonEast commented on June 1, 2024

I've been searching everywhere for a way to get a permanent access token for server-side requests to the API, just to fetch a list of public posts from a page. I don't want to have to manually renew it every so often. Did anyone discover a way to do that?

The closest thing I've found is this:
https://stackoverflow.com/a/58878246/195835
...however it requires a long, laborious, manual review process to get a business account with a system user that never expires.

If anyone has a better solution I'd love to hear it.

from fbgraph.

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.