Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Facebook "Upload last build on Facebook": where do I get the "upload access token"?

Discussion in '5.6 Beta' started by Jean-Fabre, Mar 21, 2017.

  1. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi Everyone,

    I am targeting "Webgl" for the Facebook Platform, and I am failing to upload a previous build on facebook, I think because I am not using the right "upload access token", and I get this

    Uploading build to Facebook failed: {"error":{"message":"(#100) Invalid parameter","type":"OAuthException","code":100,"fbtrace_id":"HBBJ7FSJlsV"}}
    UnityEditor.BuildReporting.Artifacts:SetProgress(String)

    or this:

    Uploading build to Facebook failed: {"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190,"fbtrace_id":"GtU\/nQ2gfWN"}}
    UnityEditor.BuildReporting.Artifacts:SetProgress(String)

    When I tried to use either the app secret key or a user access token.

    I am failing to find any hints in the various doc available on facebook developers site.

    Thanks for your help,

    Jean
     
  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    On facebook go to your app's section in the developers area: Products > Hosting > Get Asset Upload Access Token
     
    Michieal likes this.
  3. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    I must be blind... frustrating :)

    I am following for example this page: https://developers.facebook.com/docs/games/gameroom/build

    it says to get to the hosting you need to go to
    https://developers.facebook.com/apps/YOUR_APP_ID/hosting/

    but if I do that, it redirects me to the dashboard where nothing is mentionned about hosting.

    I though that page was outdated, but it seems not to eb the case, so I am missing something maybe prior to this on how to set properly either the app or the test app or the platform?

    Thanks for your patience :)

    Bye,

    Jean
     
  4. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
  5. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    It's odd, cause in the product list I get none of what was mentionned here, no GameRoom and no "Web hosting".


    But If I do add a platform, then I have


    but then, even selecting "WebGL" or not, doesn't seem to give me any options for more products, with or without a test version of the app, etc.

    Do we need a special access or developer option to gain access to this beta Unity integration?

    Bye,

    Jean
     
  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    I honestly don't know. Will ask FB about it.
     
  7. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    Thanks :) I am aware this is not really your end of this feature, I appreciate your time. We are trying to check if ExitGames PUN is working, we have some reports that it fails, so we want to be able to correct it before 5.6 goes public.

    Bye,

    Jean
     
  8. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,070
    The guys say you need to set your app category to "game" (yours is "enterainment" currently) and the the hosting option should appear.
    You can do so when creating a new app or in the app settings.
     
  9. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    429
    Hi,

    Cool, thanks for looking this up, it worked :)

    Bye,

    Jean
     
  10. stvster

    stvster

    Joined:
    Mar 4, 2013
    Posts:
    70
    Answers all my unasked questions.
    Thanx Guy's,
    Steve