We’re often asked to post items on our Facebook page that are specific to just one area of the country. Rather than posting them for our fans all over the world, we’ve started targeting specific geographic areas with specific posts. I’m sure most of you know how to do this, but in case you don’t, here’s some knowledge.

When posting a new item, link, etc to your fan page, click on the lock icon that says public and choose custom.

Next, you’ll see a dialog box asking you if you’d like to target by a specific location or language. I haven’t experiemented with language, but that’s something to put in the back pocket and maybe do some language specific updates in the future.

To geo-target your update, first select the country you want to target, then you can select everywhere (hello, Wales!), a state (Hello, Florida!) or a particular city (hello, Cleveland!). It looks like this:

Now, people in Pittsburgh (go, Penguins!) won’t see updates about events or info geared towards our Cleveland fans.

Here’s what it looks like if you’re an admin on the page, you can hover over the lock symbol to see what area you targeted it to.


This week, Facebook changed their fan pages to, um, like pages. Is that how we’re going to say that? It’s weird. Anyways, now you can say you “like” things instead of being a “fan” of them, including our higher ed institutions.

One other social feature they’ve rolled out is the Like Button, a little widget you can put on any web page and allow your site visitors to interact and say they like it. This action will appear on their news feeds and profile pages, and spread the word about content they find interesting around the web.

What’s interesting to me is the fact that this is much easier for users than using any of the various “share this” type actions, that opens in a new window. Now, it just takes users one click to share that content.

Here’s what it looks like in action. I’ve added a new Like Button to my blog. It looks like this:

It’s blue because I’ve clicked on it already, but as you can see, you will also see if any of your friends have clicked on an item. On your wall in Facebook, the following appears in your activity stream:

It’s an interesting new way to share content – it’s almost like these are little bite-sized interactions, ones that I think will definitely appeal to the more casual user. We hardcore users have been using regular share forever, right?

Here’s how to add it to your site. You can use Facebook’s Like widget builder to set some features up and it will give you either a bit of iframe code or XFBML that you can integrate into your site.

The challenge is that this widget only allows you to create a Like Widget for one page. If you are using PHP or WordPress, Andreas Jacob has come up with an easy way to dynamically have this widget get the current page URL. It’s really a simple bit of code to replace.

If you’re using WordPress, replace the URL string in the code Facebook gives you with this:

[…]like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>

Regular PHP can be done this way. You have to do a quick URL build first, hence the two lines.

<?php $url = “http” . ((!empty($_SERVER['HTTPS'])) ? “s” : “”) . “://”.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>

Once you have the current URL in a variable, edit your Facebook code, replacing the URL string just as you did above with this:


[…]like.php?href=<?php echo urlencode($url); ?>

I’m sure it would easy to get the current page URL from ASP, Ruby or any CMS platform. Try it out and let me know what you find.

One more thing…why not try it out by liking this post right below this paragraph? Thanks in advance.