Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 AuthConfig.cs 中,我启用了开箱即用的 Facebook 客户端,但是当应用程序授权请求发出时,它只通过 scope=email 并且我需要包含 manage_pages 权限。如何强制请求包含 manage_pages 权限?
当您使用 MVC 项目模板提供的 AuthConfig 时,它将使用来自DotNetOpenAuth (4.1.0.0) 的FacebookClient 。它不能做你想让它做的事情。
范围被硬编码为仅包含电子邮件。
您可以使用DotNetOpenAuth ( 4.3.0.0) 中的FacebookClient 。这允许提供范围。