title: Why share url to Facebook via android intent doesn't work?
body: <p>I have the following code:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_SEND);
  intent.setType("text/plain");
  intent.putExtra(Intent.EXTRA_TEXT, urlToShare);
  // determine fb app
  List&lt;ResolveInfo&gt; matches = context.getPackageManager().queryIntentActivities(intent, 0);
  for (ResolveInfo info : matches) {
      String pkg = info.activityInfo.packageName.toLowerCase();
      if (pkg.startsWith("com.facebook.katana") || pkg.startsWith("com.facebook.lite")) {
          intent.setPackage(info.activityInfo.packageName);
      }
  }
  context.startActivity(intent);
  </code></pre>
  
  <p>About 100-200 users press the share button of which more than 70% have an app installed. That would mean 70-150 shares per day. However I get maybe one share per day! I think that most of the time the FB app ignores the link, it only opens the share dialog but WITHOUT THE LINK. On my mobile device it works ok (the link is part of the share) but for others it is not.</p>
  
  <p>Am I doing something wrong? Or Facebook doesn't allow to share links like this?</p>