- You'll notice in step 2 of the Configure your app for Facebook Canvas section that Facebook apps require HTTPS hosting of the .unity3d file. I have no experience with security certificates on websites, so I figured this was the time to learn. I thought perhaps there may be a way to do this locally, but I don't have a lot of experience with it and an SSL certificate was only $60 with Godaddy. If anyone has any info on another (free) way to do this, please leave a comment! I tried using self-signed certificates and a local webserver and couldn't get it to work.
My dedicated server through GoDaddy has a Plesk administrator control installed. I followed GoDaddy's instructions for installing to Plesk 8.x to a tee except that, unlike the direction in Step 11, there was no option to change the domain's certificate from the default one. After much searching, which ,long story short, was difficult since I didn't know what to search for, I discovered that I had to switch the certificate in the IP addresses section in the server configuration. I'm glad I discovered this on my own because GoDaddy would've charged me to get them to help me configure the server even though their instructions seem to be incorrect. Lame! - I notice the Facebook tutorial makes no mention of setting the Site URL setting in the Website section of the app settings. I tried leaving this out just to see if the app would work without it and I couldn't save the settings. So, this field should be the URL for the html file that unity spits out when you build to web player.
- So, in my first build I somehow neglected to put the App Id discussed in Step 6 in and without it, it's impossible to log in. Facebook doesn't really help explain because if you do this, you'll just get an alert error that says "An error occurred. Please try again later." over and over. Be sure to make sure your app Id is right before you upload to your server. For some reason when I uploaded the correct build, it wouldn't show the updated Id. I even deleted the files from the server and reuploaded them and it still showed the 0 default Id. I ended up making a new directory and having Facebook read from it instead. Again, any info as to why my server would serve up an old page (besides caching because I'm pretty sure that wasn't it) please leave a comment.
That's it! Seemed like a lot I guess because it took me a long time to get 1 and 3 straightened out with my server. My console is working just like in the picture. When I view the app on Facebook, it shows all my friends dialog, status post dialog and so forth. Really neat stuff. My next goal is to send game data from one friend to another.
No comments:
Post a Comment