Facebook SDK and UnityAds not working in B13 ?

In UnityAds in file DeviceInfoIos the function

public override string getAdvertisingIdentifier() {
      return iPhone.advertisingIdentifier;
    }

must change to

public override string getAdvertisingIdentifier() {
      return iOS.Device.advertisingIdentifier;
    }

But compiling it for iOS (Xcode 6.1) give following link error:

It seems UnityPause is gone?

In Facebook SDK 6.0.0. the file RegisterMonoModule.cpp contains an extra #endif on line 110 that must be removed to be compilable. After that there are ARC issue in FbUnityInterface.mm.

Then it seems to compile and run. Not sure yet if all functionality is working.

Summary: Facebook SDK can made to compile on B13 but not working out-of-the-box. But UnityAds just don’t work yet. It would be great to have a FAQ of common changes of assets so they may work in Unity 5.

1 Like

Hey,yes I realised these issues when trying my prime31 plugins, use facebook sdk. Dont know how to solve these issues, i hope for Unity dev reply.

@MrEsquire I have tested the official Facebook SDK 6.0.0 and it works as long as you remove this extra #endif each time I rebuild for iOS. I use Stan’s assets as wrapper but it does not work yet, so I’m left with vanilla FB SDK.