FB JavaScript SDK down
developers.facebook.com
developers.facebook.com
A week-long FB outage would surely result in a very interesting study of society’s response and adaptation to said event.
The other problem is that I would not have the same conversations with my conservative relatives as my liberal friends, and it feels awkward that everything is visible to everyone.
This makes it very complicated to say what is actually down or unavailable, which is why I'm guessing the status is "degraded performance", not "down" and they're not calling it an "outage", because technically other parts of the SDK are completely unaffected.
To say that anything in particular is down, they'd have to list a set of API endpoints that are down or a set of very specific features. This is to their advantage though as [1] as already noted, they don't have to say that their SDK is "down", since it's technically not and [2] other people are still going to argue that "hey, it's up for me".
End result, they don't really care how anybody else feels about it. What are people going to do, move to another platform? Stop using facebook to generate traffic and thus revenue? :eye_roll:
In reality, FB is just being highly transparent with issues and I should applaud them, but that's a lot of yellow and red.
Edit: I guess maybe https://developers.facebook.com/status/issues/49265292218744... is more precise so we'll change to that instead.
Previously I've used Google Tag Manager to simply disable external Javascript service when they went down. It saved us multiple time, because we worked with small service providers who doesn't really know anything about the internet, but also in two cases where AWS was unavailable. Rather than having to do a code change and a redeployment, we could just disable a 3. party temporarily.
Maybe the Facebook SDK is typically integrated to deeply to be something you can just disable. It the other comments are correct, and it's down frequently, then maybe you should design to run without it, even if it's just for short periods of time.
The beauty (or ugly, for some) of JS is that it depends on how you use it. If you just call the initialize function (which seems to be down, somehow?) of the FB SDK in the top scope of your page, all code below it is invalid. If you're including it as a script, that script will fail. If it's in a response to some onload event, the rest of the onload body will not execute either.
Not to say you should always expect errors from any 3rd party libraries unless you can guarantee it won't throw, that's just basic error handling.
But if they discontinued it, then they have little reasons to put money into improving it.
Seems developers don't bother to test/handle certain failure scenario. Because this API or this server will be available until the heat death of the universe and will never fail.
Also shows FB can, at will, essentially DDOS entire apps just by causing a few failures. Quite a nice position to be in for...Leverage should we say? :P
P.S and a tip to devs:
Please test your apps to enure if a third party component dies, your entire site isn't useless without it. It's okay having "stripe" as the gateway for your entire business to make money but you're essentially putting all your eggs in their basket.
Also, if you use third party JS scripts (caching providers), test that if something isn't loaded you have a fallback (perhaps a locally served version, just do that anyway). It's amazing how a script request just doesn't work and well...Your entire site/app is now dead.
Also, _WHY_ do these large scale API providers think that just letting the connection hang is in any way acceptable. Their load balancer, cache layer, proxy, literally anything in front of their API can return an error immediately instead of just waiting for the API. Even just returning a 504 for gateway timeout (which is probably the right thing to do) would be better than just sitting there and never returning anything.
Alternatively, is there another page that tracks the status of the issue? I found Platform Status [1]; or perhaps "JS SDK and Social Plugins Failure" [2] is more accurate.
For the record, at the moment the submission points to a discussion on Facebook Developers forum [3].
[1]: https://developers.facebook.com/status/dashboard/
[2]: https://developers.facebook.com/status/issues/49265292218744...
[3]: https://developers.facebook.com/support/bugs/484663959337678...
Hi John,
Thanks for reaching out. We are aware of this issue and are currently working on fixing it. I'll update this thread when I have more information from the team.
Thank you for your patience.
Regards, Fatma
The rest is a bunch of people complaining of the same issue.
It's a project I set up a while back to track changes to the FB JS SDK