简体   繁体   English

使用Azure移动服务添加Facebook权限?

[英]add facebook permissions with azure mobile services?

After I have authenticate with Facebook provider on azure mobile services on android application, I want to add some Facebook permissions such as " publish_actions " but I didn't find any example on this topic. 在使用Android应用程序上的Azure移动服务对Facebook提供程序进行身份验证之后,我想添加一些Facebook权限,例如“ publish_actions”,但是我没有找到有关此主题的任何示例。

I have found session but I don't know if it is possible to start session after authentication. 我已经找到会话,但是不知道是否可以在身份验证后开始会话。

If you're using the Facebook SDK to authenticate to FB, and then using the access token to authenticate with Azure Mobile Services (see this post for an information on how this can be done), then you should be able to use the FB SDK options themselves to add this new "scope" to the login. 如果您使用Facebook SDK进行FB身份验证,然后使用访问令牌通过Azure Mobile Services进行身份验证(有关如何完成此操作的信息,请参阅此帖子 ),那么您应该能够使用FB SDK选项本身,以将此新的“作用域”添加到登录名中。

If you're using the web-based UI (ie, calling mobileServiceClient.login(MobileServiceAuthenticationProvider.Facebook, callback) , then you should change the server-side to request additional scopes. If you're using the node.js backend of mobile services, this post shows how this can be done - you'll use a custom app setting called MS_FacebookScope , and in there you can define which scopes - such as public_actions - you want your app to request from the user. 如果您使用的是基于Web的UI(即,调用mobileServiceClient.login(MobileServiceAuthenticationProvider.Facebook, callback) ,则应更改服务器端以请求其他范围。如果您使用的是移动设备的node.js后端服务, 这篇文章显示了如何可以做到这一点-你会使用称为自定义应用程序设置MS_FacebookScope ,并在那里你可以定义作用域-如public_actions -你希望你的应用从用户请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM