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 boggart · May 08, 2015 at 05:56 AM · androidioscanvasfacebook

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

First at all, sorry for my bad english, I'll try to be the more specific as possible.

I have a facebook game made with Unity and using Facebook SDK for Unity, that was released to facebook canvas first. After of this, I made the mobile versions for Android and iOS, so I added at Facebook settings, enabled the "Single Sign On" and "Deep Linking" options for both platforms.

alt text

And my FB.Feed configuration on code looks like this:

 FB.Feed("",
            "https://apps.facebook.com/epidemia-electoral",
            "Superen mi record de " + ParseUser.CurrentUser["score"].ToString() + " votos en Epidemia Electoral",
            "Epidemia Electoral de SDPnoticias desarrollado por Mixtli",
            "En Epidemia Electoral debes evitar que los enemigos de la democracia ejerzan votos malos",
            "http://static.sdpnoticias.com/epidemia-electoral/principal.jpg",
            "",
            "",
            ",
            "",
            null,
            DespuesDeCompartirCallback);

When someone shares their score on their Facebook wall through the game, and this publication is viewed from the native Facebook application on both Android and iOS, the link is directed to the one specified in the configuration of FB.Feed (ie, the canvas) and opens in the facebook's in-app browser, instead of launching the application.

I have understood that setting the Deep Linking as you can see above, should suffice for Facebook to launch the application.

I understand that this error occurs in the native facebook application on iOS, as the game is not yet in the AppStore, but still in the Android happens and my game is available in Play Store.

I appreciate the help you can give me, I'm really stuck with this and do not know what to do.

captura-de-pantalla-2015-05-07-a-las-105919.png (126.9 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by taxvi · May 19, 2015 at 01:59 PM

yes the click on the post will take the user to https://apps.facebook.com/epidemia-electoral because this link does not have the necessary meta headers to redirect him to your game on the device (or appstore/playstore).

you need to create a custom webpage with all the redirection headers manually. fortunately, facebook has a not-so-easy-to-find tool for generating free redirection pages here >> https://developers.facebook.com/quickstarts/?platform=app-links-host

yea, just click that link and follow each step. finally it will generate a page for you with all the necessary deeplinks to your app on all the platforms you need. (should be like: www.fb.me/123456). copy THAT link and past it as your FB.Feed function's link argument.

Comment
Add comment · Show 3 · 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 taxvi · May 19, 2015 at 02:01 PM 0
Share

figuring this out was a pain in the ass for me too

avatar image boggart · May 20, 2015 at 02:49 PM 0
Share

Thank you taxvi, it was just what I did and I solved much of the problem, except that ins$$anonymous$$d of opening my Android application always asks me if I want to install, even if it is already installed on the device.

avatar image taxvi · May 21, 2015 at 09:16 AM 0
Share

ok in this case there may be one of the 2 things going here: 1. you did not provide the correct deeplink to the facebook tool. your deeplink should be fb12345:// and 12345 being your facebook app id. 2. now if the first step was done correctly than you are not providing the deeplink in your plist file on iOS (I don't know about Android). read the configure plist section of facebook sdk integration for iOS >> https://developers.facebook.com/docs/ios/getting-started#configurePlist

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Facebook App ID issues (IOS and Android) 1 Answer

Facebook unity sdk: is it possible to send friend invites/app requests to non app users ? 1 Answer

I can see/send invites to non-app user friends on canvas app but not on android/ios 0 Answers

Facebook Platform Policies and Promotions Policies 0 Answers

android game crash after posting on facebook through native app 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