Accessing the Graph API with client token #527
Unanswered
szarbartosz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
I wanted to start a discussion on the following use-case:
I have a mobile app (developed with expo) in which users can authenticate using
react-native-fbsdk-next. After successfull authenticaiton I'd like to pass a client token to my backend, and queryGraph APIthere, in order to obtain user email.I tried to access the
Graph APIwith tokens obtained by calling:AuthenticationToken.getAuthenticationTokenIOS()AccessToken.getCurrentAccessToken()after logging in with
LoginManager.logInWithPermissions(['public_profile', 'email']), but failed to do so (either gotBad signatureorMalformed access tokenerror)I was able to query the
Graph APIusingGraphRequestManageron the client side, but I guess that my question is: Is there a way to to do on server side?Side note: I am aware of the following statement in the docs: "Limited Login is required for iOS if using React Native FBSDK Next >= 13.0.0" - but there is also another statement: "Graph API requests cannot be made with a Limited Login AuthenticationToken" - does it mean that there is no way of obtaining the
accessTokenoniOSthat will allowGraph APIaccess outside ofGraphRequestManager?Beta Was this translation helpful? Give feedback.
All reactions