Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
691 views
in Technique[技术] by (71.8m points)

javascript - Facebook sdk.js returns 404 error

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.

Facebook SDK 404 request error shown in browser dev tools.

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

Screenshot of sdk.js in the browser, which is just a white page with the text "Not Found".

Facebook Status shows that the API everything is OK.

Screenshot of Facebook status dashboard that shows everything as healthy with no issues.

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

Screenshot of Instagram's embeds.js in the browser. The page simply says, "Not Found".

Screenshot of Facebook's debug.js in the browser. The page simply says, "Not Found".

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...