Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by slake_it · Jan 27, 2016 at 08:47 AM · androidunity 5facebook

how to get facebook game request url?

Hello,

we are using facebook unity sdk game requests on android.

  • when someone clicks a game request in their facebook notifications

  • they switch to the game or the app store page (if it's not installed)

  • when the game runs, we call FB.GetAppLink(DeepLinkCallback)

  • however, we receive empty url.

anyone knows how to achieve this ?

Thanks.

Full code:

 void AfterInit(){
             FB.GetAppLink(DeepLinkCallback);
         }
         
         void DeepLinkCallback(IAppLinkResult result) {
             Debug.Log("app url = "+result.Url);
         }





Comment
Add comment · Show 1
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 slake_it · Jan 28, 2016 at 11:04 AM 0
Share

any ideas on what's causing this ? (deep linking is enabled on facebook dashboard )

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by phil_me_up · Jan 27, 2016 at 01:50 PM

Is the App properly setup for Deeplinking (within the Facebook Dashboard). There are some additional options you need to enable for this.

I think you will also need to properly setup the App Link for the game properly, which on Android does involve some manipulation of the manifest files: Follow the information and Create links here https://developers.facebook.com/products/app-links

I assume you've seen this already but if not: General Info: https://developers.facebook.com/docs/unity/reference/current/FB.GetAppLink#besties Android Specific: https://developers.facebook.com/docs/applinks/android

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 slake_it · Jan 27, 2016 at 06:03 PM 0
Share

thanks for the info, however,

  • deep linking is enabled on facebook dashboard

  • how to setup app links for game requests ?

(i've tried creating app links, however, the docs has several steps:

1- add meta data to the web page with a url that the app should recognize

2- add the url to the android manifest so the app can recognize it

  • the problem is that, when someone clicks an app request (game request) i have no idea what is the url they are redirected to

(the docs doesn't mention anything about it)

(so i don't know what to set my android manifest to filter).

avatar image
0

Answer by SniperED007 · Oct 10, 2016 at 09:11 AM

Were you ever able to get this working?

I have the same problem with iOS, Facebook is setup correctly but Unity doesn't seem to capture the parameters passed in for some reason.

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 slake_it · Oct 10, 2016 at 08:00 PM 0
Share

no i didn't, i have canceled that feature.

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

55 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

when i built apk for android in unity .I don't kn ow why its happening . is there anybody who can help me to fix this problem 1 Answer

Integration facebook with android unity 5 problem 0 Answers

unfortunately, app has stopped when trying to log into Facebook from mobile 1 Answer

Facebook SDK package not working for android? 0 Answers

unity Facebook For Android Error 0 Answers


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