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

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


    Nov 19, 2020
    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?
    joseGuate97 likes this.
  2. MikeMnD


    Jan 17, 2014
    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 -
    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:

    Cause sometimes (almost always) when you install a third party package like admob it comes iwth it's dependencies like 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.
  3. joseGuate97


    Mar 1, 2018
    This is an ongoing headache. The Firebase SDK and Facebook SDK are common in the mobile industry, but they crash against each other quite badly.

    Wishing there was a straightforward solution to this problem. It's dependency hell.

    Has anyone found a good solution @glaksmono @MikeMnD?