I got problem to make the FB.Mobile.FetchDeferredAppLinkData() function to work on android, all works well on IOS but on Android I just get {"did_complete":true,"callback_id":"2"} as response from Facebook, no URL.
I saw in the logcat a message from GraphRequest : Warning: Request without access token missing application ID or client token.
So I added the ClientToken in the AndroidManifest.xml and the FacebookSettings (adding it only in the setting didn't work), OK the warning is gone, but I'm still getting the same result without url.
void Awake ()
{
if( !FB.IsInitialized )
{
FB.Init( InitCallback );
}
else
{
InitCallback();
}
}
private void InitCallback ()
{
if( FB.IsInitialized )
{
FB.ActivateApp();
FB.Mobile.FetchDeferredAppLinkData( InvokeURIRecived );
}
else
{
Debug.Log( "Failed to Initialize the Facebook SDK" );
}
}
private void InvokeURIRecived( IAppLinkResult result )
{
Debug.Log( "InvokeURIRecived " + result.RawResult );
}
Did I missed somethig ? I search on google but nobody seems to have problem using this...
I tried with the Facebook Unity SDK (v7.10.1) sample app and I got the same results.
The problem has been solved by resetting advertising IDs on the devices. I followed the instructions found here: How to reset your advertising ID on Android.
(This information was posted in a comment, apparently by the OP from a different Stack Overflow account. I wanted to add it as an answer to make it clear that the question has been answered.)