问题
I'm trying to test my Facebook integration for a FB Canvas game that I'm working on. When I launch the player I see the following message in the console:
loading dll: /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll
Failed downloading /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll
and if I look in the apache logs I see a request for /rsrc/unity/lib/sdk_5.0/CanvasFacebook.dll
I have the same problem using the 4.3.x version of the Facebook SDK.
I'm using Unity editor 4.3 and testing in Chrome on OSX.
Am I missing a DLL or a reference in MonoDevelop?
回答1:
It sounds like you hit build and run for the Unity webplayer. This launches your game in a web browser hosted off your local filesystem. For security purposes, the SDK must be running on Facebook canvas when run in a web browser. You'll need to set up a Facebook app, instructions are here: https://developers.facebook.com/docs/unity Alternatively, you can test in the Unity editor by hitting the play button.
来源:https://stackoverflow.com/questions/21646590/cannot-get-the-unity-web-player-to-load-the-facebook-dll