[RELEASED] Facebook Canvas Web Banner

Hi everyone,

We were looking around the web trying to figure out how to add some framework around our Unity app on Facebook and found it to be quite complex as Facebook creates their own html page that loads Unity apps in an iframe.

However, I was able to write up some scripts to load an external web page and display it above the Unity app. It’s quite useful as a web banner to have external links to your other work or downloads. It could be used to cycle ads as well (with javascript on your html page), but I have no idea if that would violate Facebook’s ToS.

Anyway, here’s a screen shot of one of our games on Facebook that displays a web banner with links for mobile downloads.

Here’s a link to it https://www.assetstore.unity3d.com/#/content/12713 Hopefully, someone will find it useful. Feel free to give suggestions for improvements/features if you like.

thanks,
Derek

Hi, nice work. Have a question… Could I display an interstitial using your code? I want to use appnext to monetize my app, but, the problem is that Unity WebPlayer renders always on top, and then the interstitial is behind the webplayer. The same occurs with banners. Appnext give us an html code to integrate interstitials and banners.

Best Regards!

do you recommend any ad networks that would work with this plugin? From what i understand adsense is not allowed on facebook?