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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Facebook + WebGL + Cloud Build

Discussion in 'Unity Build Automation' started by De-Panther, Feb 10, 2016.

  1. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    553
    Did anyone tried this?

    I got the URL of the WebGL "index.html", and I set it on the "Secure Canvas URL" in the facebook test app settings.
    When I put the URL in the address bar of the browser - I see the WebGL page.
    But when I try to enter the facebook app, it shows blank where I should see the WebGL content.

    The error I get in the JaveScript Console:
     
  2. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Cloud Build isn't really meant to be your public facing WebGL host. We restrict iframes for WebGL content from being hosted on the unity3d domain currently. The right way (for now) is to pull down the zip of the build from Cloud Build and self host it somewhere.
     
  3. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    553
    We don't need it as public facing WebGL host, just want to test it internally.
    We thought that we can check if the build is success by checking with a private facebook test app. and because you already show the page in the browser, we thought that it'll make the process of testing it shorter. (As we won't need to upload it to a server, or set a local server, for two people to check)
     
  4. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    Ahh ok. Ya I agree that it definitely makes those kind of development scenarios more difficult and we are still discussing the right way to make WebGL content embeddable for cases like this without opening it up to serve as the public facing host for the content. I will keep you updated if the current plans change.
     
  5. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    553
    Thanks.

    Also, I tried to enter the URL in incognito mode and got "Unauthorized" message - so I don't think that someone will use this URL as public on facebook :)
     
  6. QuantumCalzone

    QuantumCalzone

    Joined:
    Jan 9, 2010
    Posts:
    262
    are you still able to host a facebook app from dropbox?
     
  7. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    553
    Never tried to host a facebook app on dropbox...

    Anyway... are there any news about cloud build + facebook?
     
  8. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    No news. You will still need to host the build yourself if you intend to display the content on an external site.
     
  9. U-GeeN

    U-GeeN

    Joined:
    Mar 22, 2015
    Posts:
    95
    Yea, I'd like to know that, too. Tried it few times but allways get an error. Am Idoing something wron or is it just impossible?