FB canvas app Chrome and https - facebook

Why chrome is not showing my canvas application on facebook ?
It will show it when you surft direct to it om our domain. But it will give the error below when accessing it it through the apps.facebook.com domain.
We are running on a self signed certificate. Using Firefox on fb canvas app gives you an option if i want to continue surfing an insecure site. Chrome will show an error with no options.
This webpage is not available
might be temporarily down or it may have moved permanently to a new web address.
Error 501 (net::ERR_INSECURE_RESPONSE): Unknown error.
Google chrome version 16.0.912.63 m

Had the same problem and solved it by going to my local canvas site, exported the certificate (as p7b) and imported it again into Chrome. There was an older local certificate installed, maybe that was the problem.

Related

facebook and gmail not open login page in safari in simulator

I have integrated facebook and gmail in my app but when i redirect user to safari for login i am not able to open facebook or google page for loginin safari in simulator. it gives me error like "safari can not open the page because it can not establish secure connection to the server."
Any one knows what is solution to resolve this issue?
Thanks in advance.
Below are common issues in such cases
Disable 'Auto Proxy discovery' in proxy settings of your Mac
You are behind a proxy
You are using a Antivirus which has WebShield of similar feature enabled. Disable the antivirus and try again
Your simulator's date & time are not sync to current date. Certificates don't validate fine when system date is skewed
Rebooting the simulator also at times help
Below are the threads you should look into
Can't visit website on iOS Simulator—'This Connection Is Not Private'
iOS simulator can't access any URL and shows the error "This connection is not private"
iOS Simulator not works on https, all https are evaluated as not trusted
Can't use HTTP in iOS 8 simulator
iPhone simulator cannot connect to internet
I fixed this by disabling Avast Web Shield.
I have Avast Antivirus installed and adding facebook url to the configuration of the internet scanning service allowed me to fix this problem.

Using a self-signed certificate with a chrome packaged app

I'm developing a Chrome packaged app (not an extension), which connects to the server over secure WebSocket. The server's certificate is self-signed, and this cannot be changed.
The problem is that on the chrome packaged app, the connection attempt fails with an ERR_INSECURE_RESPONSE error.
In the Chrome browser, there is a work-around: The browser opens a security warning page. If user chooses to continue to the website, it goes on to the remote page. However there is no such work-around in a packaged app. Instead, the connection attempt just fails.
Is there any way to code the Chrome packaged app to accept a self-signed certificate?
Found a work-around - open a browser from inside the chrome app.
This is done by using a webview HTML element (webview is the chrome app name for iframe).
Now the chrome app user can accept the security risks of using a self-signed certificate, just as the web app user does.

Visual Studio 2015-Angular-Cordova-facebook login error

My Visual studio 2015 Cordova app, which uses facebook login is working fine in Ripple emulator. However, when I try to run the same app in Android emulator or in device, I get the error: “Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.".
In my facebook settings (https://developers.facebook.com) for website I have following entry:
Site URL: http://localhost:4400/
Mobile Site URL: http://localhost:4400/
In Advanced Tab, OAuth settings, both Client OAuth Login and Embedded browser OAuth Login are “yes”.
I tried with “Valid OAuth redirect URIs” keeping empty or http://localhost:4400/login
Hosts file does have an 127.0.0.1 localhost entry.
What should be the right URL in Site URL for an application in Basic and Advanced tab of http://developers.facebook.com? Wondering if these fields are ignored for a mobile app?
Like on a device, when running in the Android emulator, the Android OS believes "localhost" is the device itself rather than your PC. This is just like running Windows in a VM in this regard. Try fully qualifying your machine name or using an external IP instead.

Facebook app hosted on SSL gives "Connection not trusted" error for some visitors

I have developed a Facebook app that works well for me using IE11, FireFox latest and Chrome latest.
I am hosting it on my domain with an SSL certificate, and the app is set up correctly in Facebook Developer portal.
The client, however, see "Connection not trusted" error message using FireFox latest.
I also occasionally get this problem when browsing https to some of my other domains using my phone, so I do not think this is in particularly a Facebook problem, but more something with my hosting or SSL certificates as my host installed them.
My question is: What can cause "Certificate not trusted" errors intermittently? Thanks!
It seems that one of the site URLs needed a '/' at the end. The problem is gone after adding that '/'.

Facebook App show blank in PC chrome, but work in phone's chrome

I wrote a facebook app.
https://apps.facebook.com/nusquare-free/
It shows blank page in PC chrome for https://apps.facebook.com/nusquare-free/
But it works in mobile phone chroma, safari and PC safari.
When I direct to http://nuphoto.com.tw/freemobile/ -->This is my web page for facebook APP.
It works for every browser, including PC browser.
Could you tell me how to make it work for PC chrome when directly connect to
https://apps.facebook.com/nusquare-free/ ?
Is this because my web site is not SSL authenticated ? or the setting problems ?
But it works on cellphone(iphone and android).
Thank you very much.
I found it's because https/ SSL certification problem.
After I apply a issued SSL certification and install it in my server. It's solved.