Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Facebook Plugin

Discussion in 'Windows' started by vladrybak, Oct 16, 2013.

  1. vladrybak


    Aug 30, 2013
    I try to use in my WP8 Unity3D Plugin. Facebook.dll and Facebook.Client.dll and their fakes in correct folders, but error occure. Is there any way to fix it?

    Error building Player: Exception: Failed to run assembly preprocessor with command line "Temp/StagingArea/Data/Managed\Facebook.Client.dll" -injectCtor -assemblyPath "Temp/StagingArea" -pdb.[Temp/StagingArea/Data/Managed\Facebook.Client.dll]
    No symbols for Temp/StagingArea/Data/Managed\Facebook.Client.dll
    Injecting ctor
    Error while in assembly preprocessor Temp/StagingArea/Data/Managed\Facebook.Client.dll
    Object reference not set to an instance of an object.
    at AssemblyPreprocessor.Utils.IsBaseType(TypeDefinition definition, String name)
    at AssemblyPreprocessor.Utils.IsFromNamespace(TypeDefinition definition, String namezpace)
    at AssemblyPreprocessor.ConstructorInjector.ShouldInject(TypeDefinition typeDefinition)
    at AssemblyPreprocessor.ConstructorInjector.InjectConstructorsForTypesIn(ModuleDefinition moduleDefinition)
    at AssemblyPreprocessor.Program.Main(String[] args)
  2. Tautvydas-Zilys


    Unity Technologies

    Jul 25, 2013
    It's a bug. It will be fixed in 4.3.

    It is caused by classes inheriting from classes in Windows Phone SDK, such as XAML Page. The only way to avoid it is move those classes outside of plugin and add them to the exported visual studio solution.