can facebook authentiation tokens be shared between applications
I have a mobile app that allows users to login through facebook connect. There is also a webservice that t开发者_高级运维he mobile app will use.
Can the mobile app share its auth token with the webservice?
- user login to facebook through mobile app
- mobile app sends auth token to webservice
- webservice queries facebook for user details
or would the mobile app query facebook and then pass the information to the webservice?
- user login to facebook through mobile app
- mobile app queries facebook for user details
- mobile app sends details to webservice
Yes. The API doesn't care where you get the token from, as long as you're using the same AppID/Secret. This is commonly used in offline data access scenarios (user authenticates through web app, backend service updates in background). Do you have a specific example where this doens't work?
精彩评论