Friday, January 28, 2011

How to Display Facebook Fan Count in Text

Amplify’d from www.hongkiat.com

How to Display Facebook Fan Count in Text

Adding a Facebook Like Button on your website or blog is perhaps one of the easiest and most effective way to get more fans and earn more likes. If you have hundreds, thousand or perhaps tens of thousand of fans, it might be a good idea to publish a fan count. Fan count displays in numeric text total fans your Facebook page has, or rather, how many have liked your page.

preview How to Display Facebook Fan Count in Text

The technique is simple and very similar to displaying Google feedcount in text. The only difference is – we will be using Facebook’s API. In this post, we want to show you how it can be done so you can add them into your WordPress blog or PHP powered website. Load up your favorite code editor, here we go.

Step 1 – Get API Key, Application Secret & Page ID

These are the three mandatory information you’ll need to get things started.

API Key and Application Secret

  1. Sign in to your Facebook and click on Developer‘s link on the site bar. (If you don’t have a Developer’s account, you will have to sign up for one first)

    facebook developer link How to Display Facebook Fan Count in Text


  1. Click "Set Up New Application". Enter any application name, agree to the Facebook terms and click "Create Application". Note: We are not going to create a real application, but we’ll need to go through these processes to get a API Key and Application Secret.

    create application How to Display Facebook Fan Count in Text
  1. On the next page, you should be able to see your personal API Key and Application Secret. Copy it down somewhere or leave the browser window open.

    api key How to Display Facebook Fan Count in Text

Page ID

Page ID is the ID of your Facebook Fan Page. If you don’t have a Facebook Fan page, you’ll have to first create one. To get the ID of your Fan page, click edit page, and look for your ID (numbers) at the end of the URL – http://www.facebook.com/pages/edit/?id=XXXXXXXXX

Step 2 – Get Facebook.php

You’ll also need the Facebook API PHP SDK file called Facebook.php. Download it, and place it in the root of your folder. Learn more about Facebook PHP SDK.

php sdk How to Display Facebook Fan Count in Text

Step 3 – Display Fancount

To show off your fancount, place the following code in your php file,

  1. <?php  
  2. require_once('facebook.php');  
  3. $facebook = new Facebook(array(  
  4.     'appId'  => 'app_id',  
  5.     'secret' => 'secret_key',  
  6.     'cookie' => true,  
  7. ));  
  8. $result = $facebook->api(array(  
  9.     'method' => 'fql.query',  
  10.     'query' => 'select fan_count from page where page_id = page_id;'  
  11. ));  
  12. $fb_fans = $result[0]['fan_count'];  
  13. ?>  

And then you will want to edit the codes to change the following:

  • Line 4 – Replace app_id with your Facebook Application ID.
  • Line 5 – Replace secret_key with Secret.
  • Line 10 – Replace the last page_id with your Facebook Fanpage ID.

Please refer to Step 1 on how to get app_id, secret_key and page_id.

To display the fancount, insert this following code anywhere in the page:

  1. <?php echo $fb_fans; ?>  

That’s all. Style your fancount and make it attractive. See a working example on Psdeluxe‘s top right corner.

Author: Dainis

Dainis is blogger from Latvia. He is webmaster of Psdeluxe.com (Photoshop deluxe) - Design community where you find photoshop tutorials and useful resources for web and graphic designers. Follow Dainis on Twitter

Read more at www.hongkiat.com
 

20 Facebook Tips/Tricks You Might Not Know

Amplify’d from www.hongkiat.com

20 Facebook Tips/Tricks You Might Not Know

If you surf Facebook on daily basis or occasionally, chances are you’re already familiar with regular stuffs like add/delete friends, update statuses, walls and profile, add and explore pages & applications, etc, but there’s more..

This week we want to cover some interesting things you can do on (or with) Facebook; inclusive of tricks that are not documented or unknown to many, as well as tips to stay connected better with your friends. Without further ado, here’s 20 Facebook Tips/Tricks You Might Not Know. If you have interesting tips/tricks related to Facebook, please feel free to share in the comment box below.

If you are using Firefox, you can place the Facebook Chat at the sidebar.

Facebook Chat Firefox Sidebar 20 Facebook Tips/Tricks You Might Not Know

How to Download Facebook Photo Albums

FacePAD: Facebook Photo Album Downloader allows you to download your friends’ facebook albums, Events albums, and Group Albums, en masse, with the click of a button.

facepad 20 Facebook Tips/Tricks You Might Not Know

How to Share Flickr Photos to Facebook

Flickr2Facebook is an unofficial Flickr to Facebook uploader(bookmarklet) which allows you upload photos to Facebook from Flickr.

flickr2facebook 20 Facebook Tips/Tricks You Might Not Know

How to Update Facebook without Using Facebook

hellotxt and Ping.fm both introduced features that let Facebook administrators update Facebook Pages.

hellotxt 20 Facebook Tips/Tricks You Might Not Know

How to Schedule Facebook Messages

Sendible lets you schedule Facebook messages ahead of time so you can send messages to your friends, customers or colleagues in the future.

sendible 20 Facebook Tips/Tricks You Might Not Know

A short tutorial on Makeuseof to guide you how to hide Facebook status updates and keep that fact confined to your closer friends.

hide status 20 Facebook Tips/Tricks You Might Not Know

Click on Friends tab. Proceed to More tab. From "Choose an option" dropdown, choose any of the dashes "—" . Your Facebook friends collage is right on your computer screen.

photo collage 20 Facebook Tips/Tricks You Might Not Know

How to Know When Facebook Friends Secretly Delete or Block You

This service has been discontinued. X-Friends is a unique tool for tracking friends that disappear from Facebook.

X friends 20 Facebook Tips/Tricks You Might Not Know

How to Display Selected Pictures Only on your Facebook Profile Page

A little-known feature in Facebook that lets you decide who shows up in that Friends box. Click that "edit" pencil in your Friends box and type the names of your best friends in the box that says "Always show these friends"

friend photos 20 Facebook Tips/Tricks You Might Not Know

How to Remove Facebook Advertisements

This Greasemonkey script – Facebook: Cleaner removes many of the annoying ads and updates that unavoidably appear on your Facebook pages.

ads 20 Facebook Tips/Tricks You Might Not Know

How to Syncs Photos of Facebook Friends with Contacts in Microsoft Outlook

OutSync is a free Windows application that syncs photos of your Facebook friends with matching contacts in Microsoft Outlook. It allows you to select which contacts are updated. So you can update all contacts at once or just a few at a time.

outsync 20 Facebook Tips/Tricks You Might Not Know

The following method make use of Facebook status feed and WordPress RSS widget to display Facebook Statuses on WordPress blog.. It will also work for self-host WordPress blogs.

statuses 20 Facebook Tips/Tricks You Might Not Know

How to Post Your Blog Posts to Your Facebook Wall Automatically

Wordbook allows you to cross-post your blog posts to your Facebook Wall. Your Facebook “Boxes” tab will show your most recent blog posts.

wordbook 20 Facebook Tips/Tricks You Might Not Know

How to Access Facebook Chat on Desktop

Gabtastik and digsby let you keep Facebook chat sessions open on your Windows desktop outside of your regular web browser, using minimal screen real estate and system memory.

gabtastik 20 Facebook Tips/Tricks You Might Not Know

How to Create Quiz on Facebook Easily

LOLapps provides quiz creator that can be employed to conjure up these popular personality quizzes that are so widespread in Facebook.

lolapps 20 Facebook Tips/Tricks You Might Not Know

Facebook has integrated friends list with Chat and you can also choose which of these list members get to see you online.

hide 20 Facebook Tips/Tricks You Might Not Know

How to Get Facebook Updates on Email

NutshellMail consolidates your Facebook accounts through the inbox you use the most.

nutshellmail 20 Facebook Tips/Tricks You Might Not Know

How to Update Facebook Status from Firefox

FireStatus is a status update utility for multiple social networks, including FaceBook.

firestatus 20 Facebook Tips/Tricks You Might Not Know

How to Get Facebook on Your Desktop

Seesmic Desktop, Facebooker, Xobni, Facebook Sidebar Gadget, Scrapboy and Facebook AIR application are desktop applications that allows you interact with your stream just as you would on Facebook, but without the browser.

desktop apps 20 Facebook Tips/Tricks You Might Not Know

A simple guide to terminate, delete or cancel Facebook account, together with the Facebook profile easily.

terminate 20 Facebook Tips/Tricks You Might Not Know
Tags:
Read more at www.hongkiat.com
 

21 Creative Ways To Increase Your Facebook Fanbase

21 Creative Ways To Increase Your Facebook Fanbase

social media how toIf you build a Facebook Page, will fans come? This is the great hope for many businesses. However, fans do not magically appear from the Facebook mist.

People must be lured to your fan page. And there are some good and bad ways to go about doing this. In this article, I’ll share a big myth and 21 ways to drive more fans to your Facebook fan page. (Though Facebook recently changed the “Become A Fan” button to the new, omnipresent “Like” button – and a fan page is called a “Business Page” or “Facebook Page” – we can still call them fan pages and people who join are fans!)

The Big Myth

There’s a great myth that once you create a Facebook fan page for your business, the first thing you should do to get fans is invite ALL your friends from your personal profile using the “Suggest to Friends” feature.

Unfortunately, this strategy may not be that effective and can, in fact, often backfire. I have seen many industry gurus complain that when they decline a fan page request, it’s frustrating to continue to be asked again and again.

There are several reasons not to use the Suggest to Friends feature:

  • Facebook users can only like up to 500 pages and may wish to be selective. (Though I have seen it’s possible to go over this limit).
  • Fan page suggestions may often build up, unnoticed. (At last count, I have 593 overlooked fan page suggestions and am already a fan of 500!)
  • To aggressively pursue all your friends to join your fan page – for no apparent incentive – is counterintuitive to the nature of social media.

So, the good news is there are many ways to promote your fan page and proactively increase your fan base without bugging all your current Facebook friends, and also by thinking wider than just Facebook.

Here are 21 ways to get more fans for your Facebook fan page:

#1: Embed Widgets on Your Website

Select from a number of the new Facebook Social Plugins and place them on your website and blog. The Fan Box widget is now the Like Box and it works well to display your current fan page stream and a selection of fans - see screenshot below with Whole Foods Market Facebook Like Box. I would recommend adding a title above the box encouraging visitors to your site/blog to click the “Like” button (which makes them a Facebook fan).

You might also consider the Live Stream widget for more advanced uses, particularly on an FBML custom tab of your fan page itself. The Live Stream widget allows Facebook users to add their comments to a live event, for example, and that activity pushes out into their stream.

#2: Invite Your Email and Ezine Subscribers

Assuming you have an opt-in email list, definitely send out an invitation to your subscribers via email (several times, over time) letting them know about your fan page and encouraging them to join. Ideally, provide them with a description of the page and an incentive to join.

Be sure to have the Facebook logo/badge appear in your HTML newsletters. Instead of the usual “Join our Fan Page,” say something creative like “Write on our Facebook wall,” or “Join our Facebook community,” or “Come add your photo to our Facebook group” (where “group” is actually your fan page). Users have to be a fan in order to interact with your fan page in this way.

#3: Add to Your Email Signature Block

Instead of promoting your Facebook personal profile (if you do), include a link to your fan page in every email you send out. If you use web-based email, check out the Wisestamp signature addon.

#4: Make a Compelling Welcome Video

Create an attractive landing tab (canvas page) with a video that explains exactly a) what your fan page is about, b) who it’s for and c) why they should become members.  The result: you’ll increase your conversion rate from visitors to fans. One of my favorite fan page welcome videos is by Steve Spangler, the Science Guy! After watching his video, you can’t help but want to join!

(By the way, with the new Facebook changes, if your custom welcome tab and video talk about clicking the “Become A Fan” button, you may want to change the wording to “click the Like button” now).

#5: Use Facebook Apps

I recently tested a new live video-streaming app called Vpype. The app adds a tab to your fan page called “Shows” and when you broadcast as your fan page, everyone can view by default. (You can also broadcast as your personal profile and selectively invite friends/friend lists). I wrote up a review of this app here. By announcing via Twitter, your personal Facebook profile, your blog and your email list, you can broadcast regular live Internet TV shows from your fan page and create much buzz.

Another example of app integration is Target’s “Bullseye Gives” campaign. Target had their fans vote on which of ten charities they most wanted to see the company donate to. By voting, a post goes out onto your Facebook wall and into the News Feeds of all your friends, thus providing Target with valuable exposure. (For custom apps, see companies like Buddy Media, FanAppz, Wildfire Apps, Involver, Virtue, Context Optional.) [UPDATE: Thank you to Context Optional, the creators of Target’s “Bullseye Gives” campaign!]

#6: Integrate the Facebook Comment Feature

My favorite example of this is the t-shirt company Threadless. On their landing tab (canvas page), you can view and purchase t-shirts as well as Like and comment on any item and choose to have that comment posted to your Facebook profile, as shown in this screenshot:

Threadless actually has their landing tab set up so visitors don’t have to become a fan to purchase/comment/interact. Yet they have organically built well over 100,000 fans.

As users comment on items, that activity is pushed out into their stream (profile wall and their friends’ News Feeds), which creates valuable viral visibility for your fan page.

For further information on adding the comment box to your FBML page/app, see these pages.

#7: Get Fans to Tag Photos

If you host live events, be sure to take plenty of photos (or even hire a professional photographer), load the photos to your fan page and encourage fans to tag themselves. This, again, pushes out into their wall and friends’ News Feeds, providing valuable (free!) exposure. And, a picture says a thousand words – we notice the thumbnails in our feed more than text. (Props to Nick O’Neil for this tip.)

#8: Load Videos and Embed on Your Site

Facebook’s Video feature is extremely powerful. You can load video content to your Facebook fan page, then take the source code and embed on your blog/website. There is a “Become a Fan” button right in the video itself. For an excellent tutorial, see Nick O’Neil’s post: How To Get Thousands of Facebook Fans With a Single Video.

[UPDATE: Since Facebook changed the Become a Fan button to the Like button, embedded Facebook videos now display a white watermark hotlink of the Facebook name in the upper left corner of the video player - see first screenshot below. This is a clickable link that goes to the original video page on your fan page. If the visitor to your site clicks through to Facebook from your video, and they are logged into Facebook at the time, they will see a Like button at the top left corner of the video player - see second screenshot below.]

(Screenshot shows example of an embedded Facebook video on an external site)

(Screenshot shows the same video on the original page of the fan page with the Like button)

#9: Place Facebook Ads

Even with a nominal weekly/monthly budget, you should be able to boost your fan count using Facebook’s own social ad feature. It’s the most targeted traffic your money can buy. To buy an ad, scroll to the foot of any page inside Facebook and click the link at the very bottom that says “Advertising.” From there, you can walk through the wizard and get an excellent sense of how many Facebook users are in your exact target market.

Then, when you advertise your fan page, Facebook users can become a fan (click the Like button) right from the ad as shown in the screenshot below. Additionally, Facebook displays several of your friends who have already liked you, thus creating social proof.

My book with Chris Treadaway, Facebook Marketing: An Hour a Day (Sybex) contains comprehensive instructions on maximizing your marketing through Facebook social ads.

#10: Run a Contest

This is somewhat of a gray area because Facebook changed their Promotional Guidelines last year. Essentially, you need prior written permission from Facebook and need to be spending a significant amount on ads per month. However, you CAN require Facebook users to become a fan of your fan page in order to enter a contest, sweepstakes, drawing or competition. See these two posts for further explanation. PLUS, good news: you CAN run contests and sweepstakes with the use of the apps created by Wildfire App.

#11: Link to Twitter

Link your Twitter account to your Facebook fan page and automatically post your Facebook content to Twitter. You can edit what gets posted, choosing from Status Updates, Photos, Links, Notes and Events.

You have 420 characters on the Facebook publisher and 140 on Twitter. In the tweet that goes out, Facebook truncates your post past a certain character count and inserts a bit.ly link back to your fan page. To track click-through stats on that link, just paste the bit.ly link that Facebook created for you in your browser’s address bar and add a “+” sign to the end. This works for any bit.ly link!

I also recommend you promote your Facebook fan page on your Twitter background and possibly in your Twitter bio/URL field too.

#12: Get Fans to Join Via SMS

Your fans can join your fan page via text message! You’ll need to get your first 25 fans and secure your username. Then, to join your fan page, Facebook users just send a text message to 32665 (FBOOK) with the words “fan yourusername” OR “like yourusername” (without the quotes).

This feature is ideal when you’re addressing a live audience, say. Have everyone pull out their mobile phones and join your fan page on the spot! This would also work well for radio or TV. (Note that this only works for Facebook users with a verified mobile device in his or her account.)

#13: Use Print Media

Look at every piece of print media you use in your business. Your Facebook fan page (as well as Twitter and any other social sites you’re active on), should be clearly displayed. Put your Facebook fan page link (and the logo) on your business cards, letterhead, brochure, print newsletter, magazine ads, products, etc.

#14: Display at Your Store/Business

If your business is run from physical premises, put a placard on the front desk letting your customers know you’re on Facebook. Ideally, you have a simple, memorable username. Incentivize customers to join right away via their mobile device and show you/your staff the confirmation for some kind of instant reward!

You might give out physical coupons promoting your fan page. For restaurants, put the Facebook logo, your username and a call to action on your menus.

I was at a hotel in San Francisco last fall and they had a placard in the elevators promoting their presence on Facebook and Twitter. The sign was very noticeable because of those ubiquitous Facebook and Twitter logos/colors!

#15. Add a Link on Your Personal Profile

If you’d like to promote your fan page to your Facebook friends, just under your photo on your personal profile there is a section to write something about yourself. I call this the “mini bio” field and strongly suggest adding a link to your fan page like so:

Be sure to format the URL with http:// otherwise it will not be clickable with just the www’s. You have a limited amount of characters, so keep it succinct and leave out the www’s. You can put in hard line breaks though to make the content easier to read.

#16: Add a Badge/Button to Your Profile

Using an app like Profile HTML or Extended Info, you can create your own custom HTML, including a Facebook badge and/or graphic embedded, as shown in the screenshot below:

#17: Use the Share Button

The Share button is all over Facebook and is a very handy feature. It only works for sharing on your personal profile. So periodically go to your fan page, scroll toward the bottom left column and click the “Share+” button. Add a compelling comment along the lines of exciting news, recent changes, special incentives, etc., happening on your fan page and invite your friends to join if they haven’t already. I find the Share button far more effective than the Suggest to Friends approach. (And, if you’d like to Share content from the web on to your fan page vs. profile, I highly recommend using the Hootlet bookmarklet tool at HootSuite.com).

#18: Use the @ Tag

As long as you’re a fan of your own fan page, you can “@ tag” it on your own personal profile wall. From time to time, you can let your friends know about something happening on your fan page by writing a personal status update that includes tagging your fan page with an @ tag. Simply start typing the “@” symbol and the first few letters of your fan page name (this works whether you have your username registered or not), and it will appear from a drop-down menu to select. This then makes it a nice, subtle hyperlink that your friends can choose to click on.

#19: Autograph Posts on Other Walls

A subtle way to gain more visibility for your fan page is to add an @ tag for your fan page when writing on your friends’ walls as a way to sign off.

I would use this one sparingly and, again, monitor the response from your friends. I have never been a fan of adding a signature block on Facebook wall posts because our name and profile picture thumbnail are always hyperlinked right back to our profile anyway. But the simple @ tag could be effective.

#20: Autograph Other Fan Pages

As with adding your fan page @ tag to posts you make on your friends’ walls, you could equally use the same technique when posting on other fan pages. This needs to be used with discretion and I would advise against doing this on any potentially competing fan page!

#21: Maybe Use “Suggest To Friends”

I won’t rule this one out completely as it does depend on how many friends you have, your relationship with your friends, how often you suggest fan pages/friends to your friends, etc (see ‘The Big Myth’ above). But I do recommend monitoring the response to this technique – perhaps simply by asking for feedback in your status update.

So, these are just 21 ways to create strategic visibility and promote your Facebook fan page.

Let’s hear from you.  Which ones have you implemented with success? Plus, do feel free to add any of your own creative promotional ideas in the comments box below!



About the Author, Mari Smith


Mari Smith is a widely-recognized social media speaker and trainer and is coauthor of “Facebook Marketing: An Hour A Day.” Fast Company calls Mari “the Pied Piper of the Online World.” Follow Mari on Twitter: @marismith. Other posts by Mari Smith »


Read more at www.socialmediaexaminer.com