dynamic link that uses facebook app if installed









up vote
0
down vote

favorite












I'm looking for a solution that allows me to create a link on my website to handle the following use cases:



1) On desktop, user is linked to URL - eg. https://www.facebook.com/pg/sony



2) If accessing from Android/IOS and the Facebook app is installed, links to this page in the Facebook App.



3) If accessing from Android/IOS and the Facebook app is not installed, links to standard URL in browser (same as option 1)



Is there a solution for this? I've seen some javascript hacks that don't seem reliable eg. How to check if an app is installed from a web-page on an iPhone?



I've started investigating branch.io and firebase dynamic links as an option, as they provide 'failback' links if your app isn't installed. However, at a glance these seem to be geared towards deeplinking into your own app, rather than a public app like facebook



Is there a reliable solution to this problem?



Many thanks










share|improve this question

























    up vote
    0
    down vote

    favorite












    I'm looking for a solution that allows me to create a link on my website to handle the following use cases:



    1) On desktop, user is linked to URL - eg. https://www.facebook.com/pg/sony



    2) If accessing from Android/IOS and the Facebook app is installed, links to this page in the Facebook App.



    3) If accessing from Android/IOS and the Facebook app is not installed, links to standard URL in browser (same as option 1)



    Is there a solution for this? I've seen some javascript hacks that don't seem reliable eg. How to check if an app is installed from a web-page on an iPhone?



    I've started investigating branch.io and firebase dynamic links as an option, as they provide 'failback' links if your app isn't installed. However, at a glance these seem to be geared towards deeplinking into your own app, rather than a public app like facebook



    Is there a reliable solution to this problem?



    Many thanks










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm looking for a solution that allows me to create a link on my website to handle the following use cases:



      1) On desktop, user is linked to URL - eg. https://www.facebook.com/pg/sony



      2) If accessing from Android/IOS and the Facebook app is installed, links to this page in the Facebook App.



      3) If accessing from Android/IOS and the Facebook app is not installed, links to standard URL in browser (same as option 1)



      Is there a solution for this? I've seen some javascript hacks that don't seem reliable eg. How to check if an app is installed from a web-page on an iPhone?



      I've started investigating branch.io and firebase dynamic links as an option, as they provide 'failback' links if your app isn't installed. However, at a glance these seem to be geared towards deeplinking into your own app, rather than a public app like facebook



      Is there a reliable solution to this problem?



      Many thanks










      share|improve this question













      I'm looking for a solution that allows me to create a link on my website to handle the following use cases:



      1) On desktop, user is linked to URL - eg. https://www.facebook.com/pg/sony



      2) If accessing from Android/IOS and the Facebook app is installed, links to this page in the Facebook App.



      3) If accessing from Android/IOS and the Facebook app is not installed, links to standard URL in browser (same as option 1)



      Is there a solution for this? I've seen some javascript hacks that don't seem reliable eg. How to check if an app is installed from a web-page on an iPhone?



      I've started investigating branch.io and firebase dynamic links as an option, as they provide 'failback' links if your app isn't installed. However, at a glance these seem to be geared towards deeplinking into your own app, rather than a public app like facebook



      Is there a reliable solution to this problem?



      Many thanks







      web-applications deep-linking branch.io firebase-dynamic-links mobile-chrome






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 22:38









      Gando Tee

      32




      32






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          I think your best option is to simply use a plain ol' URL that links to your page on Facebook.



          The Facebook app is pretty good at claiming any URLs that it can handle and making sure it redirects people to the right place in the app where necessary. No extra work should be needed on your part.






          share|improve this answer




















          • Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
            – Gando Tee
            Nov 16 at 10:22


















          up vote
          0
          down vote













          Branch will certainly help in deep linking if the app has the Branch SDK installed. Since Facebook does not use Branch, the best option would be to use the original Facebook URL as suggested by Todd.






          share|improve this answer




















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234153%2fdynamic-link-that-uses-facebook-app-if-installed%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I think your best option is to simply use a plain ol' URL that links to your page on Facebook.



            The Facebook app is pretty good at claiming any URLs that it can handle and making sure it redirects people to the right place in the app where necessary. No extra work should be needed on your part.






            share|improve this answer




















            • Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
              – Gando Tee
              Nov 16 at 10:22















            up vote
            0
            down vote













            I think your best option is to simply use a plain ol' URL that links to your page on Facebook.



            The Facebook app is pretty good at claiming any URLs that it can handle and making sure it redirects people to the right place in the app where necessary. No extra work should be needed on your part.






            share|improve this answer




















            • Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
              – Gando Tee
              Nov 16 at 10:22













            up vote
            0
            down vote










            up vote
            0
            down vote









            I think your best option is to simply use a plain ol' URL that links to your page on Facebook.



            The Facebook app is pretty good at claiming any URLs that it can handle and making sure it redirects people to the right place in the app where necessary. No extra work should be needed on your part.






            share|improve this answer












            I think your best option is to simply use a plain ol' URL that links to your page on Facebook.



            The Facebook app is pretty good at claiming any URLs that it can handle and making sure it redirects people to the right place in the app where necessary. No extra work should be needed on your part.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 13 at 1:18









            Todd Kerpelman

            7,30411928




            7,30411928











            • Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
              – Gando Tee
              Nov 16 at 10:22

















            • Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
              – Gando Tee
              Nov 16 at 10:22
















            Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
            – Gando Tee
            Nov 16 at 10:22





            Thanks @Todd - I appreciate the input. I've tested this out and have fallen at the first hurdle (on my android phone). Using the example from my initial post, if I click a link targeting facebook.com/pg/sony from the chrome browser on my android device, it remains in chrome and directs me to m.facebook.com/Sony/?_rdr - the facebook app isn't claiming this URL and launching it there. I thought this must be a pretty common scenario, to offer the best user experience - however I can't find a reliable way to do it. Any further advice would be greatly appreciated!
            – Gando Tee
            Nov 16 at 10:22













            up vote
            0
            down vote













            Branch will certainly help in deep linking if the app has the Branch SDK installed. Since Facebook does not use Branch, the best option would be to use the original Facebook URL as suggested by Todd.






            share|improve this answer
























              up vote
              0
              down vote













              Branch will certainly help in deep linking if the app has the Branch SDK installed. Since Facebook does not use Branch, the best option would be to use the original Facebook URL as suggested by Todd.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Branch will certainly help in deep linking if the app has the Branch SDK installed. Since Facebook does not use Branch, the best option would be to use the original Facebook URL as suggested by Todd.






                share|improve this answer












                Branch will certainly help in deep linking if the app has the Branch SDK installed. Since Facebook does not use Branch, the best option would be to use the original Facebook URL as suggested by Todd.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 15 at 5:59









                Bharath Lalgudi Natarajan

                1163




                1163



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234153%2fdynamic-link-that-uses-facebook-app-if-installed%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Darth Vader #20

                    How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                    Ondo