简体   繁体   中英

Facebook.Client package installing error

I am trying to install Facebook.Client package in my Visual Studio project, but it failed with this message:

Install-Package : Could not install package 'Facebook.Client 1.0.4'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Facebook.Client is for Windows Store and Windows Phone apps. From the readme :

The Facebook C# SDK for Windows & Windows Phone helps .NET developers build Windows Phone and Windows Store applications that integrate with Facebook.

Since your project targets .NET Framework 4.5, I'm assuming that you're building a desktop or ASP.NET app. What you're looking for is the Facebook C# SDK .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM