Install facebook c # sdk

I could not find any other questions about this ... so I have to do something wrong. I have never used NuGet before, so my problem can be very good.

Anyway, I am making a WP8 application in VS2012. I went to Project> Manage NuGet Packages> Online> Facebook. This is version 6.4.0. When I hit the installation, I get the following error:

Failed to install the package "Facebook 6.4.0". You are trying to install this package in a project that targets "WindowsPhone, Version = v8.0", but the package does not contain references to assemblies that are compatible with this structure. For more information, contact the author of the package.

Any idea how to solve this problem?

+4
source share
3 answers

I had the same problem because I updated the Nuget installer. The initial version 2.0 has been upgraded to 2.5. Go to Tools => Extensions and Updates => Updates => Visual Studio Gallery. There you can see the update available for the Nuget installer. After updating Nuget, try installing the facebook and facebook client packages. Hope this works.

+3
source

The error you see means that the package you tried to install for Nuget is not compatible with WP7 / 8 projects. Check out this Nokia article that explains how to use the modified version of the Facebook API in the WP7 / 8 project.

+2
source

I also ran into this problem, but the previous version is working 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 helps :)

0
source

All Articles