I added the FacebookWebMvc Nuget package to my MVC 3 Web Application project and then created the following controller:
public ActionResult FacebookLogOn(string returnUrl)
{
    if (!FacebookWebContext.Current.IsAuthenticated())
    {
        throw new Exception("Please log into facebook");
    }
}
When I try to compile, I get this error (with the FacebookWebContext highlighted as the source of the error):
The type 'Facebook.Web.FacebookWebContext' exists in both 'I:\sites\ICTOAD\packages\FacebookWeb.5.0.26.0\lib\net40\Facebook.Web.dll' and 'I:\sites\ICTOAD\packages\FacebookWeb.5.0.26.0\lib\net40\CodeContracts\Facebook.Web.Cont开发者_JAVA百科racts.dll'
Just remove a reference to Facebook.Web.Contracts.dll from your project.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论