Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1091391

    Goodmorning,
    All the social share if clicked in mobile open IN THE APP of the social.
    All BUT Facebook which opens as a browser link…
    Any Idea how to fix this?

    I tried this code found online but works very badly (app doesn’t open in the profile)

    <script>
    (function($){
        var a = function() {
            var isMobile = '';
            if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && 'ontouchstart' in document.documentElement)
            {
              isMobile =  true;
            }
            else
            {
              isMobile =  false;
            }
    
            if(isMobile || $(window).width() <= 767) {
                $('#top #wrap_all .av-social-link-facebook a').attr('href','fb://profile/476685389485016');
            } else {
                $('#top #wrap_all .av-social-link-facebook a').attr('href', 'https://www.facebook.com/GDGpropertysolutions/');
            }
        }
    
        $(window).resize(function() {
            a();
        }).resize();
    })(jQuery);
    </script>

    Thank You

    #1091650

    Hey Arcatech,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

    #1092703

    Actually it seems strange to me that a common and appreciated theme like yours features a flaw this big!!!

    Social sharing must be flawless! All the others like Twitter and linkedin authomatically open in the app. Facebook should do the same!

    #1093475

    Hi,

    Where did you add the script? Try to replace the url pattern with the following.

    fb://facewebmodal/
    
    OR
    
    fb://page/PAGEID
    

    Replace “PAGEID” with the actual id of the FB page or profile.

    Related thread:

    // https://stackoverflow.com/questions/50683354/correct-way-in-2018-to-open-facebook-app-via-website-link/51034121

    Best regards,
    Ismael

    #1095341

    Ok thank you very much Ismael!
    that worked great, BUT it only links the page.
    How can I share! the post opening the facebook app instead of the mobile url???

    #1095761

    Hi,

    Thanks for the update.

    I’m sure that’s possible. According to this forum, it has to be set in the application directly.

    // https://forums.androidcentral.com/android-apps/593611-how-force-android-open-facebook-links-facebook-app.html

    Try to follow the steps here:

    // https://talk.sonymobile.com/t5/Xperia-Z2/Open-links-in-Facebook-app-itself/td-p/933637#gref

    Best regards,
    Ismael

    #1095826

    Ok Thank you very much, it was very helpful.

    It seems there is nothing I can force from the website then.

    #1095863

    Hi,

    I;m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Facebook Share not opening in APP’ is closed to new replies.