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. Dismiss Notice

Facebook build target and SDKs newer than 7.10?

Discussion in 'Editor & General Support' started by pndeveloper, Jun 5, 2018.

  1. pndeveloper

    pndeveloper

    Joined:
    Dec 7, 2015
    Posts:
    29
    I am using the Facebook build target for my project. According to the documentation:

    If you want to use a different build of the Facebook SDK then the one included by Unity by default, you can do that, as long as it at least version 7.9.1 (so it supports the Facebook build target). Just download a build of the SDK from Facebook, and drop it into your Assets Folder.
    Whenever I do this (with SDK version 7.11.x or 7.12.x) I get the error message, "This project contains a custom Facebook SDK for Unity, which is incompatible with the Facebook build target."

    Is this a bug? How can SDKs newer than 7.10 be used?
     
  2. jura_z

    jura_z

    Unity Technologies

    Joined:
    Oct 10, 2016
    Posts:
    27
    Hello! This is a bug, I contacted Facebook, it should be fixed soon (you don't need to wait for a patch).
    Please, sorry for the inconvenience!
     
  3. pndeveloper

    pndeveloper

    Joined:
    Dec 7, 2015
    Posts:
    29
    When you say, "you don't need to wait for a patch" do you mean no Unity patch is necessary--that the error will stop happening after updating to some future version of the Facebook SDK (like 7.13)? Or that it will be fixed without updating the SDK (due to some back end change by Facebook)?
     
  4. jura_z

    jura_z

    Unity Technologies

    Joined:
    Oct 10, 2016
    Posts:
    27
    >some back end change by Facebook
    Yeah, we will update back end endpoint that contains a list of compatible versions. You don't need to do anything, basically
     
  5. jura_z

    jura_z

    Unity Technologies

    Joined:
    Oct 10, 2016
    Posts:
    27
    Now you can use 7.12.2.
    But unfortunately, we have an issue with built-in SDK selector. Use external 7.12.2 for now, please.
     
    Last edited: Jun 8, 2018
  6. pndeveloper

    pndeveloper

    Joined:
    Dec 7, 2015
    Posts:
    29
    So I saw 7.12.2 at one point in the publishing settings SDK selector, but it has since disappeared...
    If I include version 7.12.2 of the SDK in the assets folder, I get the error message, "This project contains a custom Facebook SDK for Unity, which is incompatible with the Facebook build target." Are you saying that error message can be ignored and everything should still work?
     
  7. levwsr

    levwsr

    Joined:
    Jul 23, 2012
    Posts:
    68
    We are having the same issue, using unity 2017.4.8f1 and Facebook 7.12.2 SDK. Also, that isnt a good enough course of action because 7.13 is the one that has this: "Update Graph API from v2.6 to v3.0."
    2.6 is deprecated! We need to be using 7.13 right now.
    Please help @jura_z
     
  8. pndeveloper

    pndeveloper

    Joined:
    Dec 7, 2015
    Posts:
    29
    FYI, you can manually include the 7.13 SDK. Even though Unity will say it's incompatible, it builds without errors and seems fine.