一个Web应用程序下有多个Facebook应用程序 [英] Multiple facebook apps under one web application
问题描述
我正在尝试将umbraco cms用于一些Facebook应用程序.我的想法是将每个facebook应用程序放在umbraco的aspx页面中(这些应用程序"非常简单,只有几个图像,每个图像中可能只有一个民意测验).但是我在web.config中只能有一个facebookSettings.是否可以不在web.config中设置facebook应用程序,而是在后面的代码中设置设置?还是有另一种方法可以在一个Web应用程序(umbraco)中拥有多个Facebook应用程序?
I'm trying to use the umbraco cms for a few facebook apps. My idea was to have each facebook app in an aspx page in umbraco (these "apps" are very simple, only a few images, maybe a poll in each). But I can have only one facebookSettings in web.config. Is it possible to not set the facebook app in web.config but set the settings in the code behind? Or is there another way to have multiple facebook apps in one web application (umbraco)?
我正在使用facebooksdk 5.0.2 beta
I'm using facebooksdk 5.0.2 beta
推荐答案
请参见这篇文章在Prabir的博客上,以获取有关如何在代码中设置Facebook设置的详细信息.
See section 4 of this post on Prabir's blog for details on how to set Facebook settings in code.
在管理FacebookClient实例时,您还需要非常小心,以免造成混淆,例如静态等.
You will also want to be very careful when managing instances of FacebookClient to avoid confusion ie statics etc.
这篇关于一个Web应用程序下有多个Facebook应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!