title: How to fix the issue with Deeplinking from facebook post to the app or webpage?
body: <p>I am creating a deeplinking to app. when i have posted a link from website to Facebook. when i click on the link from Facebook, it will open if targeted app is installed otherwise showing error message a 'page could not load'. But it should open webpage if app not installed. Can any one help me on this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script&gt;
      (function() {
      var app = {
          launchApp: function() {
              window.location.replace("appname://");
              this.timer = setTimeout(this.openWebApp, 1000);
          },
  
          openWebApp: function() {
              window.location.replace("'www.domain.com'");
          }
      };
      app.launchApp();
      })();
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>