Comments (6)
Am also receiving similar error
from passport-facebook-token.
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.
same error. example would be nice!
from passport-facebook-token.
Try the following (without the JSON object):
{{URL}}/auth/facebook/token?access_token=yourAccessToken
from passport-facebook-token.
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.
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)
- Req is null, Res has data HOT 1
- I m getting the logical problem regarding expiring facebook token generated by android sdk and verify on NodeJS API HOT 1
- The token is generated by facebook-ios-sdk version 17.0.0 is not working HOT 2
- https://3-edge-chat.facebook.com/active_ping?channel=p_100008242032717&partition=-2&clientid=600cc6cb&cb=hw27&cap=8&uid=100008242032717&viewer_uid=100008242032717&sticky_token=10&sticky_pool=ash3c07_chat-proxy&state=active
- Email is null
- Authentication not working on remote URL HOT 1
- Error is thrown on calling the route HOT 1
- How to verify facebook access token from client app on my server using passport-facebook-token?? HOT 2
- How to integrate passport-facebook-token with hapijs
- Custom JWT token HOT 2
- Facebook Graph API v2.6 HOT 1
- Build process generate strange javascript
- User is not defined at ```User.findOrCreate({ facebookId: profile.id }``` in strategy config?
- Emails are empty HOT 6
- npm deployment HOT 8
- Hi, does this api use Authorization Code Flow with Proof Key of Exchange? HOT 4
- How to Pass Data from React Native to Passport.js FacebookTokenStrategy Callback? HOT 3
- Option `accessTokenField` not visible in TypeScript HOT 1
- Facebook Graph API doesn't require clientId and clientSecret
- How to make this work when using GraphQL instead of REST APIs? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passport-facebook-token.