title: How do I create a intent from my app to facebook page?
body: <p>It seemed a foregone question and I thought I could easily find an answer already,
  but the answers I found are very old and they do not work.
  How do I create a intent from my app to facebook page? 
  I would like that if there is open the Facebook app, otherwise the browser</p>
  
  <p>Up to now the best SOLUTION is that of Rishav Singla:</p>
  
  <pre><code>public static Intent getOpenFacebookIntent(Context context) {
  
      try {
          context.getPackageManager().getPackageInfo("com.facebook.katana", 0);
          return new Intent(Intent.ACTION_VIEW, Uri.parse("fb://page/&lt;id_here&gt;"));
      } catch (Exception e) {
          return new Intent(Intent.ACTION_VIEW,
                  Uri.parse("https://www.facebook.com/&lt;user_name_here&gt;"));
      }
  }
  </code></pre>
  
  <p>use:</p>
  
  <pre><code>startActivity(getOpenFacebookIntent(getApplicationContext()));
  </code></pre>
  
  <p>... in attesa di altre soluzioni</p>