O'Reilly logo

Facebook Cookbook by Jay Goldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying Your Application’s Name

Problem

I’d like a way to output my application’s name so that it will update automatically if I change it later. Also, I decided to put the word “message” in my application’s name and have now discovered that I can’t add it to things like my Mini-Feed and News stories, because Facebook won’t let me put that word in those places.

Solution and Discussion

Use the very simple fb:application-name tag, which will output your app’s current name as plain text. The simplest and only form is:

<fb:application-name />

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required