如何使用与Facebook C#SDK用户权限 [英] How to use user permissions with Facebook C# SDK
问题描述
是否有人知道我们如何使用权限,提供的 Facebook的C#SDK
我的意思是通过权限列表通过Facebook C#SDK?
感谢您!
您需要的权限只拿到令牌。这是始终以客户端JavaScript来实现,而不是用C#后端code。看看这里 - http://csharpsdk.org/docs/web/getting-started - 看从网站部分请求访问令牌。它展示了如何请求令牌与JavaScript的code一定的权限。之后,令牌授,并传回后台 - 这就是你可以开始使用它使用C#SDK - 做这样的事情发布到饲料,上传图片等等 - 但你不会在后台权限做任何事情<。 / P>
Does someone know how we can use permissions with Facebook C# SDK?
I mean to pass a list of permissions via Facebook C# SDK?
Thank you!
you need permissions only to get token. That's always achieved with client-side javascript, not with C# backend code. Look here - http://csharpsdk.org/docs/web/getting-started - see Requesting an Access Token from a Website section. It shows how to request token with certain permissions from the JavaScript code. After that token is granted, and passed back to the backend - that's where you can start using it with C# SDK - doing things like posting to the feed, uploading images etc - but you won't do anything with permissions on the backend.
这篇关于如何使用与Facebook C#SDK用户权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!