简体   繁体   中英

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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