Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4607826
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:45:27+00:00 2026-05-22T00:45:27+00:00

We are developing a web app ( http://beta.dammela.it ) which use both FB Graph

  • 0

We are developing a web app (http://beta.dammela.it) which use both FB Graph api server side, FB Javascript SDK and social plugins.

The integration with FB is deep and we would like to detect when a user visiting our website is behind a proxy which block all traffic to Facebook properties (like in some working place).

If we could detect he is blocked we could give him/her some hints, help, explanation and some alternative methods to login and interact with the application.

But I can’t figure out how to do that.

I guess, but is just my guess, there’s a way to detect if the user access to Facebook is blocked checking something in the Javascript SDK, but I have not been able to find out what and/or how.

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:45:28+00:00Added an answer on May 22, 2026 at 12:45 am

    Explaination:
    We try to download the facebook favicon. If it throws an error then we know that facebook is blocked.
    Note: When a proxy blocks a URL then it return an error in 4xx range back to the client.

    Code:

    var img = new Image();
    img.onerror = function () {
     alert("It seems Facebook is blocked!"); 
    }
    img.src = "http://facebook.com/favicon.ico";
    

    You can try this out here.

    Update: Replaced server-side C# code with client-side JavaScript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web app which requires a username and password to be
I am currently developing a web app that uses Google's Static Map API, in
Hi I'm developing a small web app in which I have and embed video
I'm developing a MVC 3 Razor Web App, in which details of multiple categories
I am developing an iPhone app that uses a web based API that I
we're developing a web app to cover all aspects of a printing company from
I'm developing a web app on Yaws 1.65 (installed through apt) running on Debian
I'm developing a web app in Perl with some C as necessary for some
I need to switch among 3 different environments when developing my web app -
I am developing a small web app project (ColdFusion) and I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.