
How can I create an "Add Me" Facebook button on my site?I know you've written about how to create an "add me" button for MySpace, but, um, I'm not on MySpace, I'm on Facebook. is there some way to build or hack together an "add me" button for Facebook to add to my site instead? Thanks. That's an interesting question, and generally my answer would be "no" because Facebook has put a lot of effort into creating its own universe, generally one that's not easily reached from the rest of the Internet at large. However, a colleague (thanks Trent Urbanski) gave me a little tip on how to reverse engineer just this sort of thing so let me share it with you so you too can create a nice "let's connect on Facebook" button for your blog or Web site... The first thing you need to do is figure out your numeric account ID on Facebook. The fastest way I know to get this information is to click on "Profile" on the top menu of your Facebook home page: Now scroll down a bit and you'll see your "Friends" box: ![]() Turns out that the link that shows you how many friends you have includes your Facebook account ID number, as you can see here: ![]() You can simply copy that link with a Cmd-Click (or Right-Click) and paste it into an edit buffer to extract the numeric value. Mine account ID is 500501552 as you can see. Now here's the hacking part: the link you want to create looks like this: http://www.facebook.com/addfriend.php?id=yourID
For me, for example, it'd be: http://www.facebook.com/addfriend.php?id=500501552
To make it into a button, simply wrap it in some rudimentary HTML: <form action="http://www.facebook.com/addfriend.php"><input type="hidden" name="id" value="500501552" /><input type="submit" value="Connect with me on Facebook!" /></form>
That code looks like this in action: Tweak and modify to your hearts content, and enjoy! I'd also like to let you know that I have quite a bit of Facebook help here on the site and that I also have an Ask Dave Taylor Facebook Fan Page that I invite you to join.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
MySpace, Facebook, Twitter and Social Network Help
(Article 9039)
Tagged: facebook, facebook add me, facebook fan page, facebook friend Previous: Should each of my Web sites have its own IP address? Next: Help! I accidentally bought an expensive Apple iPhone app! Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. Thanks for that wonderful solution. Posted by: yomibalogun at August 17, 2009 12:43 PMintresting Posted by: rinul at February 26, 2010 10:06 PMthanks for sharing this information with us Posted by: sima at March 1, 2010 10:11 AMI have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 2300+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Industry News and Trade Shows Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Book Links
|