Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

What is the easiest way to integrate Facebook SDK and Firebase SDK?

Discussion in 'Formats & External Tools' started by glaksmono, Feb 3, 2021.

  1. glaksmono

    glaksmono

    Joined:
    Nov 19, 2020
    Posts:
    21
    This is surprisingly much harder than I thought

    Has anyone had the same experience?

    What is the easiest way to integrate both into a Unity project?
     
  2. MikeMnD

    MikeMnD

    Joined:
    Jan 17, 2014
    Posts:
    13
    I've stared implementing them yesterday...
    After adding the Facebook package with all settings
    the app doesn't build neither on android or iOS.

    So yeah experience is bad and I'm using:
    Facebook SDK 9.0.0
    Unity 2020.2.1f1

    I also have:
    External Dependancy Manager and admob plugin - https://github.com/googleads/googleads-mobile-unity
    So yeah integrating 3rd party stuff into unity mobile project is not straight forward and is kind of bad.

    Also I have several errors when Unity itself cant find JAVA or Android SDK even thou it build an hour ago.
    Mostly the workaround is to go check/uncheck the paths to NDK, SDK in the Preference but even that doesn't help sometimes.
    And that's with Unity default downloaded java and android sdk.
    On iOS on the contrary there are cocoapod problems and even after a successful build we couldn't upload the app because there are issues with signing after adding the Facebook SDK.

    I also tried this:
    https://github.com/googlesamples/unity-jar-resolver

    Cause sometimes (almost always) when you install a third party package like admob it comes iwth it's dependencies like unity.ads package...than if you have it on in the services there is a duplicate package.
    And that's not all ... sometimes there are android packages which are duplicated between different 3rd party dependencies.
    And yeah as much as I read online - this seems to be standard reoccurring problems when someone tries to integrate such a third party plugin/package.
    Only time may fix it.
     
unityunity