using Facebook;
using Facebook.Web;
public pageLoad()
public void fetchFacebookData()
{
var fbApp = new FacebookClient();// error occured at this line
var result = (IDictionary<string, object>)fbApp.Get("me");
var name = (string)result["name"];
}
以上代码产生错误......
无法加载文件或程序集“Microsoft.Contracts,Version=1.0.0.0,Culture=neutral,PublicKeyToken=736440c9b414ea16”或其依赖项之一。该系统找不到指定的文件。
我的 web.config 部分如下
<configSections>
<section name="facebookSettings" type="Facebook.FacebookConfigurationSection,Facebook" allowLocation="true" allowDefinition="Everywhere"/>
</configsection>
<facebookSettings
appId="1xxxxxxxx" appSecret="eeeeeeeeeeeeeeeeeee"/>
</facebookSettings?