Use Facebook SDK .Net in Portable class library - facebook

I'm starting to develop an App for Windows phone 8 and Windows 8 and I'm creating a portable class library to share some classes in both projects. In this PCL I would like to do some Facebook operations but when I try to add the package from Nuget I get the following error:
Could not install package 'Facebook 6.4.2'. You are trying to install
this package into a project that targets 'portable-net45+wp80+win',
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.
Is it posible to use the Facebook SDK for .NET in a shared Project for Windows phone 8 and Windows 8?
Regards.

Related

MobileFirst Platform Foundation 7.0 hybrid app supporting Windows8 (tablet and desktop) environment - how to integrate code with SCM?

I'm developing an hybrid app with MobileFirst Platform Foundation (MPF) Studio 7.0 and I have to share the MobileFirst project code to the SCM system. I found this link in the MPF 7.0 Knowledge Center that explains how to do the job for all the parts of the project, including the environments' native folder, except for windows8 tablet and desktop: https://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.dev.doc/devref/r_integrating_with_source_contro.html.
Since I have to support that environment, what are the folders/items exclusions I have to set for correctly sharing the Windows8 native code to the SCM?
Thanks, Simone.
You should consider it the same as Windows Phone. In general you will want to put in your SCM all of the native folder.

How do I check if a nuget package supports Universal Windows App (UWP)?

I am building a Xamarin application. Currently Supporting Android and iOS.
I would like to expand my application to Universal Windows App using the Xamarin guide
Before doing so I would like to check whether the nuget packages I am currently using support Universal Windows App
For example I have been trying to check if Xamarin.Insights supports Universal Windows App and checking the nuget page I can't see any mention of supported platforms
The contents of the actual nuget package but as I don't know what I'm looking for I can't tell from here either
So what am I looking for in the package to check if a nuget package supports Universal Windows App?
A UWP app will look in folders in the following order:
uap10.0 > uap > netcore451 > netcore > dotnet
Without these folders there isn't a guarantee that the library will work, but it might. There's some trial and error in this as class library targets are undergoing a large overhaul in NuGet and .NET Core. Oren Novotny has a great post on it and there's a NuGet post on UWP specifically.

Could not install package 'Facebook 6.8.0'

I have installed Xamarin Starter version, and want the App to access posts of some users on Facebook. I tried to add package the Facebook SDK for .Net, but it throws the error : "Could not install package 'Facebook 6.8.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.0', 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."
I tried to change the target framework version, but that did not help. Any ideas?
There is a Facebook Component for Xamarin. Xamarin also has a Xamarin Social component that includes Facebook integration. You cannot use any arbitrary Nuget package with Xamarin - it has to be one that targets a compatible framework. Unfortunately the Nuget manager does not allow you to easily filter out incompatible packages.
I downloaded the package contents via Nuget and manually added it as a reference to my solution and it compiled and referenced correctly. I tried the first example in an iPhone solution from this tutorial and everything worked. Hope that helps.

Using core-plugins in phonegap build 2.9

I'm building a simple app for Windows Phone 8 (with limits me to PG 2.9, since PG 3.0 is not yet supporting WP8).
When I include one of core plugins (3rd party ones work just fine) in my config.xml, I get "Unable to create app: plugin unsupported" error.
Changanging PG version to 3.0 fixes problem, and shows included plugin under "Plugins" tab.
So the question is: how to use core plugins in PGB 2.9?
You don't need to use the plugin tag in your config.xml file for 2.9.0. That's why you're getting the error.
We're planning on rolling out support for Windows Phone 8 in PhoneGap Build by the end of the week so you can use 3.0.0 and not have this issue.
=Ryan
ryan#adobe.com

Installing the Facebook C# SDK

I want to implement login using facebook in my windows phone 7.1 application
When I try to install Facebook C# SDK using the nuget package manager console. It is added successfully, but when I try to add the reference to my project its giving following error.
I did not write any code or anything. I just want to add the reference to facebook like using facebook; in my code behind file
I just tested this and I cannot reproduce the error.
Make sure you uninstall any old version of the SDK.
Then, right-click the project and add the SDK using nuget.
Do not install by hand.
That error message seems pretty clear - your project is set to target Windows Phone 7.1, but that version of the Facebook SDK doesn't support Windows Phone 7.1
See if there's an updated version of the SDK which supports 7.1, or target your project at a version that the Facebook SDK does support