Facebook integration with Windows C# UWP Program - c#

I have a Windows C# UWP Application that was integrated with Facebook (It allowed users to post Greetings card images into their timeline) and previously used the Sharing Charm feature between Windows UWP apps. Facebook removed the sharing functionality from their app some time ago so I now need to recode the functionality using a Facebook SDK but don't know quite where to start.
First question is what is the best API to use, as there seems to be multiple options. I have seen "winsdkfb" and also "facebook" but all the documentation I have seen seems well out of date. Could someone point me to the best Nuget API and an up to date tutorial?
My app is coded for UWP Win 10 Build 14393 and Id rather not go through a whole rebuild into something like .Net Core at this stage as its a big complex app.

Related

C# Cross platform GUI for desktop and mobile

I have a hobby project that I wrote in C#. Library is for geomatics calculations, it has over 4000 lines of code and I have spent years developing it. Recently I completed GUI using Windows Forms and shared it for free. I got good feedback and now I want to make it cross platform.
Problem is that after days of searching the Internet I found nothing. All links are outdated. I would prefer something like JavaFX, where I could possibly create one GUI for desktop and mobile without much hassle with compiling.
GTK# is stuck (no mobile and no integration for newer versions with Xamarin studio)
QtSharp is in Alpha stage
Eto.Forms for mobile is still under development
Are there any free working alternatives with good tutorials/documentation in late 2016? Or do I have to rewrite my libraries in Java and create GUI in JavaFX?
At the moment there isn't a .Net framework that support all platform. The solution that covers most platform is Xamarin (right now support Android, iOS and MS Universal App). As this post suggest probably in the near future there will a Xamarin version also for Linux systems.
But there is an alternative: duocode. Basically it's a tool that convert c# code into javascript and once is transformed you can use the javascript code to implement a mobile interface using a cross platform framework like cordova. You will have two different application but with the same code base.

Windows 8.1 Universal apps documentation

I am trying to develop universal app for first time. This may be a silly question, but is there any comprehensive documentation for c# developing? I need to partially migrate windows 8 app to universal app, but everything I need to use is different there and nowhere I can find what to use instead. It takes hours to find something useful. Mostly here or at other forums. MSDN is not very helpful in this case. I found that universal apps do not use .net framework or silverlight. Is possible to say that universal apps uses clearly labeled standard, for example .net framework 4.5? In this time it seems to me I have to use something from Windows Runtime apps and something from Windows Store apps APIs.
The MS Virtual Academy offers free courses (mostly jumpstarts) for things you might be interested in.
Below is a link to their jumpstart course:
Developing Universal Windows Apps with HTML and JavaScript Jump Start
http://www.microsoftvirtualacademy.com/training-courses/developing-universal-windows-apps-with-html-and-javascript-jump-start
And a link to their jumpstart course:
Programming in C# Jump Start
http://www.microsoftvirtualacademy.com/training-courses/developer-training-with-programming-in-c
Hopefully, this will get you started.
What I was looking for:
Windows universal apps use Windows Runtime.
Only reliable official "MSDN like" page I found is http://msdn.microsoft.com/en-us/library/windows/apps/br211369.aspx
Good tutorials are at Channel 9.

Handle multiple "windows" in Windows Store apps in Windows 8.1

Ok, I have a question to which, despite my best efforts, I have not been able to solve. I searched the internet, and this is one of those that is particularly difficult to search for, but it seems that no user of Windows 8.1 nor any developers developing for Windows 8.1 has posted to any website asking how to do this (I could be wrong, of course).
What I am trying to do is make a Windows Store app targeting Windows 8.1, that takes advantage of multiple Windows. To see what I mean, open up metro ie, right click on a tab, and click "open in new window." This is also in the mail app, where you can open a single message in another window, which behaves like a separate app, and can be snapped like so. It's a new feature of the Windows 8.1 OS.
But I can't for the life of me figure out how to do it in C# and XAML. Does anyone know how? Thanks.
Alex
There are new APIs in Windows.UI.ViewManagement, namely the ApplicationViewSwitcher and ProjectionManager classes. The former is for working with multiple independent views that the user can arrange side by side on whatever monitors they have, which is what IE and Mail use; the latter is for working with multiple monitors.
See the Application Views sample along with the Projection sample for working both scenarios in code.
Might be bit late with my answer, nevertheless I had your similar apprehensions about the "Dismal Support Refs" for this subject, when I first began searching the topic. However I have been able to overcome this and use the feature in my apps. There are some good refs available; The Windows Dev Centre has a Quickstart ie "Quiskstart Creating Multiple Windows", a Good guide is the "MultipleViews" Sample, With the following providing additional support.
1) "Be two places at once using multiple windows" at
https://blogs.windows.com/buildingapps/2014/01/09/be-two-places-at-once-using-multiple-windows/#pBHiQtDSPFrCA7Gv.97
2) "MultipleViews for Windows 8.1 apps" (parts 1-3)
http://www.kraigbrockschmidt.com/2013/11/21/multiple-views-creating-view/
BQ at WATERVIEW

Is it possible to use Azure Mobile Services with WP7

I realize there will be additional work (as the SDK only works on Windows 8 and WP8) as the SDK provides controls to provide a login sequence (via Microsoft Account, Facebook, etc).
I am wondering if it is possible to achieve the same result with a Windows Phone 7 app? I've been searching for a while, and there is not much on Mobile Services at all, let alone for WP7. Is there some (technical?) reason (besides the fact that WP7 is not the latest and greatest) that Microsoft has left WP7 out in the cold with Azure Services?
I realize that just accessing the data via REST in WP7 is trivial, but I'm really getting at is the entire process of using deferred authentication restricting access to users own data only, is this doable without their SDK without a monumental effort?
It turns out that the SDK is open source, and the source is at https://github.com/WindowsAzure/azure-mobile-services .
Now, I haven't dug into the source, and don't know what the porting effort might look like, but it seems reasonable to think that it shouldn't be too much of an effort.
Good luck, and share it back if you make progress. :)
Adam Hoffman
Windows Azure Blog - http://stratospher.es
Twittererer - #stratospher_es
A preview of the new C# client which supports Windows Phone 7.5 is now available to try out. Remember it is pre-release and therefore not supported. http://www.johanlaanstra.nl/?p=217
Officially no I am afraid.
But you can find a (partial) client platform agnostic implementation in a form of a C# SDK here:
https://github.com/kenegozi/azure-mobile-csharp-sdk
This will allow you to use Azure Mobile Services with WP7 I guess.

Windows 8 live tile from NET 4.5 app

I have create a Windows Store app which successfully updates its tile (live tile). The thing I hate about this now is that it seems there is no way for me to install this app anywhere except either through Windows Store or using another developer account (see this).
Since I am looking to support only desktop PC with this, can I work with live tiles from a generic NET 4.5 application?
Or to put it differently, is there a way to use / control live tiles from apps other than Windows Store apps?
This is still all too new to me... Finding answers on the web and SO revealed nothing.
Live Tiles are part of the Metro Framework, completely seperated from .NET. Your application is sandboxed when you develop for the Windows Store framework. no one can access your application and you can't access anyone else's application. The only way to update the live tile would be for the application to update it's own live tile. It would be a huge security flaw to allow anyone to update any tile.
If you do NOT intend to ever submit your app to the Windows Store for distribution - you can look at this thread, which talks about methods used to communicate between desktop apps and windows store apps.

Categories