简体   繁体   中英

Installing facebook c# sdk

I couldn't find any other questions on this...so I must be doing something wrong. I have never used NuGet before, so my problem could very well be there.

Anyways, I am making a WP8 app in VS2012. I went Project > Manage NuGet Packages > Online > Facebook. It is version 6.4.0. When I hit install, I get the following error:

Could not install package 'Facebook 6.4.0'. You are trying to install this package into a project that targets 'WindowsPhone,Version=v8.0', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.

Any idea how to resolve this?

I had the same problem, for me updating Nuget package installer worked. Initial version was 2.0 and it got upgraded to 2.5. Go to Tools=> Extensions and Updates => Updates => Visual Studio Gallery. There you can see update available for Nuget installer. After updating Nuget try installing facebook and facebook client packages.Hope this works....

The error you're seeing means that the package you tried to install for Nuget is incompatible with WP7/8 projects. Look at this Nokia article that explains how to use a modified version of the Facebook Graph API in a WP7/8 project.

I also faced this issue but, the previous version works fine. go to tools => library package manager=>package manager console and type Install-Package Facebook -Version 5.3.2.0 and press enter.

Hope this will help :)

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