开发者

can facebook authentiation tokens be shared between applications

开发者 https://www.devze.com 2023-02-10 07:34 出处:网络
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.

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?

  1. user login to facebook through mobile app
  2. mobile app sends auth token to webservice
  3. webservice queries facebook for user details

or would the mobile app query facebook and then pass the information to the webservice?

  1. user login to facebook through mobile app
  2. mobile app queries facebook for user details
  3. 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消