- Home /
Facebook Plugin - FB.init() do nothing in stand alone web
Hello!
I just deploy Facebook plugin export as web platform to my https server, and provide direct link in "Facebook Dev Center" to my "web.unity3d" file
If I run my application on facebook:
https://apps.facebook.com/[My_Test_App_Id]
and press "FB.init" button, it worked like a charm :)
However if I go to my https server directly and try to run web.html which load web.unity3d without integrating in into the Facebook website, then: It loads up, I hit FB.init button and nothing happend....
No error or any other message which would hint me what is wrong...
Do you have any ideas why the same application works inside Facebook website and does not work as stand alone without wrapping it into facebook page?
Is it even possible to have customers who can play your game on FB, or play it outside of FB, on your own website from the same web.unity3d file?
Topic UP! is it something to do with properties during initialisation? "cookie", "logging", "status", "xfbml", "frictionlessRequests" ?
Also when "logging" options is set to true, where can i find JavaScript console to see debug output? And which debug statement should I use? Unity Debug.Log? or FbDebug.Log()?
I am having the same problem, and it would mean a lot to me if someone could give me a tip or a hint on how to resolve this.
Answer by Kiwasi · Jul 07, 2014 at 12:12 AM
For 'security reasons' the FaceBook Unity API does not function on webplayer unless it is within FaceBook canvas.
I suspect the 'security reasons' may have something to do with who gets the revenue for advertising posted next to your games.
I think its still possible to integrate FaceBook, but it will require a lot more work
Thanks, it explains a lot, when the app is ran through Facebook and you check "Unity Integration "Yes" to use the Facebook Unity SD$$anonymous$$" it includes the necessary stuff, which is not included when you build the project for web player. I expected it to be part of the built file since I the Facebook SD$$anonymous$$ is included into the project.
Your answer
Follow this Question
Related Questions
Facebook WebPlayer hideFlashCallback 1 Answer
Weird game-output! 1 Answer
C#, Photo Grabber not working in built version 0 Answers
Facbook Authentication token 0 Answers
Hiding/Resizing the Unity Web Player for Facebook actions 1 Answer