Facebook Connect Issues - javascript

I've had the Facebook like button and comments (social plugin) on my website for a while, but for some reason, it just randomly disappeared. Nothing happens to the code, and the Facebook plugins aren't inserted. There's no errors in my JavaScript, and I haven't changed anything in that regard...
The weird thing is, if I go in my browser to Facebook.com, and then hit back, it will load fine. Once I refresh, it's gone again.
Any ideas?

It could be because of this bug.
Facebook JSSDK with locale en_US
(https://connect.facebook.net/en_US/all.js) does not load but returns
"Not a valid locale."
What do you see at https://connect.facebook.net/en_US/all.js?

Related

How can I open a mobile app (eg Facebook) via a browser redirect?

I've been searching for the past few hours for this and decided I'd just try asking.
I have a URL that people will visit, it loads a PHP page which checks a database for a specific Facebook link, and then instantly redirects them. I want it to open the app if they have it, otherwise it will go to the browser version.
The issue I'm facing is that I can't get the Facebook app to open when it's a redirect. If I instead create a button or a link and I tap on it, it will launch the app correctly, but navigating to that same link without the user interaction will not work.
I know it's possible because I've seen it done elsewhere, but I guess there is something I'm missing.
I've tried using headers("Location: fb://profile/username") and have also tried other Javascript options such as window.open, window.location, window.location.href and window.location.replace
So far I've only tested this an on android phone. The link initially launches in the chrome app.
If you have a look at this Youtube video, you'll see it's doing what I want to do. It goes to a website and then straight away launches the app.
https://youtu.be/Acl7JnRFxzI?t=17
Thanks!
I think you talked about Deep linking.
Deep linking is not supported on Web so there aren’t the same functionalities as on Android and iOS. You still need to guide your users in the right direction, so we recommend adding a link to your login page.

not seeing a specific resource on a web page

i have a strange problem with a web page!and i can't see it in none of my browsers while all of my coworkers see it and work with it all well!
however if i use a vpn i can see it with no problem!
so i assume it is not my browser problem since i can see it contents with vpn
the strange part for me is that i can see title and html content but when it wants to fetch CSS and JS resources it gives (failed) net::ERR_CONNECTION_RESET!
i tried ping and trace rt and both of them was successful!
(and as i said i can see title of page and it first page that is a small page)
so i am not blocked by anything.
i also changed my internal network to something else and still it wouldn't loads up!i insert an image of what page is load in first place.
i don't know if it is relevant or not but the website is written with GWT
if anymore information is needed i be more than to happy too providing it.
i used firefox, chrome,edge,ie and none of them shows page!
i insert an image to show what is loaded
html page is loaded:the html page that is loaded and page content
resources that give error:the resources that fail to load
PS: sorry if cleared addresses out, i didn't know if it is right or not with the company to include them so i cleared them out.

403 (forbidden) on end user's console

I have an application that seems to be working across the internet. But I fielded a call from an end-user who is having difficulty using the website
I asked her to send a screenshot of the console error and recieved this:
From searching stackoverflow it looks like its a permissions issue, but the site works for everyone else. Is this on her end or mine?
UPDATE I should've mentioned that is user works from a school. Perhaps her IT admin has blocked some internet resources?
Have end-user tried different browser? i would say it's some plugin stopping to load that script. If your app is working everywhere then it can't be your app. Ask end-use to try another browser and for check if end-user has any plugin witch can also cause this.
The problem may also come from lealfet or google map.
We can se that the page is currently loaded, css ans content seems fine, only the map part seems to be broken. So i don't think there is a problem with your server/website, I would put the fault on the others.
Note : we see that leaflet only is concerned when looking carefully at the screenshot.
Edit : in some cases, you can make a local copy of these external file, check whether the user need them or not, then load them as rescue.
Update : Either the school did block leaflet, or leaflet did automatically block the school as their bandwich use can excess what they allows by user, or due to abuse of any kind.

Can't figure out why a page will not load for some users

I am at a loss and need any advice I can get on what to try next.
I have a site where users can edit their profiles. We have about 10K customers. Of those customers about 20 have this issue and I can't figure it out. When they go to the page it acts like it doesn't finish loading. One symptom is when you hover over links the pointer will not change to hand.
For me I can login with their account and try different machines and browsers and it works perfectly. I can use Chrome and change the speed and view type all still works. I have never actually reproduced the issue.
They can hit CTRL+F5, clear cache, try different browsers, different systems, nothing works for them. Today I worked with one person and removed everything from loading on that page except for exactly what was needed. No Google Analytics, no FB pixel, stripped all the JS, and nothing helped. He even tried at his local library and it still happened.
I am totally out of ideas. Anyone have any suggestions?
Thanks
The page likely isn't "acting" like it's not finishing loading, it probably is not finishing loading. Your sample size is probably large enough to cover users with outmoded browsers or restricted bandwidth. You need to get more info from your users: OS & version, Browser, Virus protection.
If you're relying on GA and other 3rd party libs acquired by CDN, one downed delivery network can stop the entire page.
I've seen this happen while on a vpn. Ask your users if they're on a VPN when this happens. Some of your assets (googlefont api for example) will not load over crappy VPN's.

Two days that all.js (Facebook SDK) is randomly not loading

we are experience since yesterday the "FB is not defined" error, caused by Facebook not serving all.js, which is the core Javascript SDK file.
Looking at the NET tab in Firebug or Chrome developer tools, I can see the get on all.js failing.
After a few page refreshes, it works correctly, then 10 minutes later is again not serving the file.
Is it a Facebook issue? Apparently we have no other network error, and we are not behind a proxy. Anyone else experiencing it? Facebook status page is not reporting any problem, and I cannot find anything recent on Google.
Is it "normal"? like Facebook limiting gets based on some "cap" or anything similar?
I have run into this same issue before. It was something that I could never really pin down but it was believed to be an issue with Facebook. My solution was to grab a copy of all.js and serve it up locally.
Your description sounds like a network issue, but if you are loading the SDK asynchronously and trying the use the FB object before it has fully loaded, it will cause this error and may also stop attempting to load the all.js due to the Javascript error.
To resolve this, put all references to the FB object inside of the window.fbAsyncInit function seen on this page: https://developers.facebook.com/docs/reference/javascript/
This may not be your issue, but that is almost always the solution when I see that error.
You must add the Facebook SDK all.js on the bottom of your page.
Before the Facebook SDK, you must add <div id="fb-root"></div>
After this load, you can call the function FB.
The call of Facebook SDK must be with the document.protocol HTTPS or HTTP.
Good luck !

Categories