Categories
News Programming

Facebook Apps Still Not Serving SSL

Almost two months ago, Facebook added a setting for browsing with an SSL connection. So far, most app developers have not yet caught up.

It’s simple. Go to Account->Account Settings->Account Security->Secure Browsing and click a checkbox.

 

Option for using https "whenever possible"

 

After saving, your Facebook experience will all flow over SSL, every byte encrypted with a 128-bit key. But fire up your favorite game, and you will probably see a request to turn this setting off.

Dialog displayed by apps that don't support SSL

If you click the continue button, you might expect that you’d be temporarily allowing an unencrypted connection. Instead, your setting is turned off. When you’re done with CityVille, you will have to switch it back on again. I’m sure Facebook will improve this user experience over time.

When Facebook rolled out this feature, they added a new setting for app developers that asks for the URL to the secure version of their app. It starts out blank, and when it is blank, the dialog above shows up. Naturally, I wanted to get things right, so I began experimenting. Unfortunately, once you have a valid value, you can’t return to having it be blank. Now I was forced to solve this somehow.

Time for a short diversion into how HTTPS works.

You know how you can have one server hosting multiple domains, each with their own site content? It’s called virtual hosting, and it’s a standard feature of Apache. The way it works in the HTTP protocol is that when your browser connects to the server, it uses the IP address (e.g.192.168.1.1) and in addition to asking for the document to view (e.g. GET /index.html) it also specifies the domain name (e.g. www.18int.com). Apache’s configuration knows where the files on the server are for that domain, and away we go.

In the case of a secure connection, your browser and Apache must exchange keys to be used for encrypting data. Your browser will also ask for proof of identity from the server. The proof is in a small file called a certificate. It’s only good for one IP address and one domain. You can make multiple certificates work if you have multiple IPs. A certificate signed by an authority is a few hundred dollars, but IPs are scarce. It’s a gigantic pain in the neck for a small developer.

If you have multiple apps running on Facebook, you could reorganize them on the server to use subdirectories instead of subdomains. For both canvas apps and iframe apps, the user is hardly exposed to your backend URLs anyway. In the short term, I’ve made a single page that says the following.

We’re sorry! This app does not function when requested via ssl. To access this app, please change your facebook settings under Account->Account Settings->Account Security->Secure Browsing.

Then I pointed all of my SSL URLs at it. Note that I this page is served up using a self-signed certificate. It’s interested that Facebook doesn’t care to enforce the identity check but they do care that the data is send via SSL end to end. That’s reasonable.

Instead of reorganizing all of my files on the backend, I plan to rebuild my apps so that they work outside of the Facebook canvas, using the Facebook Connect feature instead. Facebook seems to be doing what they can to push everyone off of the canvas, anyway.

It’s also interesting that most of the games I’ve tried still show the request to switch off SSL. The popular Zynga games do. I found that Golden Nugget Vegas Casino, run by one of my clients (AltEgo), does serve up with SSL. Smart.

Recently, Twitter added a similar feature to always use HTTPS, but I wouldn’t expect any issues like we have with Facebook because Twitter never got into the business of piping content from apps through their own servers.

Enhanced by Zemanta
Categories
News Parenting

Study Philosophy, Be Powerful

Cory Doctorow linked to a list of famously successful people who studied philosophy.

Bust of Aristotle. Marble, Roman copy after a ...
Image via Wikipedia

Here’s a giant list of famous and accomplished people with philosophy degrees, just the thing to show the parental units when you choose your major. I want the comparable list of successful underwater basket-weaving majors. (via JoHo)

Check out the list and you’ll find one of your heroes and perhaps a villain or two. That suggests to me that studying philosophy helps you become powerful. You will learn fundamental truths, levers to move the world. While I too studied philosophy in college, intensely but outside of university classes, I passionately wish I’d focussed on it earlier. Philosophy should be a core subject of education from the beginning.

Are you interested in learning about philosophy right now? Try Stefan Molyneux’s An Introduction to Philosophy videos.

Enhanced by Zemanta
Categories
News Programming

Facebook’s @Mentions Works in Comments Now

 

Screenshot of using the @mentions feature
Screenshot of using the @mentions feature

Do you use the @mentions feature in your status updates? If you type @ and immediately start typing a name, Facebook will suggest friends. Click on one and the name is inserted as a link. The friend will be notified and more likely to notice. Until now, this only worked in your own status updates. It now works in comments on anything posted to a news stream.

Unfortunately, the @mentions feature does not work when updating status via the Graph API. Apparently it did at first, but app makers immediately used it to spam everyone with notices. Facebook yanked it. I would have preferred that they limited notifications similarly to how they limit how many news stream updates can go out in a certain time period.

In addition to mentioning people, you can also mention pages and apps.  Many of the things you “like” in your profile have underlying pages. If you’re mentioning a band or a movie you enjoy, try using the @mentions feature to make it easy for readers to find out more.

Enhanced by Zemanta
Categories
Business News Politics

Are you ready to swim?

“The truth hits everyone like a million atom bombs, and I can’t understand how everybody can be so calm. Time is running out and we all just sit around. So leave your message at the beep, ’cause I am leaving town.” —Leave a Message, Get Dead

Yesterday was Tax Freedom Day, although here in California it’s April 14th if you consider our higher-than-average income taxes. Divide up the days you work: the first hundred days are for the government. The balance are for you to spend on yourself, if you ignore all the other extortion you pay as sales tax or other fees.

It’s impossible to “get by” in the US now. The average family is left with $100/month after mortgage, food and health insurance, a scenario assuming no vacations and one car! So many people are out of work and leaning on government to take care of them, that 33 states are out of money to fund jobless benefits. California is at the top of the list. When income can be variable, a rational approach is to save during times of plenty to cover the lean times. Government does not work this way. Government moves by political pull and the expedient solution of the moment.

As all odds mount against any rational, moral person being able to make his way through life here, the Galt Meter tilts into the red zone. Can you imagine a meter that shows how close we are to the nightmare world described at the end of Atlas Shrugged, a doomsday clock that shows how close we are to destruction by weapons of immorality? It seems we’re now at a 53/47 split. Nearly half of us work so the other half can loaf and tell us what to do. Furthermore, the top 10% of producers pay 73% of taxes.

Mark Steyn calls tax-payers suckers, the rubes filling PT Barnum’s pockets. In fact, we are livestock. Within the system, we have little choice but to pay. You can choose self-destruction in the form of unbending resistance, or you can choose self-destruction by exchanging your soul for a whip in your hand. Disobey or obey. This dichotomy is false. The alternative is to stop participating.

The way forward is out. An incredible opportunity approaches. Statism is dead!  What was a theoretical conclusion will soon be demonstrated empirically. Because of its imminent failure, statism’s captains will lose sanction, and no longer be recognized as authority. That inspires fear and excitement, similar to jumping off a high cliff into deep water. Are you ready to swim?

References

Categories
Business News Politics

Rollback of Welfare Not the Only Way Out

In today’s TIA Daily, Robert Tracinski mentioned the Washington Posts’s Robert Samuelson’s continual apoplexy over the U.S. governments reckless course towards insolvency, and he concluded, “The bills are coming due for the welfare state, and the result is that we are entering a period of permanent fiscal crisis—a crisis that can only be solved if we decide to begin rolling back the welfare state.”

I would like to respectfully take issue with one word in that conclusion: only. Certainly, a rollback of entitlements would slow the inevitable decline of the state, but it’s not the only way, nor the most likely. Imagine the federal government coming to a consensus such as, “we just can’t afford it right now, so we’re halting subsidies for agriculture.” That’s an unlikely fantasy. What seems more plausible is a sudden disappearance of multiple programs, and the ones who’s beneficiaries have the least pull. Realistically, you can already see this. Big corporations get giant bailouts but schools want for funding.

It seems more likely that we will find decisions to cutback left unmade but made for us thanks to the hard facts of reality. These government programs will meet their just ends, and there will certainly be strong emotional reactions, tantrums even. I’m speaking euphemistically–I won’t be surprised when there are riots.

Some of these basic services our parents and grandparents handed over to the government are necessary and desired. (Being able to drive around on pavement is nice!) When the government fails to provide them, an opportunity might be seized. Without the a gun-powered monopoly chasing entrepreneurs away, what kind of wonderful solutions can we expect? I’m not sure, but I have been considering how I might help. Is anyone else thinking about how a collapse will provide an unprecedented chance to be productive?