Post image for Facebook Open Graph Tags for Sharing

Facebook Open Graph Tags for Sharing

by Todd on May 1, 2013

In my line of work Facebook is a necessary evil. I say evil because it sucks tying to work with them. They constantly change their platform but don’t update the documentation. There’s zero customer support for when you want to get something *fixed*. Yes, they offer their service for free (bombarded with ads) so there’s a bit of you get what you pay for in that, but we (developers) are creating content/apps/games/etc. to keep users on their site so they can continue to make money. The lest they could do is offer us an avenue to get tech help when we need it. Even if I had to pay a subscription or something, I’d do that instead of combing the Internet looking for answers when things go awry.

OK, rant over, on to one of the tools for developers that anyone (not just a developer) can use. This one is all about sharing (sharing is fun, right?). You make a web page/site and you want to let people share it. The only thing is, Facebook is going to grab random pieces of information (or is it? More on that later) to show when sharing. How do you know what it’s going to show to users?

Easy, use the Facebook Debug Tool (formally, Linter).

This tool will show you what the share title, description, image, and other items that it will use to share your page to the Facebook world. So you can see if there’s something not right. For example, I just used the tool on my home page. See the screen shot below:

Facebook Debug ToolThat clearly shows that if someone tries to share my home page, the thumbnail will be of a smiley emoticon. Oops! I’d better define what image I want it to show.

Luckily, my site is specifically setting the other tags that Facebook requires. Oh, and if you read my post on My Essential Woodpress Plugins, Jetpack is doing that for me automatically. Boom! Love Jetpack.

What are the tags that you need to put on your page to tell Facebook to show the right content? Easy:

You see that I added the  og:image tag there to fix my image problem. Now if I reload the Facebook Debug Tool I get this:

Facebook Graph - Better

Much better, right? So make sure to use those tags so you’ll have control over what Facebook is going to show when someone shares your page(s). Also, a bit of advice, check this share link BEFORE you post/publish your page. We had a situation at work where we needed to change the description and even though we set the correct tags, Facebook cached the page and wouldn’t refresh to take the new changes. The correct changes showed in the debug tool, but when someone went to share the link, the old information was still there. Thanks Facebook… stay classy.

Bonus Handy Facebook Tool

Here’s another one you might need at some point. Facebook likes to tell you to use your Facebook id for a lot of things when you’re a developer. Only, it’s kind of difficult to find the place to actually get your Facebook id. Keep this link handy: Graph API Explorer. When you hit that URL it will tell you what your Facebook id is. That tool is used for a lot of other things like testing the graph api and other queries, but it’s a good place to quickly get that id.

Hopefully this will help you a bit in the vast jungle that is developing for Facebook (until they decide to change their platform again).

 

 

{ 0 comments }

Why You Should Dump Your Home Page Slider

by Todd on April 19, 2013

What do you want people to do when they get to your site?

  • Find what they’re looking for quickly?
  • Get an answer to their question?
  • Fill out a form to get more information from you (lead generation)?
  • Buy one of your products?

Or do you want them to passively sit there watching/staring at their screen while random images that you think are important to them scroll/slide/fade by them?

If you answer anything in the bullet points, great! If you’re in the other category then you need a reality check. Yeah, everyone uses “sliders” on their front page. Even the big guys like Yahoo! And ESPN. But just because they do it does it mean that you should too? Have you done research on your visitors to find out if they want to see scrolling photos go by?

Think about your browsing habits. You click around sites usually because you’re looking for something specific. You don’t have all the time in the world to watch scrolling photos go by in hopes you’ll see the one that you need. You’ll go to the nab bar and see if you can find what you need there.

Sliders are distracting monstrosities that don’t do anything to help the user get to where they want or get them to (more importantly) where you want them to go.

Stop following the heard and putting a slider on your site because “the transitions look cool.”

Determine what the goal of your site is and focus on that. If you’re trying to make sales, post your popular products on your home page. Or put your one sale/promotion front and center. If your site is geared toward lead generation, put a from front and center with some incentive on why the user should fill it out.

Bottom line is stop distracting your users with scrollers and sliders and just make it simple. Give them what they want and your site will convert better, get more links, and grow faster than the ones with those lame ass fading photos in and out on the home page.

{ 0 comments }

My Essential WordPress Plugins

April 15, 2013

It’s no secret that I use Wordpess for a lot of my work. It just makes sense for most of my projects. If it’s not a custom web app a client needs, I’ll start with WordPress. Any time I fie up a new WordPress site, I have a set of plugins that I’ll always use [...]

Read the full article →

Where I Keep My Web Development Tips & Tricks

April 13, 2013

Not that I ever envision this site to get even moderate traffic, but I do need to write here more often. Mostly because it’s a good place to keep bits of code, web tips & tricks, cool links, wordpress pro tips, etc. Have I been doing that? Of course not, which is why there hasn’t been a [...]

Read the full article →

Mobile Device Detection on a Web Site

March 26, 2012

Lately I’ve needed to find out how the person is viewing my pages. Now, in WordPress there’s a cool plugin called WPTouch that does all this for me. But when I’m not using WordPress then what do I do? Enter the script below. It detects about 90+% of the mobile devices out there and then [...]

Read the full article →

WordPress Tips For All at WordCamp San Diego 2012

March 25, 2012

Yesterday I spent the day talking and learning with the WordPress community at WordCamp San Diego 2012. In short, it was pretty awesome. A day packed full of what I like to call “The fast track to WordPress knowledge.” See, you can go out an buy a book on WordPress…but it’ll likely be too general [...]

Read the full article →

Why I Don’t Develop Using HTML5 and CSS3

March 23, 2011

Technology is awesome. It moves really fast and sometimes it can be quite difficult to keep up with the latest trends. Some ideas come and go so fast that you didn’t even know about it until it’s dead. HTML5 is not one of those things. HTML5, and CSS3, are here to stay and they’re awesome. [...]

Read the full article →

Usability. You need to care about it.

October 29, 2010

I was recently involved in a project consisting of a group of websites. There is one big player who’s in charge of several franchises of the same business. Each one of the businesses has its own manager in charge of it. The job was to create a site for each individual business that would display [...]

Read the full article →

Keep Your Passwords Safe

September 8, 2010

Today I came across a post about passwords. It had many tips for using a ‘system’ that helps you remember your various passwords while still keeping them secure. It also shows you some handy tools for keeping track of your passwords. It reminded me that it’s time that I look over my many passwords and [...]

Read the full article →

Don’t Touch That Dial

August 30, 2010

SDRadio.net is one of the most popular sites about radio on the web. SDRadio.net reports on radio (and tv) in the San Diego area and a bit beyond. “Todd understood my web site problem: A great blog in content that lacked appeal. He handcrafted a back engine and SDRadio is one of the premiere radio [...]

Read the full article →