Cannot get the Unity web player to load the Facebook dll

北战南征 提交于 2019-12-10 21:12:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!