Giter Site home page Giter Site logo

Comments (6)

dineshg13 avatar dineshg13 commented on August 24, 2024

Am also receiving similar error

from passport-facebook-token.

ethansmith91 avatar ethansmith91 commented on August 24, 2024

I have the same problem. I used this
FBAccessTokenData *token = [[FBSession activeSession] accessTokenData];
NSString *accessToken = token.accessToken;
to create a access_token JSON, and passes it to the server. However, I get the same error 401.

from passport-facebook-token.

developerbro avatar developerbro commented on August 24, 2024

same error. example would be nice!

from passport-facebook-token.

fsp avatar fsp commented on August 24, 2024

Try the following (without the JSON object):

{{URL}}/auth/facebook/token?access_token=yourAccessToken

from passport-facebook-token.

maziyarpanahi avatar maziyarpanahi commented on August 24, 2024

I forgot to say I found a way to do it:

NSString *fbAccessToken = [[[FBSession activeSession] accessTokenData] accessToken];
SString *postURL = [[NSString alloc] initWithFormat:@"http://YourURL/auth/facebook/token?access_token=%@", fbAccessToken];

To make sure you are sending the right token, debug your app and see what is it in your string. Maybe you don't have a active session (because you need one before accessToken).

from passport-facebook-token.

tonymuu avatar tonymuu commented on August 24, 2024

The problem for me was that I used "token" instead of "access_token" as my parameter's name... If you tried everything above, make sure you have the parameter's name down as "access_token"

from passport-facebook-token.

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.