Facebook sdk.js returns 404 error

孤街浪徒 提交于 2019-11-28 02:35:35

问题


My web-app has the Facebook JS SDK implemented.

Yesterday, everything was working fine and without any modification on the code, the script request started to return 404 errors.

When I try to access it directly, this is what I find:

Facebook Status shows that the API everything is OK.

Instagram's embeds.js and Facebook's debug SDK are also returning the same error:

Does anyone knows what it happening? I've tried accessing these files using my 4G network and the same error is displayed.

I'm based in Dublin, Ireland.


回答1:


I figured this one out.. it seems the .net isn't working anymore.. I used ".com" instead:

Use https://connect.facebook.com/en_US/sdk.js

instead of https://connect.facebook.net/en_US/sdk.js




回答2:


It is related to this bug, subscribe to get updated: https://developers.facebook.com/bugs/949091578557056/

There is a workaround to use .com instead of .net.

Edit: The bug is fixed now.




回答3:


I had the same problem. Use //connect.facebook.com/en_US/sdk.js url.



来源:https://stackoverflow.com/questions/40546695/facebook-sdk-js-returns-404-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!