title: Open facebook specific post form android app
body: <p>i am trying to open facebook specific post from android app in facebook app currently i am doing this but the facebook app is not showing my post its giving error</p>
  
  <pre><code>public static String FACEBOOK_URL = "https://www.facebook.com/" + PAGE_ID
                  + "/posts/" + post.getId;
  
  
  public String getFacebookPageURL(Context context) {
      PackageManager packageManager = context.getPackageManager();
      try {
          int versionCode = packageManager.getPackageInfo("com.facebook.katana", 0).versionCode;
          if (versionCode &gt;= 3002850) { //newer versions of fb app
              return "fb://facewebmodal/f?href=" + FACEBOOK_URL;
          } else { //older versions of fb app
              return "fb://post/" + post.getId();;
          }
      } catch (PackageManager.NameNotFoundException e) {
          return FACEBOOK_URL; //normal web url
      }
  }
  </code></pre>
  
  <p>is there some kind of facebook sdk to open posts and pages ?</p>