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
-
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 API
there, in order to obtain user email.I tried to access the
Graph API
with tokens obtained by calling:AuthenticationToken.getAuthenticationTokenIOS()
AccessToken.getCurrentAccessToken()
after logging in with
LoginManager.logInWithPermissions(['public_profile', 'email'])
, but failed to do so (either gotBad signature
orMalformed access token
error)I was able to query the
Graph API
usingGraphRequestManager
on 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
accessToken
oniOS
that will allowGraph API
access outside ofGraphRequestManager
?Beta Was this translation helpful? Give feedback.
All reactions