- Home /
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);
}
any ideas on what's causing this ? (deep linking is enabled on facebook dashboard )
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
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).
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220612061915im_/https://answers.unity.com/themes/thub/images/avi.jpg)