I ran into the same problem trying to fake a situation where you just installed the application after receiving an invitation to participate in Facebook. It was not possible to make the shell work, as a result, a really simple test installation was built, in which there was one button and handler code like:
Button button = (Button)findViewById(R.id.trigger_button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setAction("android.intent.action.VIEW"); intent.setData(Uri.parse("myapp://fb-app-invite")); Bundle bundle = new Bundle(); bundle.putString("target_url", "myapp://fb-app-invite?fromuser=673"); intent.putExtra("al_applink_data", bundle); MainActivity.this.startActivity(intent); } });
source share