question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Facebook in-app browser (on both iOS and Android) not working

See original GitHub issue

We are seeing issues with the polyfill not appropriately filling inside the Facebook in-app browser.

This seems like it may be a regression on #561

Reproduction:

https://m.facebook.com/story.php?story_fbid=10154490930306508&id=739196507

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>FB Browser Window setImmediate repro</title>

    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=default,setImmediate"></script>
</head>

<body>
    <script type="text/javascript">
        setImmediate( function() {
            alert( 'setImmediate worked' );
        } );
    </script>
<body>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
triblondoncommented, Mar 8, 2017

OK, I think the solution to this is to remove the Facebook-added [FB_IAB/FB4A;FBAV/35.0.0.48.273;] token from the UA string before parsing. This will then cause the UA to be recognised as Chrome on Android, and Safari on iOS. I’d like to do this after https://github.com/Financial-Times/polyfill-service/pull/1050 is merged.

0reactions
triblondoncommented, Mar 27, 2017

See #1147

Read more comments on GitHub >

github_iconTop Results From Across the Web

Facebook login is not working In-app browser for iOS
1 Answer 1 ... I experienced this issue. You need to use FB.getLoginStatus then if the user is not logged in, use FB.login...
Read more >
How to Force the Facebook App to Use an External ... - YouTube
The Android Facebook app comes with its own in-app browser for viewing links. This shows how to force Facebook to use an external...
Read more >
How do I troubleshoot something that's not working on ...
How do I troubleshoot something that's not working on Facebook? ; Computer · Close the page and reopen. Clear your cache by going...
Read more >
Why doesn't my site display properly in the Facebook in-App ...
Site not working 1 Facebook in-app browser ... In both Android and Apple, from the in-app browser, there is the option to open...
Read more >
7 ways to troubleshoot if Facebook is not working on your device
Refresh your browser · Check to see if Facebook is online · Clear your browser's cache · Close and reopen the app ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found