So currently my game is available on iOS/Android/FB. I want to create it for the Windows Store but I need to add the FB Windows SDK. Has anybody figured out how to do this? Should I do it in the Visual Studio compiled version of the game or figure out how to wrap the SDK in Unity? Thanks, any help is greatly appreciated! These are the resources I've came across: https://developers.facebook.com/docs/app-ads/windows-sdk/ http://microsoft.github.io/winsdkfb...9QNLmDYhqxwQj7FKhVMKLnlfIP9q0u8IINSJNv1weKous
Hey, Disclaimer: I don't know anything about the Facebook SDK and only just quickly clicked through the links. But since the SDK is native code (C++/CX from the code snippets), then your best option is (as you said) build the UWP project and integrate the API there rather than trying to implement it in Unity. Especially since you'll need to handle the UWP app events directly. One option if you really wanted to implement the API in Unity is to import the SDK libraries as Native Plugins, and then P/Invoke into them from Unity scripts (of course you'd have to #ifdef out this code). Some caveats: SDK has to provide a "C API" (not C++) Still may have to customize AppCallbacks to handle app event
I am doing this in my project - if you are using a .net back end for UWP then it is easy, follow the SDK link instructions you posted, just install the nuget packge. If you using c++ as the back end I don't know.