Increasing Likes on Facebook

At the University Bookstore, we’ve been campaigning to increase our likes on Facebook very aggressively.  We’ve been honing our technique and we’re really getting good at it.

Here are a couple things that we’ve noticed

  • Even though we’re open during the day, people are on Facebook during the night.  Scheduling posts around the user’s schedule really improves engagement.
  • Facebook should be combined with traditional marketing in interesting ways.  For the Bookstore, we use it in tandem with Twitter and our unbelievably effective text message marketing system.
  • Facebook users don’t mind being told what to do: simply telling them to LIKE something is acceptable, and users respond to it.
  • Being social is crucial.  Facebook Pages should not be all about your business.  Let your users see the human side of your page.  University of Wyoming Admissions has seen good luck by letting their intern Zach issue “Zach Facts.”  Let users bond with your employees.  This is a traditional customer service principle applied to social media.

In less than a week of revamping and focusing our strategy, Likes have gone up over 10%.  Not bad.  More to come.

A simple vbscript nonce implementation

Nonces are an easy way to stop online forms from getting spammed for whatever reason.  Nonces work by creating a random piece of data, remembering that data on the server, providing that data to the client and then REQUIRING the client provide that data when they submit the form.  The client has one shot to get this right, because the required nonce will change next time the page loads.

The Nonce Process

  • Create random data
  • Remember that random data
  • Give that random data to the client
  • Require that the client submit the random data when they submit a form

Nonces are simple, effective, and easy to implement.  I had to write a nonce algorithm today in vbscript.  Nonces couldn’t be easier.

The Generator

Here’s the nonce generator.  Paste this code into a file that’s included on all forms.

<%
Session("last_nonce") = Session("current_nonce")

sent = Request.Form("current_nonce")
valid = Session("last_nonce")

max=100000
min=1
Randomize

Session("current_nonce") = "n"&(Int((max-min+1)*Rnd+min))

%>

This snippet of code couldn’t be simpler.  Line 2 allows the application to remember the last nonce generated.  This is important, because we’ll be generating a new nonce as soon by the end of the snippet.

Line 4 saves the nonce response (sent with your form) and line 5 saves the last nonce to an easy-to-remember variable (not entirely necessary, but I’m sloppy).  The rest of the lines merely generate random numbers in a certain range.

I prepended the nonce numbers with an “n” to prevent vbscript from doing arithmetic comparisons with the numbers.

Sending the nonce in your form is also easy:


<form action="validator.asp" method="post">

<input type="hidden" name="current_nonce" value="<%=Session("current_nonce")%>" />

</form>

This merely hides the nonce in your form and submits it with the data you are collecting.

The Validator

Validating a form couldn’t be easier.  In the processing block of your vbscript, make sure sent equals valid.

<%
If sent = valid Then
' Process the form
End If
%>

I Want My Blog Back.

Hi, All.

I’ve really missed my blog, and I am going to try to update it more.  I’m not going to design a theme for it, because I know that will obsess me, and I will, consequently, never post anything.

I work with the Internet.  I hope I can highlight some cool new technologies and things I’m working on while posting some interesting things that are making my life better (recipes for delicious college-friendly food, managing money etc).

Also, I have WordPress on my phone.  The goal here: post brief updates frequently (like a fortified Twitter).