I'm having trouble getting started initialising the Facebook SDK in my project.
I downloaded the Unity 5.5 beta from here:
https://developers.facebook.com/docs/games/gameroom
This beta includes Facebook SDK 7.9.4
So if I skip past the manual install and go to the initialise step on this page:
https://developers.facebook.com/docs/unity/examples
And I start with
using Facebook.Unity;
I get an error:
the Facebook namespace cannot be found.
How do I get the namespace working so that I can begin using the SDK? I have been searching the web for help all morning and coming up empty. Every tutorial I have found is based off installing the old version sdk manually, but this conflicts with the latest version and only causes more errors.
What IDE do you use? VS15?
Try to switch on MonoDevelop or Rider, this problem was solved for me. For some unknown reason the reference on Facebook.dll wasn't added to Visual Studio project.
Related
I have installed the latest versions of Unity (2017.3.1), Daydream SDKs (GVR SDK for Unity v1.130.0) and followed the steps here: https://developers.google.com/vr/develop/unity/get-started#configure_build_settings_and_player_settings
However when I press Play I get the following error, ideas on what is the reason & how to fix it?
Assets/GoogleVR/Editor/GvrBuildProcessor.cs(20,19): error CS0234: The type or namespace name 'iOS' does not exist in the namespace 'UnityEditor'. Are you missing an assembly reference?
Edit: Issue fixed after a few hours of submission on GitHub with the release of GVR SDK for Unity v1.130.1
If you're facing with this problem there are 2 steps to solve it:
Make sure that "iOS Build Support" is checked in Unity Hub -> Installs as Adam mentioned (if U're developing for iOS platform then this option most definitely is already checked).
Place your script in Assets -> Editor folder. UnityEditor.iOS.Xcode namespace cannot be used in your main project. It works only in special Assembly-CSharp-Editor project intended to modify native Xcode project. (That's the option that worked for me after searching a ton of forums).
The Official Solution:
https://forum.unity.com/threads/unityeditor-ios-xcode-ios-namespace-doesnt-exist.365381/
Step by step I did:
Figure 1 shows the Unity Download Assistent installation file that should be run.
Figure 2 shows the "iOS Build Support" option that should be checked for installation.
I went ahead and changed the "Current Platform" to "iOS" in Unity Hub, This is a quick fix and it works now.
Change "Current Platform" to iOS Image:
If you have installed IOS build through unity hub while the project is open, try restarting Unity Hub and Unity Editor. This solved my issue.
I met this issue When useing unity-arkit-plugin to develop something, i did nothing but import this plugin it throw this error .
And after i installed UnitySetup-IOS-Support-for-Editor-2017.3.0f3.pkg ,the issue fixed.
This usually happens when iOS Build Support is not installed in Unity Hub
We have planned to start our new mobile app using the cordova+ ionic2 framework. its saying that the angular2 in now in bet release and it will be released to production after 2 month. But the team itself saying that even though the reease is i beta we can start the project. But i don't see much tutorial how can integrate the ionic frameork should integrate in my linux machine. Also please guide me the appropriate editor in linux to work in ionic2 with angular2.
Follow the steps in the Ionic2 tutorial http://ionicframework.com/docs/v2/getting-started/installation/. I just upgraded my project to work with the latest version of Ionic2. They are using the Release Candidate 1 of Angular2 (as of this writing), and they are continuously upgrading. It is fairly easy to get a project up and running following the instructions on their site.
I am using WebStorm on my computer (they also have a version for Linux).
I am trying to publish the android app from SmartFace app studio and it is giving me an error to check logs. I am not sure where to find these logs. Publish to iOS works fine. Also I verified the android SDK is found in Project Details tab.
I have attached the screenshots here
This kind of publishing error can be caused by many factors. The ones that I know of are:
node.js that comes with Smartface is outdated, so you have to update it mannualy by going to its site and installing the latest version.
Sometimes Smartface says Java is found but it's not, so writing the correct directory could fix the issue.
I upgraded to Unity 5 after I had to integrate FaceBook sdk. FB v7 or higher requires U5. But I have an error in console:
Assets/Plugins/Playscape/Internal/Configuration.cs(7,17): error CS0234: The type or namespace name Editor' does not exist in the namespacePlayscape'. Are you missing an assembly reference?
Then I fallback to Unity 4.6.3 and tried Facebook sdk v 6.2.2 (which supports U4) and get a bunch of warnings. Seems that Playscape uses XCodeEditor-for-Unity and FB does have this too, with some differences in code.
And now I cant build anymore (after FB integration I have a build-time error about some classes was already added). Does Playscape sdk supports for Unity 5? How Can I make Playscape and FB be friends under U4?
This issue is solved with PlayScape SDK 1.17. Please, check it.
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