简体   繁体   中英

port unity game to facebook canvas platform using parse

I am porting a unity game to facebook canvas to make it available on facebook by using following link

https://developers.facebook.com/docs/unity/getting-started/canvas

I am using parse to deploy my game. I am successfully able to deploy my game and if i navigate to that url I am able to download my uploaded game files.

when I gave that url as Secure Canvas URL , it showed there is no file on that parse url.

it is because Facebook Canvas applications makes HTTP POST requests to your canvas URL. Parse Hosting only supports HTTP GET for static HTML pages. I got that I have to add some code, but cant understand which code to add and where to add, as I am not a much web person.

any help will be much appreciated. Thanks

What I am aware of is that facebook requires https:// connection and it does not support http:// while parse is http://

You will be able to see this info if you go to your facebook app canvas page with google chrome. Then hit F12 or right-click > inspect. The console will have the error log.

What you need is an https hosting

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM