fb_graph 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/fb_graph.gemspec +53 -2
- data/lib/fb_graph/album.rb +26 -0
- data/lib/fb_graph/comment.rb +18 -0
- data/lib/fb_graph/connections/activities.rb +12 -0
- data/lib/fb_graph/connections/albums.rb +12 -0
- data/lib/fb_graph/connections/attending.rb +16 -0
- data/lib/fb_graph/connections/books.rb +12 -0
- data/lib/fb_graph/connections/comments.rb +12 -0
- data/lib/fb_graph/connections/declined.rb +16 -0
- data/lib/fb_graph/connections/events.rb +12 -0
- data/lib/fb_graph/connections/feed.rb +4 -1
- data/lib/fb_graph/connections/friends.rb +12 -0
- data/lib/fb_graph/connections/groups.rb +12 -0
- data/lib/fb_graph/connections/home.rb +4 -1
- data/lib/fb_graph/connections/interests.rb +12 -0
- data/lib/fb_graph/connections/invited.rb +16 -0
- data/lib/fb_graph/connections/links.rb +12 -0
- data/lib/fb_graph/connections/maybe.rb +16 -0
- data/lib/fb_graph/connections/members.rb +16 -0
- data/lib/fb_graph/connections/movies.rb +12 -0
- data/lib/fb_graph/connections/music.rb +12 -0
- data/lib/fb_graph/connections/noreply.rb +16 -0
- data/lib/fb_graph/connections/notes.rb +12 -0
- data/lib/fb_graph/connections/photos.rb +12 -0
- data/lib/fb_graph/connections/posts.rb +1 -4
- data/lib/fb_graph/connections/tagged.rb +4 -1
- data/lib/fb_graph/connections/television.rb +12 -0
- data/lib/fb_graph/connections/videos.rb +12 -0
- data/lib/fb_graph/event.rb +28 -0
- data/lib/fb_graph/group.rb +23 -0
- data/lib/fb_graph/link.rb +21 -0
- data/lib/fb_graph/note.rb +22 -0
- data/lib/fb_graph/page.rb +10 -0
- data/lib/fb_graph/photo.rb +42 -0
- data/lib/fb_graph/post.rb +7 -5
- data/lib/fb_graph/status.rb +5 -3
- data/lib/fb_graph/user.rb +21 -1
- data/lib/fb_graph/video.rb +23 -0
- data/lib/fb_graph.rb +11 -3
- data/spec/fake_json/users/activities/arjun_private.json +24 -0
- data/spec/fake_json/users/activities/arjun_public.json +6 -0
- data/spec/fake_json/users/feed/arjun_private.json +520 -0
- data/spec/fake_json/users/feed/arjun_public.json +520 -0
- data/spec/fake_json/users/friends/arjun_private.json +6 -0
- data/spec/fake_json/users/friends/arjun_public.json +6 -0
- data/spec/fake_json/users/friends/me_private.json +524 -0
- data/spec/fake_json/users/friends/me_public.json +6 -0
- data/spec/fake_json/users/posts/arjun_private.json +386 -0
- data/spec/fake_json/users/posts/arjun_public.json +386 -0
- data/spec/fake_json/users/tagged/arjun_private.json +308 -0
- data/spec/fake_json/users/tagged/arjun_public.json +308 -0
- data/spec/fb_graph/connections/activities_spec.rb +28 -0
- data/spec/fb_graph/connections/feed_spec.rb +34 -0
- data/spec/fb_graph/connections/friends_spec.rb +42 -0
- data/spec/fb_graph/connections/home_spec.rb +14 -2
- data/spec/fb_graph/connections/likes_spec.rb +0 -5
- data/spec/fb_graph/connections/posts_spec.rb +34 -0
- data/spec/fb_graph/connections/statuses_spec.rb +0 -19
- data/spec/fb_graph/connections/tagged_spec.rb +41 -0
- metadata +53 -2
| @@ -0,0 +1,308 @@ | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
               "data": [
         | 
| 3 | 
            +
                  {
         | 
| 4 | 
            +
                     "id": "7901103_117809521578252",
         | 
| 5 | 
            +
                     "from": {
         | 
| 6 | 
            +
                        "name": "Elli Mooney",
         | 
| 7 | 
            +
                        "id": "1404401889"
         | 
| 8 | 
            +
                     },
         | 
| 9 | 
            +
                     "to": {
         | 
| 10 | 
            +
                        "data": [
         | 
| 11 | 
            +
                           {
         | 
| 12 | 
            +
                              "name": "Arjun Banker",
         | 
| 13 | 
            +
                              "id": "7901103"
         | 
| 14 | 
            +
                           }
         | 
| 15 | 
            +
                        ]
         | 
| 16 | 
            +
                     },
         | 
| 17 | 
            +
                     "message": "...uh oh, here comes a privacy issue....",
         | 
| 18 | 
            +
                     "picture": "http://external.ak.fbcdn.net/safe_image.php?d=c659c86d415c60c37b2871bfd67f2a97&w=130&h=130&url=http%3A%2F%2Fcdn.venturebeat.com%2Fwp-content%2Fuploads%2F2010%2F04%2Fusethisone.jpg",
         | 
| 19 | 
            +
                     "link": "http://venturebeat.com/2010/04/23/blippy-credit-card-citibank/",
         | 
| 20 | 
            +
                     "name": "Blippy users\u2019 credit card numbers found on Google | VentureBeat",
         | 
| 21 | 
            +
                     "caption": "venturebeat.com",
         | 
| 22 | 
            +
                     "description": "[Update: Blippy cofounder Philip Kaplan emailed a response. CNET News is reporting that the cards in question were issued by ...",
         | 
| 23 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif",
         | 
| 24 | 
            +
                     "privacy": {
         | 
| 25 | 
            +
                        "value": "EVERYONE"
         | 
| 26 | 
            +
                     },
         | 
| 27 | 
            +
                     "created_time": "2010-04-24T08:07:59+0000",
         | 
| 28 | 
            +
                     "updated_time": "2010-04-24T08:07:59+0000",
         | 
| 29 | 
            +
                     "likes": 1
         | 
| 30 | 
            +
                  },
         | 
| 31 | 
            +
                  {
         | 
| 32 | 
            +
                     "id": "7901103_10100207879175340",
         | 
| 33 | 
            +
                     "from": {
         | 
| 34 | 
            +
                        "name": "Andrew 'Boz' Bosworth",
         | 
| 35 | 
            +
                        "id": "1681"
         | 
| 36 | 
            +
                     },
         | 
| 37 | 
            +
                     "to": {
         | 
| 38 | 
            +
                        "data": [
         | 
| 39 | 
            +
                           {
         | 
| 40 | 
            +
                              "name": "Arjun Banker",
         | 
| 41 | 
            +
                              "id": "7901103"
         | 
| 42 | 
            +
                           }
         | 
| 43 | 
            +
                        ]
         | 
| 44 | 
            +
                     },
         | 
| 45 | 
            +
                     "picture": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs461.snc3/25356_721202242761_1681_39052168_1554343_s.jpg",
         | 
| 46 | 
            +
                     "link": "http://www.facebook.com/photo.php?pid=39052168&id=1681",
         | 
| 47 | 
            +
                     "name": "f8 2010",
         | 
| 48 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif",
         | 
| 49 | 
            +
                     "privacy": {
         | 
| 50 | 
            +
                        "value": "EVERYONE"
         | 
| 51 | 
            +
                     },
         | 
| 52 | 
            +
                     "created_time": "2010-04-22T08:24:26+0000",
         | 
| 53 | 
            +
                     "updated_time": "2010-04-22T08:24:26+0000"
         | 
| 54 | 
            +
                  },
         | 
| 55 | 
            +
                  {
         | 
| 56 | 
            +
                     "id": "7901103_10100207803551890",
         | 
| 57 | 
            +
                     "from": {
         | 
| 58 | 
            +
                        "name": "Steve Blackmon",
         | 
| 59 | 
            +
                        "id": "687664828"
         | 
| 60 | 
            +
                     },
         | 
| 61 | 
            +
                     "to": {
         | 
| 62 | 
            +
                        "data": [
         | 
| 63 | 
            +
                           {
         | 
| 64 | 
            +
                              "name": "Arjun Banker",
         | 
| 65 | 
            +
                              "id": "7901103"
         | 
| 66 | 
            +
                           }
         | 
| 67 | 
            +
                        ]
         | 
| 68 | 
            +
                     },
         | 
| 69 | 
            +
                     "message": "Facebook opengraph and new API terms of service are huge improvement, nice work.   Participate in defining and adopt a w3c RDF standard for these concepts and facebook will have a prominent place in #linkeddata history.",
         | 
| 70 | 
            +
                     "icon": "http://graph.facebook.com/images/icons/mobile_app.gif",
         | 
| 71 | 
            +
                     "attribution": "Facebook for iPhone",
         | 
| 72 | 
            +
                     "privacy": {
         | 
| 73 | 
            +
                        "value": "EVERYONE"
         | 
| 74 | 
            +
                     },
         | 
| 75 | 
            +
                     "created_time": "2010-04-22T04:52:11+0000",
         | 
| 76 | 
            +
                     "updated_time": "2010-04-22T04:52:11+0000"
         | 
| 77 | 
            +
                  },
         | 
| 78 | 
            +
                  {
         | 
| 79 | 
            +
                     "id": "7901103_10100207635533600",
         | 
| 80 | 
            +
                     "from": {
         | 
| 81 | 
            +
                        "name": "Aditya Bansod",
         | 
| 82 | 
            +
                        "id": "3325854"
         | 
| 83 | 
            +
                     },
         | 
| 84 | 
            +
                     "to": {
         | 
| 85 | 
            +
                        "data": [
         | 
| 86 | 
            +
                           {
         | 
| 87 | 
            +
                              "name": "Arjun Banker",
         | 
| 88 | 
            +
                              "id": "7901103"
         | 
| 89 | 
            +
                           }
         | 
| 90 | 
            +
                        ]
         | 
| 91 | 
            +
                     },
         | 
| 92 | 
            +
                     "message": "dude, you're internet famous!",
         | 
| 93 | 
            +
                     "privacy": {
         | 
| 94 | 
            +
                        "value": "EVERYONE"
         | 
| 95 | 
            +
                     },
         | 
| 96 | 
            +
                     "created_time": "2010-04-22T01:34:11+0000",
         | 
| 97 | 
            +
                     "updated_time": "2010-04-22T01:34:11+0000"
         | 
| 98 | 
            +
                  },
         | 
| 99 | 
            +
                  {
         | 
| 100 | 
            +
                     "id": "7901103_10100207523223670",
         | 
| 101 | 
            +
                     "from": {
         | 
| 102 | 
            +
                        "name": "Waleed Abdulla",
         | 
| 103 | 
            +
                        "id": "500071393"
         | 
| 104 | 
            +
                     },
         | 
| 105 | 
            +
                     "to": {
         | 
| 106 | 
            +
                        "data": [
         | 
| 107 | 
            +
                           {
         | 
| 108 | 
            +
                              "name": "Arjun Banker",
         | 
| 109 | 
            +
                              "id": "7901103"
         | 
| 110 | 
            +
                           }
         | 
| 111 | 
            +
                        ]
         | 
| 112 | 
            +
                     },
         | 
| 113 | 
            +
                     "message": "Great job on stage today. I'm so excited right now :)",
         | 
| 114 | 
            +
                     "privacy": {
         | 
| 115 | 
            +
                        "value": "EVERYONE"
         | 
| 116 | 
            +
                     },
         | 
| 117 | 
            +
                     "created_time": "2010-04-21T22:24:54+0000",
         | 
| 118 | 
            +
                     "updated_time": "2010-04-21T22:24:54+0000"
         | 
| 119 | 
            +
                  },
         | 
| 120 | 
            +
                  {
         | 
| 121 | 
            +
                     "id": "7901103_10100207519022090",
         | 
| 122 | 
            +
                     "from": {
         | 
| 123 | 
            +
                        "name": "Atish Mehta",
         | 
| 124 | 
            +
                        "id": "3404106"
         | 
| 125 | 
            +
                     },
         | 
| 126 | 
            +
                     "to": {
         | 
| 127 | 
            +
                        "data": [
         | 
| 128 | 
            +
                           {
         | 
| 129 | 
            +
                              "name": "Arjun Banker",
         | 
| 130 | 
            +
                              "id": "7901103"
         | 
| 131 | 
            +
                           }
         | 
| 132 | 
            +
                        ]
         | 
| 133 | 
            +
                     },
         | 
| 134 | 
            +
                     "message": "The kids are happy\n\nhttp://news.ycombinator.com/item?id=1282860",
         | 
| 135 | 
            +
                     "privacy": {
         | 
| 136 | 
            +
                        "value": "EVERYONE"
         | 
| 137 | 
            +
                     },
         | 
| 138 | 
            +
                     "created_time": "2010-04-21T22:19:08+0000",
         | 
| 139 | 
            +
                     "updated_time": "2010-04-21T22:19:08+0000"
         | 
| 140 | 
            +
                  },
         | 
| 141 | 
            +
                  {
         | 
| 142 | 
            +
                     "id": "7901103_10100207509825520",
         | 
| 143 | 
            +
                     "from": {
         | 
| 144 | 
            +
                        "name": "John Allen",
         | 
| 145 | 
            +
                        "id": "400586"
         | 
| 146 | 
            +
                     },
         | 
| 147 | 
            +
                     "to": {
         | 
| 148 | 
            +
                        "data": [
         | 
| 149 | 
            +
                           {
         | 
| 150 | 
            +
                              "name": "Arjun Banker",
         | 
| 151 | 
            +
                              "id": "7901103"
         | 
| 152 | 
            +
                           }
         | 
| 153 | 
            +
                        ]
         | 
| 154 | 
            +
                     },
         | 
| 155 | 
            +
                     "message": "I can see you...",
         | 
| 156 | 
            +
                     "privacy": {
         | 
| 157 | 
            +
                        "value": "EVERYONE"
         | 
| 158 | 
            +
                     },
         | 
| 159 | 
            +
                     "created_time": "2010-04-21T22:03:50+0000",
         | 
| 160 | 
            +
                     "updated_time": "2010-04-21T22:03:50+0000"
         | 
| 161 | 
            +
                  },
         | 
| 162 | 
            +
                  {
         | 
| 163 | 
            +
                     "id": "7901103_10100207507125930",
         | 
| 164 | 
            +
                     "from": {
         | 
| 165 | 
            +
                        "name": "Joseph Sofaer",
         | 
| 166 | 
            +
                        "id": "820004"
         | 
| 167 | 
            +
                     },
         | 
| 168 | 
            +
                     "to": {
         | 
| 169 | 
            +
                        "data": [
         | 
| 170 | 
            +
                           {
         | 
| 171 | 
            +
                              "name": "Arjun Banker",
         | 
| 172 | 
            +
                              "id": "7901103"
         | 
| 173 | 
            +
                           }
         | 
| 174 | 
            +
                        ]
         | 
| 175 | 
            +
                     },
         | 
| 176 | 
            +
                     "message": "The new Graph API looks great!",
         | 
| 177 | 
            +
                     "privacy": {
         | 
| 178 | 
            +
                        "value": "EVERYONE"
         | 
| 179 | 
            +
                     },
         | 
| 180 | 
            +
                     "created_time": "2010-04-21T21:59:18+0000",
         | 
| 181 | 
            +
                     "updated_time": "2010-04-21T21:59:18+0000"
         | 
| 182 | 
            +
                  },
         | 
| 183 | 
            +
                  {
         | 
| 184 | 
            +
                     "id": "7901103_10100207467265810",
         | 
| 185 | 
            +
                     "from": {
         | 
| 186 | 
            +
                        "name": "Kovas Boguta",
         | 
| 187 | 
            +
                        "id": "2903108"
         | 
| 188 | 
            +
                     },
         | 
| 189 | 
            +
                     "to": {
         | 
| 190 | 
            +
                        "data": [
         | 
| 191 | 
            +
                           {
         | 
| 192 | 
            +
                              "name": "Arjun Banker",
         | 
| 193 | 
            +
                              "id": "7901103"
         | 
| 194 | 
            +
                           }
         | 
| 195 | 
            +
                        ]
         | 
| 196 | 
            +
                     },
         | 
| 197 | 
            +
                     "message": "Nice work, this is awesome!!",
         | 
| 198 | 
            +
                     "privacy": {
         | 
| 199 | 
            +
                        "value": "EVERYONE"
         | 
| 200 | 
            +
                     },
         | 
| 201 | 
            +
                     "created_time": "2010-04-21T20:49:18+0000",
         | 
| 202 | 
            +
                     "updated_time": "2010-04-21T20:49:18+0000"
         | 
| 203 | 
            +
                  },
         | 
| 204 | 
            +
                  {
         | 
| 205 | 
            +
                     "id": "7901103_672772511333",
         | 
| 206 | 
            +
                     "from": {
         | 
| 207 | 
            +
                        "name": "Mark Slee",
         | 
| 208 | 
            +
                        "id": "204686"
         | 
| 209 | 
            +
                     },
         | 
| 210 | 
            +
                     "to": {
         | 
| 211 | 
            +
                        "data": [
         | 
| 212 | 
            +
                           {
         | 
| 213 | 
            +
                              "name": "Arjun Banker",
         | 
| 214 | 
            +
                              "id": "7901103"
         | 
| 215 | 
            +
                           }
         | 
| 216 | 
            +
                        ]
         | 
| 217 | 
            +
                     },
         | 
| 218 | 
            +
                     "message": "Holy graph-ballz, Batman!",
         | 
| 219 | 
            +
                     "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs405.snc3/24521_672772511333_204686_37732593_3662199_s.jpg",
         | 
| 220 | 
            +
                     "link": "http://www.facebook.com/photo.php?pid=37732593&id=204686",
         | 
| 221 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif",
         | 
| 222 | 
            +
                     "privacy": {
         | 
| 223 | 
            +
                        "value": "EVERYONE"
         | 
| 224 | 
            +
                     },
         | 
| 225 | 
            +
                     "created_time": "2010-04-21T18:00:23+0000",
         | 
| 226 | 
            +
                     "updated_time": "2010-04-21T18:00:23+0000",
         | 
| 227 | 
            +
                     "likes": 3
         | 
| 228 | 
            +
                  },
         | 
| 229 | 
            +
                  {
         | 
| 230 | 
            +
                     "id": "7901103_113242142040451",
         | 
| 231 | 
            +
                     "from": {
         | 
| 232 | 
            +
                        "name": "Tom Lianza",
         | 
| 233 | 
            +
                        "id": "4810243"
         | 
| 234 | 
            +
                     },
         | 
| 235 | 
            +
                     "to": {
         | 
| 236 | 
            +
                        "data": [
         | 
| 237 | 
            +
                           {
         | 
| 238 | 
            +
                              "name": "Arjun Banker",
         | 
| 239 | 
            +
                              "id": "7901103"
         | 
| 240 | 
            +
                           }
         | 
| 241 | 
            +
                        ]
         | 
| 242 | 
            +
                     },
         | 
| 243 | 
            +
                     "message": "Ha! I've seen your name more than once in the new API docs: http://developers.facebook.com/docs/reference/api/user",
         | 
| 244 | 
            +
                     "name": "User - Facebook Developers",
         | 
| 245 | 
            +
                     "caption": "developers.facebook.com",
         | 
| 246 | 
            +
                     "description": "The photos, videos, and posts in which this user has been tagged. Requires the user_photo_tags, user_video_tags, friend_photo_tags, or friend_video_tags permissions",
         | 
| 247 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif",
         | 
| 248 | 
            +
                     "privacy": {
         | 
| 249 | 
            +
                        "value": "EVERYONE"
         | 
| 250 | 
            +
                     },
         | 
| 251 | 
            +
                     "created_time": "2010-04-21T17:55:50+0000",
         | 
| 252 | 
            +
                     "updated_time": "2010-04-21T20:22:56+0000",
         | 
| 253 | 
            +
                     "likes": 1,
         | 
| 254 | 
            +
                     "comments": {
         | 
| 255 | 
            +
                        "data": [
         | 
| 256 | 
            +
                           {
         | 
| 257 | 
            +
                              "id": "7901103_113242142040451_316099",
         | 
| 258 | 
            +
                              "from": {
         | 
| 259 | 
            +
                                 "name": "Arjun Banker",
         | 
| 260 | 
            +
                                 "id": "7901103"
         | 
| 261 | 
            +
                              },
         | 
| 262 | 
            +
                              "message": "what are you doing reading the docs?  hit that endpoint straight up.",
         | 
| 263 | 
            +
                              "created_time": "2010-04-21T19:22:26+0000"
         | 
| 264 | 
            +
                           },
         | 
| 265 | 
            +
                           {
         | 
| 266 | 
            +
                              "id": "7901103_113242142040451_316657",
         | 
| 267 | 
            +
                              "from": {
         | 
| 268 | 
            +
                                 "name": "Tom Lianza",
         | 
| 269 | 
            +
                                 "id": "4810243"
         | 
| 270 | 
            +
                              },
         | 
| 271 | 
            +
                              "message": "I was going to quickly add this sweet \"like\" button until I realized that meant moving to the new connect libraries, in which it seems the syntax has changed and a bunch of code has to be rewritten, but after I do that, I'll just hit things straight up :P",
         | 
| 272 | 
            +
                              "created_time": "2010-04-21T20:22:56+0000"
         | 
| 273 | 
            +
                           }
         | 
| 274 | 
            +
                        ]
         | 
| 275 | 
            +
                     }
         | 
| 276 | 
            +
                  },
         | 
| 277 | 
            +
                  {
         | 
| 278 | 
            +
                     "id": "7901103_116468971706246",
         | 
| 279 | 
            +
                     "from": {
         | 
| 280 | 
            +
                        "name": "Blaise DiPersia",
         | 
| 281 | 
            +
                        "id": "1319289"
         | 
| 282 | 
            +
                     },
         | 
| 283 | 
            +
                     "to": {
         | 
| 284 | 
            +
                        "data": [
         | 
| 285 | 
            +
                           {
         | 
| 286 | 
            +
                              "name": "Arjun Banker",
         | 
| 287 | 
            +
                              "id": "7901103"
         | 
| 288 | 
            +
                           }
         | 
| 289 | 
            +
                        ]
         | 
| 290 | 
            +
                     },
         | 
| 291 | 
            +
                     "picture": "http://external.ak.fbcdn.net/safe_image.php?d=ad661523774a2045aad1ebf469f99dd5&w=130&h=130&url=http%3A%2F%2Fwww.blanka.co.uk%2Fi%2Fproducts%2F2708.jpg",
         | 
| 292 | 
            +
                     "link": "http://www.blanka.co.uk/supersize?product=2708",
         | 
| 293 | 
            +
                     "name": "Blanka || Supersize",
         | 
| 294 | 
            +
                     "caption": "www.blanka.co.uk",
         | 
| 295 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif",
         | 
| 296 | 
            +
                     "privacy": {
         | 
| 297 | 
            +
                        "value": "EVERYONE"
         | 
| 298 | 
            +
                     },
         | 
| 299 | 
            +
                     "created_time": "2010-04-21T07:55:49+0000",
         | 
| 300 | 
            +
                     "updated_time": "2010-04-21T07:55:49+0000",
         | 
| 301 | 
            +
                     "likes": 1
         | 
| 302 | 
            +
                  }
         | 
| 303 | 
            +
               ],
         | 
| 304 | 
            +
               "paging": {
         | 
| 305 | 
            +
                  "previous": "https://graph.facebook.com/7901103/tagged?token=2227470867%7C2.dao7m2Ak0L3D0GcdwgAOxA__.3600.1272276000-579612276%7CDtIxF8whuaOlF3IJ8PQssQYHWk8.&limit=25&since=2010-04-24T08%3A07%3A59%2B0000",
         | 
| 306 | 
            +
                  "next": "https://graph.facebook.com/7901103/tagged?token=2227470867%7C2.dao7m2Ak0L3D0GcdwgAOxA__.3600.1272276000-579612276%7CDtIxF8whuaOlF3IJ8PQssQYHWk8.&limit=25&until=2010-04-21T07%3A55%3A49%2B0000"
         | 
| 307 | 
            +
               }
         | 
| 308 | 
            +
            }
         | 
| @@ -0,0 +1,308 @@ | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
               "data": [
         | 
| 3 | 
            +
                  {
         | 
| 4 | 
            +
                     "id": "7901103_117809521578252",
         | 
| 5 | 
            +
                     "from": {
         | 
| 6 | 
            +
                        "name": "Elli Mooney",
         | 
| 7 | 
            +
                        "id": "1404401889"
         | 
| 8 | 
            +
                     },
         | 
| 9 | 
            +
                     "to": {
         | 
| 10 | 
            +
                        "data": [
         | 
| 11 | 
            +
                           {
         | 
| 12 | 
            +
                              "name": "Arjun Banker",
         | 
| 13 | 
            +
                              "id": "7901103"
         | 
| 14 | 
            +
                           }
         | 
| 15 | 
            +
                        ]
         | 
| 16 | 
            +
                     },
         | 
| 17 | 
            +
                     "message": "...uh oh, here comes a privacy issue....",
         | 
| 18 | 
            +
                     "picture": "http://external.ak.fbcdn.net/safe_image.php?d=c659c86d415c60c37b2871bfd67f2a97&w=130&h=130&url=http%3A%2F%2Fcdn.venturebeat.com%2Fwp-content%2Fuploads%2F2010%2F04%2Fusethisone.jpg",
         | 
| 19 | 
            +
                     "link": "http://venturebeat.com/2010/04/23/blippy-credit-card-citibank/",
         | 
| 20 | 
            +
                     "name": "Blippy users\u2019 credit card numbers found on Google | VentureBeat",
         | 
| 21 | 
            +
                     "caption": "venturebeat.com",
         | 
| 22 | 
            +
                     "description": "[Update: Blippy cofounder Philip Kaplan emailed a response. CNET News is reporting that the cards in question were issued by ...",
         | 
| 23 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif",
         | 
| 24 | 
            +
                     "privacy": {
         | 
| 25 | 
            +
                        "value": "EVERYONE"
         | 
| 26 | 
            +
                     },
         | 
| 27 | 
            +
                     "created_time": "2010-04-24T08:07:59+0000",
         | 
| 28 | 
            +
                     "updated_time": "2010-04-24T08:07:59+0000",
         | 
| 29 | 
            +
                     "likes": 1
         | 
| 30 | 
            +
                  },
         | 
| 31 | 
            +
                  {
         | 
| 32 | 
            +
                     "id": "7901103_10100207879175340",
         | 
| 33 | 
            +
                     "from": {
         | 
| 34 | 
            +
                        "name": "Andrew 'Boz' Bosworth",
         | 
| 35 | 
            +
                        "id": "1681"
         | 
| 36 | 
            +
                     },
         | 
| 37 | 
            +
                     "to": {
         | 
| 38 | 
            +
                        "data": [
         | 
| 39 | 
            +
                           {
         | 
| 40 | 
            +
                              "name": "Arjun Banker",
         | 
| 41 | 
            +
                              "id": "7901103"
         | 
| 42 | 
            +
                           }
         | 
| 43 | 
            +
                        ]
         | 
| 44 | 
            +
                     },
         | 
| 45 | 
            +
                     "picture": "http://photos-d.ak.fbcdn.net/hphotos-ak-snc3/hs461.snc3/25356_721202242761_1681_39052168_1554343_s.jpg",
         | 
| 46 | 
            +
                     "link": "http://www.facebook.com/photo.php?pid=39052168&id=1681",
         | 
| 47 | 
            +
                     "name": "f8 2010",
         | 
| 48 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif",
         | 
| 49 | 
            +
                     "privacy": {
         | 
| 50 | 
            +
                        "value": "EVERYONE"
         | 
| 51 | 
            +
                     },
         | 
| 52 | 
            +
                     "created_time": "2010-04-22T08:24:26+0000",
         | 
| 53 | 
            +
                     "updated_time": "2010-04-22T08:24:26+0000"
         | 
| 54 | 
            +
                  },
         | 
| 55 | 
            +
                  {
         | 
| 56 | 
            +
                     "id": "7901103_10100207803551890",
         | 
| 57 | 
            +
                     "from": {
         | 
| 58 | 
            +
                        "name": "Steve Blackmon",
         | 
| 59 | 
            +
                        "id": "687664828"
         | 
| 60 | 
            +
                     },
         | 
| 61 | 
            +
                     "to": {
         | 
| 62 | 
            +
                        "data": [
         | 
| 63 | 
            +
                           {
         | 
| 64 | 
            +
                              "name": "Arjun Banker",
         | 
| 65 | 
            +
                              "id": "7901103"
         | 
| 66 | 
            +
                           }
         | 
| 67 | 
            +
                        ]
         | 
| 68 | 
            +
                     },
         | 
| 69 | 
            +
                     "message": "Facebook opengraph and new API terms of service are huge improvement, nice work.   Participate in defining and adopt a w3c RDF standard for these concepts and facebook will have a prominent place in #linkeddata history.",
         | 
| 70 | 
            +
                     "icon": "http://graph.facebook.com/images/icons/mobile_app.gif",
         | 
| 71 | 
            +
                     "attribution": "Facebook for iPhone",
         | 
| 72 | 
            +
                     "privacy": {
         | 
| 73 | 
            +
                        "value": "EVERYONE"
         | 
| 74 | 
            +
                     },
         | 
| 75 | 
            +
                     "created_time": "2010-04-22T04:52:11+0000",
         | 
| 76 | 
            +
                     "updated_time": "2010-04-22T04:52:11+0000"
         | 
| 77 | 
            +
                  },
         | 
| 78 | 
            +
                  {
         | 
| 79 | 
            +
                     "id": "7901103_10100207635533600",
         | 
| 80 | 
            +
                     "from": {
         | 
| 81 | 
            +
                        "name": "Aditya Bansod",
         | 
| 82 | 
            +
                        "id": "3325854"
         | 
| 83 | 
            +
                     },
         | 
| 84 | 
            +
                     "to": {
         | 
| 85 | 
            +
                        "data": [
         | 
| 86 | 
            +
                           {
         | 
| 87 | 
            +
                              "name": "Arjun Banker",
         | 
| 88 | 
            +
                              "id": "7901103"
         | 
| 89 | 
            +
                           }
         | 
| 90 | 
            +
                        ]
         | 
| 91 | 
            +
                     },
         | 
| 92 | 
            +
                     "message": "dude, you're internet famous!",
         | 
| 93 | 
            +
                     "privacy": {
         | 
| 94 | 
            +
                        "value": "EVERYONE"
         | 
| 95 | 
            +
                     },
         | 
| 96 | 
            +
                     "created_time": "2010-04-22T01:34:11+0000",
         | 
| 97 | 
            +
                     "updated_time": "2010-04-22T01:34:11+0000"
         | 
| 98 | 
            +
                  },
         | 
| 99 | 
            +
                  {
         | 
| 100 | 
            +
                     "id": "7901103_10100207523223670",
         | 
| 101 | 
            +
                     "from": {
         | 
| 102 | 
            +
                        "name": "Waleed Abdulla",
         | 
| 103 | 
            +
                        "id": "500071393"
         | 
| 104 | 
            +
                     },
         | 
| 105 | 
            +
                     "to": {
         | 
| 106 | 
            +
                        "data": [
         | 
| 107 | 
            +
                           {
         | 
| 108 | 
            +
                              "name": "Arjun Banker",
         | 
| 109 | 
            +
                              "id": "7901103"
         | 
| 110 | 
            +
                           }
         | 
| 111 | 
            +
                        ]
         | 
| 112 | 
            +
                     },
         | 
| 113 | 
            +
                     "message": "Great job on stage today. I'm so excited right now :)",
         | 
| 114 | 
            +
                     "privacy": {
         | 
| 115 | 
            +
                        "value": "EVERYONE"
         | 
| 116 | 
            +
                     },
         | 
| 117 | 
            +
                     "created_time": "2010-04-21T22:24:54+0000",
         | 
| 118 | 
            +
                     "updated_time": "2010-04-21T22:24:54+0000"
         | 
| 119 | 
            +
                  },
         | 
| 120 | 
            +
                  {
         | 
| 121 | 
            +
                     "id": "7901103_10100207519022090",
         | 
| 122 | 
            +
                     "from": {
         | 
| 123 | 
            +
                        "name": "Atish Mehta",
         | 
| 124 | 
            +
                        "id": "3404106"
         | 
| 125 | 
            +
                     },
         | 
| 126 | 
            +
                     "to": {
         | 
| 127 | 
            +
                        "data": [
         | 
| 128 | 
            +
                           {
         | 
| 129 | 
            +
                              "name": "Arjun Banker",
         | 
| 130 | 
            +
                              "id": "7901103"
         | 
| 131 | 
            +
                           }
         | 
| 132 | 
            +
                        ]
         | 
| 133 | 
            +
                     },
         | 
| 134 | 
            +
                     "message": "The kids are happy\n\nhttp://news.ycombinator.com/item?id=1282860",
         | 
| 135 | 
            +
                     "privacy": {
         | 
| 136 | 
            +
                        "value": "EVERYONE"
         | 
| 137 | 
            +
                     },
         | 
| 138 | 
            +
                     "created_time": "2010-04-21T22:19:08+0000",
         | 
| 139 | 
            +
                     "updated_time": "2010-04-21T22:19:08+0000"
         | 
| 140 | 
            +
                  },
         | 
| 141 | 
            +
                  {
         | 
| 142 | 
            +
                     "id": "7901103_10100207509825520",
         | 
| 143 | 
            +
                     "from": {
         | 
| 144 | 
            +
                        "name": "John Allen",
         | 
| 145 | 
            +
                        "id": "400586"
         | 
| 146 | 
            +
                     },
         | 
| 147 | 
            +
                     "to": {
         | 
| 148 | 
            +
                        "data": [
         | 
| 149 | 
            +
                           {
         | 
| 150 | 
            +
                              "name": "Arjun Banker",
         | 
| 151 | 
            +
                              "id": "7901103"
         | 
| 152 | 
            +
                           }
         | 
| 153 | 
            +
                        ]
         | 
| 154 | 
            +
                     },
         | 
| 155 | 
            +
                     "message": "I can see you...",
         | 
| 156 | 
            +
                     "privacy": {
         | 
| 157 | 
            +
                        "value": "EVERYONE"
         | 
| 158 | 
            +
                     },
         | 
| 159 | 
            +
                     "created_time": "2010-04-21T22:03:50+0000",
         | 
| 160 | 
            +
                     "updated_time": "2010-04-21T22:03:50+0000"
         | 
| 161 | 
            +
                  },
         | 
| 162 | 
            +
                  {
         | 
| 163 | 
            +
                     "id": "7901103_10100207507125930",
         | 
| 164 | 
            +
                     "from": {
         | 
| 165 | 
            +
                        "name": "Joseph Sofaer",
         | 
| 166 | 
            +
                        "id": "820004"
         | 
| 167 | 
            +
                     },
         | 
| 168 | 
            +
                     "to": {
         | 
| 169 | 
            +
                        "data": [
         | 
| 170 | 
            +
                           {
         | 
| 171 | 
            +
                              "name": "Arjun Banker",
         | 
| 172 | 
            +
                              "id": "7901103"
         | 
| 173 | 
            +
                           }
         | 
| 174 | 
            +
                        ]
         | 
| 175 | 
            +
                     },
         | 
| 176 | 
            +
                     "message": "The new Graph API looks great!",
         | 
| 177 | 
            +
                     "privacy": {
         | 
| 178 | 
            +
                        "value": "EVERYONE"
         | 
| 179 | 
            +
                     },
         | 
| 180 | 
            +
                     "created_time": "2010-04-21T21:59:18+0000",
         | 
| 181 | 
            +
                     "updated_time": "2010-04-21T21:59:18+0000"
         | 
| 182 | 
            +
                  },
         | 
| 183 | 
            +
                  {
         | 
| 184 | 
            +
                     "id": "7901103_10100207467265810",
         | 
| 185 | 
            +
                     "from": {
         | 
| 186 | 
            +
                        "name": "Kovas Boguta",
         | 
| 187 | 
            +
                        "id": "2903108"
         | 
| 188 | 
            +
                     },
         | 
| 189 | 
            +
                     "to": {
         | 
| 190 | 
            +
                        "data": [
         | 
| 191 | 
            +
                           {
         | 
| 192 | 
            +
                              "name": "Arjun Banker",
         | 
| 193 | 
            +
                              "id": "7901103"
         | 
| 194 | 
            +
                           }
         | 
| 195 | 
            +
                        ]
         | 
| 196 | 
            +
                     },
         | 
| 197 | 
            +
                     "message": "Nice work, this is awesome!!",
         | 
| 198 | 
            +
                     "privacy": {
         | 
| 199 | 
            +
                        "value": "EVERYONE"
         | 
| 200 | 
            +
                     },
         | 
| 201 | 
            +
                     "created_time": "2010-04-21T20:49:18+0000",
         | 
| 202 | 
            +
                     "updated_time": "2010-04-21T20:49:18+0000"
         | 
| 203 | 
            +
                  },
         | 
| 204 | 
            +
                  {
         | 
| 205 | 
            +
                     "id": "7901103_672772511333",
         | 
| 206 | 
            +
                     "from": {
         | 
| 207 | 
            +
                        "name": "Mark Slee",
         | 
| 208 | 
            +
                        "id": "204686"
         | 
| 209 | 
            +
                     },
         | 
| 210 | 
            +
                     "to": {
         | 
| 211 | 
            +
                        "data": [
         | 
| 212 | 
            +
                           {
         | 
| 213 | 
            +
                              "name": "Arjun Banker",
         | 
| 214 | 
            +
                              "id": "7901103"
         | 
| 215 | 
            +
                           }
         | 
| 216 | 
            +
                        ]
         | 
| 217 | 
            +
                     },
         | 
| 218 | 
            +
                     "message": "Holy graph-ballz, Batman!",
         | 
| 219 | 
            +
                     "picture": "http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs405.snc3/24521_672772511333_204686_37732593_3662199_s.jpg",
         | 
| 220 | 
            +
                     "link": "http://www.facebook.com/photo.php?pid=37732593&id=204686",
         | 
| 221 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/z2E5Y/hash/8as8iqdm.gif",
         | 
| 222 | 
            +
                     "privacy": {
         | 
| 223 | 
            +
                        "value": "EVERYONE"
         | 
| 224 | 
            +
                     },
         | 
| 225 | 
            +
                     "created_time": "2010-04-21T18:00:23+0000",
         | 
| 226 | 
            +
                     "updated_time": "2010-04-21T18:00:23+0000",
         | 
| 227 | 
            +
                     "likes": 3
         | 
| 228 | 
            +
                  },
         | 
| 229 | 
            +
                  {
         | 
| 230 | 
            +
                     "id": "7901103_113242142040451",
         | 
| 231 | 
            +
                     "from": {
         | 
| 232 | 
            +
                        "name": "Tom Lianza",
         | 
| 233 | 
            +
                        "id": "4810243"
         | 
| 234 | 
            +
                     },
         | 
| 235 | 
            +
                     "to": {
         | 
| 236 | 
            +
                        "data": [
         | 
| 237 | 
            +
                           {
         | 
| 238 | 
            +
                              "name": "Arjun Banker",
         | 
| 239 | 
            +
                              "id": "7901103"
         | 
| 240 | 
            +
                           }
         | 
| 241 | 
            +
                        ]
         | 
| 242 | 
            +
                     },
         | 
| 243 | 
            +
                     "message": "Ha! I've seen your name more than once in the new API docs: http://developers.facebook.com/docs/reference/api/user",
         | 
| 244 | 
            +
                     "name": "User - Facebook Developers",
         | 
| 245 | 
            +
                     "caption": "developers.facebook.com",
         | 
| 246 | 
            +
                     "description": "The photos, videos, and posts in which this user has been tagged. Requires the user_photo_tags, user_video_tags, friend_photo_tags, or friend_video_tags permissions",
         | 
| 247 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif",
         | 
| 248 | 
            +
                     "privacy": {
         | 
| 249 | 
            +
                        "value": "EVERYONE"
         | 
| 250 | 
            +
                     },
         | 
| 251 | 
            +
                     "created_time": "2010-04-21T17:55:50+0000",
         | 
| 252 | 
            +
                     "updated_time": "2010-04-21T20:22:56+0000",
         | 
| 253 | 
            +
                     "likes": 1,
         | 
| 254 | 
            +
                     "comments": {
         | 
| 255 | 
            +
                        "data": [
         | 
| 256 | 
            +
                           {
         | 
| 257 | 
            +
                              "id": "7901103_113242142040451_316099",
         | 
| 258 | 
            +
                              "from": {
         | 
| 259 | 
            +
                                 "name": "Arjun Banker",
         | 
| 260 | 
            +
                                 "id": "7901103"
         | 
| 261 | 
            +
                              },
         | 
| 262 | 
            +
                              "message": "what are you doing reading the docs?  hit that endpoint straight up.",
         | 
| 263 | 
            +
                              "created_time": "2010-04-21T19:22:26+0000"
         | 
| 264 | 
            +
                           },
         | 
| 265 | 
            +
                           {
         | 
| 266 | 
            +
                              "id": "7901103_113242142040451_316657",
         | 
| 267 | 
            +
                              "from": {
         | 
| 268 | 
            +
                                 "name": "Tom Lianza",
         | 
| 269 | 
            +
                                 "id": "4810243"
         | 
| 270 | 
            +
                              },
         | 
| 271 | 
            +
                              "message": "I was going to quickly add this sweet \"like\" button until I realized that meant moving to the new connect libraries, in which it seems the syntax has changed and a bunch of code has to be rewritten, but after I do that, I'll just hit things straight up :P",
         | 
| 272 | 
            +
                              "created_time": "2010-04-21T20:22:56+0000"
         | 
| 273 | 
            +
                           }
         | 
| 274 | 
            +
                        ]
         | 
| 275 | 
            +
                     }
         | 
| 276 | 
            +
                  },
         | 
| 277 | 
            +
                  {
         | 
| 278 | 
            +
                     "id": "7901103_116468971706246",
         | 
| 279 | 
            +
                     "from": {
         | 
| 280 | 
            +
                        "name": "Blaise DiPersia",
         | 
| 281 | 
            +
                        "id": "1319289"
         | 
| 282 | 
            +
                     },
         | 
| 283 | 
            +
                     "to": {
         | 
| 284 | 
            +
                        "data": [
         | 
| 285 | 
            +
                           {
         | 
| 286 | 
            +
                              "name": "Arjun Banker",
         | 
| 287 | 
            +
                              "id": "7901103"
         | 
| 288 | 
            +
                           }
         | 
| 289 | 
            +
                        ]
         | 
| 290 | 
            +
                     },
         | 
| 291 | 
            +
                     "picture": "http://external.ak.fbcdn.net/safe_image.php?d=ad661523774a2045aad1ebf469f99dd5&w=130&h=130&url=http%3A%2F%2Fwww.blanka.co.uk%2Fi%2Fproducts%2F2708.jpg",
         | 
| 292 | 
            +
                     "link": "http://www.blanka.co.uk/supersize?product=2708",
         | 
| 293 | 
            +
                     "name": "Blanka || Supersize",
         | 
| 294 | 
            +
                     "caption": "www.blanka.co.uk",
         | 
| 295 | 
            +
                     "icon": "http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif",
         | 
| 296 | 
            +
                     "privacy": {
         | 
| 297 | 
            +
                        "value": "EVERYONE"
         | 
| 298 | 
            +
                     },
         | 
| 299 | 
            +
                     "created_time": "2010-04-21T07:55:49+0000",
         | 
| 300 | 
            +
                     "updated_time": "2010-04-21T07:55:49+0000",
         | 
| 301 | 
            +
                     "likes": 1
         | 
| 302 | 
            +
                  }
         | 
| 303 | 
            +
               ],
         | 
| 304 | 
            +
               "paging": {
         | 
| 305 | 
            +
                  "previous": "https://graph.facebook.com/7901103/tagged?limit=25&since=2010-04-24T08%3A07%3A59%2B0000",
         | 
| 306 | 
            +
                  "next": "https://graph.facebook.com/7901103/tagged?limit=25&until=2010-04-21T07%3A55%3A49%2B0000"
         | 
| 307 | 
            +
               }
         | 
| 308 | 
            +
            }
         | 
| @@ -0,0 +1,28 @@ | |
| 1 | 
            +
            require File.join(File.dirname(__FILE__), '../../spec_helper')
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe FbGraph::Connections::Activities, '#activities' do
         | 
| 4 | 
            +
              describe 'when included by FbGraph::User' do
         | 
| 5 | 
            +
                before(:all) do
         | 
| 6 | 
            +
                  fake_json(:get, 'arjun/activities', 'users/activities/arjun_public')
         | 
| 7 | 
            +
                  fake_json(:get, 'arjun/activities?access_token=access_token', 'users/activities/arjun_private')
         | 
| 8 | 
            +
                end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                it 'should raise FbGraph::Unauthorized when no access_token given' do
         | 
| 11 | 
            +
                  lambda do
         | 
| 12 | 
            +
                    FbGraph::User.new('arjun').activities
         | 
| 13 | 
            +
                  end.should raise_exception(FbGraph::Unauthorized)
         | 
| 14 | 
            +
                end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                it 'should return liked pages' do
         | 
| 17 | 
            +
                  activities = FbGraph::User.new('arjun', :access_token => 'access_token').activities
         | 
| 18 | 
            +
                  activities.first.should == FbGraph::Page.new(
         | 
| 19 | 
            +
                    '378209722137',
         | 
| 20 | 
            +
                    :name => 'Doing Things at the Last Minute',
         | 
| 21 | 
            +
                    :category => '活動'
         | 
| 22 | 
            +
                  )
         | 
| 23 | 
            +
                  activities.each do |activity|
         | 
| 24 | 
            +
                    activity.should be_instance_of(FbGraph::Page)
         | 
| 25 | 
            +
                  end
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
              end
         | 
| 28 | 
            +
            end
         | 
| @@ -0,0 +1,34 @@ | |
| 1 | 
            +
            require File.join(File.dirname(__FILE__), '../../spec_helper')
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            describe FbGraph::Connections::Feed, '#feed' do
         | 
| 4 | 
            +
              describe 'when included by FbGraph::User' do
         | 
| 5 | 
            +
                before(:all) do
         | 
| 6 | 
            +
                  fake_json(:get, 'arjun/feed', 'users/feed/arjun_public')
         | 
| 7 | 
            +
                  fake_json(:get, 'arjun/feed?access_token=access_token', 'users/feed/arjun_private')
         | 
| 8 | 
            +
                end
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                it 'should return public wall posts even when access_token is not given' do
         | 
| 11 | 
            +
                  posts = FbGraph::User.new('arjun').feed
         | 
| 12 | 
            +
                  posts.first.should == FbGraph::Post.new(
         | 
| 13 | 
            +
                    '7901103_121392141207495',
         | 
| 14 | 
            +
                    :from => {
         | 
| 15 | 
            +
                      :id => '7901103',
         | 
| 16 | 
            +
                      :name => 'Arjun Banker'
         | 
| 17 | 
            +
                    },
         | 
| 18 | 
            +
                    :picture => 'http://external.ak.fbcdn.net/safe_image.php?d=d2cc5beedaa401ba54eccc9014647285&w=130&h=130&url=http%3A%2F%2Fimages.ted.com%2Fimages%2Fted%2F269_389x292.jpg',
         | 
| 19 | 
            +
                    :link => 'http://www.ted.com/talks/wade_davis_on_endangered_cultures.html',
         | 
| 20 | 
            +
                    :name => 'Wade Davis on endangered cultures | Video on TED.com',
         | 
| 21 | 
            +
                    :caption => 'www.ted.com',
         | 
| 22 | 
            +
                    :description => 'TED Talks With stunning photos and stories, National Geographic Explorer Wade Davis celebrates the extraordinary diversity of the world\'s indigenous cultures, which are disappearing from the planet at an alarming rate.',
         | 
| 23 | 
            +
                    :icon => 'http://static.ak.fbcdn.net/rsrc.php/z9XZ8/hash/976ulj6z.gif',
         | 
| 24 | 
            +
                    :created_time => '2010-04-25T04:05:32+0000',
         | 
| 25 | 
            +
                    :updated_time => '2010-04-25T04:05:32+0000',
         | 
| 26 | 
            +
                    :likes => 1
         | 
| 27 | 
            +
                  )
         | 
| 28 | 
            +
                  posts.each do |post|
         | 
| 29 | 
            +
                    post.should be_instance_of(FbGraph::Post)
         | 
| 30 | 
            +
                  end
         | 
| 31 | 
            +
                end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
              end
         | 
| 34 | 
            +
            end
         |