Facebook C# SDK Silverlight 示例应用程序无法运行
你好,
我是 silverlight 开发的新手,我想运行 facebooksdk.codeplex.com 上名为 CSSilverightinBrowser 的示例。如果我将其托管在 cassini 本地主机中,它会起作用(它会获得授权并将我登录到 Facebook),但如果我尝试从 Facebook 引用我的本地主机地址(http://localhost:18031),它会不断重新加载自身。如果我将其托管在本地主机上的 IIS 中,我会收到错误“此网页有重定向循环”。应用程序有问题还是我的设置有错误?最后,您会向我推荐其他任何初创公司来学习如何将 silverlight 与 facebook 的 SDK 连接起来吗?
Hallo,
I am new to silverlight development and I would like to run a sample from facebooksdk.codeplex.com called CSSilverightinBrowser. It works (It gets an authorization and it logs me into the Facebook) if I host it in cassini localhost, but if I try to refer to my localhost address (http://localhost:18031) from Facebook it keeps reloading itself. And If I host it in IIS on localhost I get error "This webpage has a redirect loop". Is something wrong with the application or do I have some wrong settings ? Eventually is there any other start-up that you would recommend to me to learn how to connect silverlight with facebook's SDK ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
出于好奇,您是否为新位置 (localhost:18031) 配置了 Web.Config 并在 Facebook 中进行了设置?当我上次检查时,我知道文档不是 100% 最新的,但您应该能够通过查看文档很好地了解您需要做什么。
检查此处并确保您的 Facebook 设置正确(并将高级下的任何新选项设置为禁用)。
另外转到此处并跳至网页。配置部分。并非此处的所有值都适用,但本节将解释我们的配置设置中的各种设置(而且我们现在只有一个配置设置......我们曾经有 2 个)。
如果这没有帮助,请在此处回复并提供有关您遇到的错误的更多详细信息,我将尽力为您提供更多帮助。
Just out of curiosity, have you configured the Web.Config for the new locations (localhost:18031) as well as set things up in Facebook? When I last checked, I know the documentation is not 100% up to date, but you should be able to get a good idea of what you need to do by looking at the docs.
Check here and make sure you have Facebook setup correctly (and set any of the new options under advanced to disabled).
Also go here and skip to the Web.Config section. Not all the values here are applicable, but this section will explain what the various settings are in our config settings (also we only have one config setting now.. we used to have 2).
If that doesn't help respond here with some more details on what errors you are getting, and I will try to help you a little more.
今天早些时候,我在使用 CSASPNETFacebookApp 时遇到了类似的问题,结果发现问题是我没有在 Facebook 应用程序设置中为 Canvas 启用 OAuth 2.0。希望这有帮助。
干杯,
凯文
I had a similar problem earlier today with CSASPNETFacebookApp, and it turns out the issue was that I hadn't enabled OAuth 2.0 for Canvas in my Facebook application settings. Hopefully this helps.
Cheers,
Kevin