Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Gh0st992 · Aug 14, 2015 at 01:46 PM · androidcanvaswebplayerfacebook

Facebook Canvas strange behaviors

I was charged with making a promotional game for a website on Android, standard web and the FB canvas.

The Android and standard Web exports run (more or less) flawlessly, but I'm getting strange behaviors from the Facebook Canvas.

The game uses a custom built AJAX API to communicate with the DB.

It has a login/register system, a player specific scoreboard and a global scoreboard.

And it utilizes the Facebook Unity SDK on Android and Canvas.

The login, register and get score api calls work on all platforms,

the end game post score api call works on Android and standard Web export.

But on the FB Canvas and the same Web export that works, that end game post score api call is never called.

All other api calls show up in the browser inspector.

I've experimented with the placement of the call and unfortunately came up with nothing.

No errors, exceptions or bad api calls in the inspector,...

Regarding to placement, originally I called the post score in the OnLevelWasLoaded(int id),

checking if the id parameter matched that of the game end scene, and this works for the Android and standard Web export, but that same Web export on the Canvas fails to post the score.

Next I tried placing it in the Awake() function, checking the level loaded with Application.loadedLevel but to no avail, I get the same result.

To summarize:

  • Android export - works

  • Web export - on standard page Chrome or Firefox, http or https, works

  • Facebook Canvas (the same Web export) - The end game score post doesn't work

I would be very grateful to everyone that helps.

Comment
Add comment
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

0 Replies

· Add your reply
  • Sort: 

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

2 People are following this question.

avatar image avatar image

Related Questions

Logo image in Facebook Canvas increases loading time. 0 Answers

Why the feed stories of my facebook game attempt to open the canvas instead of launch the Android/iOS mobile application? 1 Answer

Unity3d web player new platforms 1 Answer

For Scale with sreen size for canvas in unity3d, my sprites in Ui are pixelated when used for larger sceens 0 Answers

Facebook WebPlayer hideFlashCallback 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