From 933419e8ae928ee0112c89707a0f2b5d4397ae68 Mon Sep 17 00:00:00 2001 From: Gerald Bauer Date: Tue, 19 Jul 2016 15:32:44 +0200 Subject: [PATCH] Update and rename facebooker.textile to facebooker.md --- facebooker.textile => facebooker.md | 188 ++++++++++++++-------------- 1 file changed, 96 insertions(+), 92 deletions(-) rename facebooker.textile => facebooker.md (58%) diff --git a/facebooker.textile b/facebooker.md similarity index 58% rename from facebooker.textile rename to facebooker.md index 6311cbb..f02e388 100644 --- a/facebooker.textile +++ b/facebooker.md @@ -1,22 +1,22 @@ title: Facebook App Development w/ Ruby on Rails gradient-colors: #0e1f5b #3b5998 -h1. Q: How can I create a Friends Badge using the Facebook API? +# Q: How can I create a Friends Badge using the Facebook API? -!rfacebook-friendsbadge.png! +![](i/rfacebook-friendsbadge.png) -* Step 1: Get your friends' ids (calling the @friends.get@ Facebook API using rfacebook). -* Step 2: Get all your friends' square profile pic links (calling @users.getInfo@ asking for the @pic_square@ field). +* Step 1: Get your friends' ids (calling the `friends.get` Facebook API using rfacebook). +* Step 2: Get all your friends' square profile pic links (calling `users.getInfo` asking for the `pic_square` field). -h3. "Facebook API Test Console":http://developer.facebook.com/tools.php?api - Demo +### [Facebook API Test Console](http://developer.facebook.com/tools.php?api) - Demo -h1. Q: How can I create a Friends Badge using the Facebook API? Continued +# Q: How can I create a Friends Badge using the Facebook API? Continued -* Step 1: Get your friends' ids (calling the @friends.get@ Facebook API using rfacebook). -* Step 2: Get all your friends' square profile pic links (calling @users.getInfo@ asking for the @pic_square@ field). +* Step 1: Get your friends' ids (calling the `friends.get` Facebook API using rfacebook). +* Step 2: Get all your friends' square profile pic links (calling `users.getInfo` asking for the `pic_square` field). -{{{ +``` def badge # get your friends' ids @@ -34,13 +34,13 @@ def badge end end -}}} +``` -h1. Q: How can I create a Friends Badge using the Facebook API? Continued +# Q: How can I create a Friends Badge using the Facebook API? Continued And add a matching view (web page template): -{{{ +```

Open Web Friends Badge Sample