Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Briksins · Mar 03, 2014 at 03:05 PM · webplayerfacebookstandaloneinitialization

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?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Briksins · Mar 04, 2014 at 12:17 PM 0
Share

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()?

avatar image damnjan.nikolic · Jul 07, 2014 at 12:03 AM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image damnjan.nikolic · Jul 07, 2014 at 12:43 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges