fb_graph 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/fb_graph.gemspec +107 -0
- data/lib/fb_graph/connections/collection.rb +31 -0
- data/lib/fb_graph/connections/feed.rb +9 -0
- data/lib/fb_graph/connections/home.rb +9 -0
- data/lib/fb_graph/connections/likes.rb +12 -0
- data/lib/fb_graph/connections/picture.rb +14 -0
- data/lib/fb_graph/connections/posts.rb +15 -0
- data/lib/fb_graph/connections/statuses.rb +12 -0
- data/lib/fb_graph/connections/tagged.rb +9 -0
- data/lib/fb_graph/connections.rb +6 -0
- data/lib/fb_graph/node.rb +62 -0
- data/lib/fb_graph/page.rb +14 -0
- data/lib/fb_graph/post.rb +39 -0
- data/lib/fb_graph/status.rb +18 -0
- data/lib/fb_graph/user.rb +31 -0
- data/lib/fb_graph.rb +26 -0
- data/spec/fake_json/pages/platform_private.json +13 -0
- data/spec/fake_json/pages/platform_public.json +13 -0
- data/spec/fake_json/pages/statuses/platform_private.json +258 -0
- data/spec/fake_json/pages/statuses/platform_public.json +6 -0
- data/spec/fake_json/users/arjun_private.json +99 -0
- data/spec/fake_json/users/arjun_public.json +7 -0
- data/spec/fake_json/users/home/arjun_private.json +6 -0
- data/spec/fake_json/users/home/arjun_public.json +6 -0
- data/spec/fake_json/users/home/me_private.json +383 -0
- data/spec/fake_json/users/home/me_public.json +6 -0
- data/spec/fake_json/users/likes/arjun_private.json +1394 -0
- data/spec/fake_json/users/likes/arjun_public.json +6 -0
- data/spec/fake_json/users/statuses/arjun_private.json +233 -0
- data/spec/fake_json/users/statuses/arjun_public.json +6 -0
- data/spec/fb_graph/connections/collection_spec.rb +15 -0
- data/spec/fb_graph/connections/home_spec.rb +38 -0
- data/spec/fb_graph/connections/likes_spec.rb +33 -0
- data/spec/fb_graph/connections/picture_spec.rb +29 -0
- data/spec/fb_graph/connections/statuses_spec.rb +83 -0
- data/spec/fb_graph/node_spec.rb +13 -0
- data/spec/fb_graph/page_spec.rb +19 -0
- data/spec/fb_graph/user_spec.rb +41 -0
- data/spec/fb_graph_spec.rb +13 -0
- data/spec/helpers/fake_json_helper.rb +9 -0
- data/spec/spec.opts +3 -0
- data/spec/spec_helper.rb +18 -0
- metadata +155 -0
@@ -0,0 +1,258 @@
|
|
1
|
+
{
|
2
|
+
"data": [
|
3
|
+
{
|
4
|
+
"id": "111081598927600",
|
5
|
+
"from": {
|
6
|
+
"name": "Facebook Platform",
|
7
|
+
"category": "Technology",
|
8
|
+
"id": "19292868552"
|
9
|
+
},
|
10
|
+
"message": "Here's more information on the new social plugins announced at f8 today - http://bit.ly/db8ahS",
|
11
|
+
"updated_time": "2010-04-21T20:17:04+0000"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"id": "115430598485626",
|
15
|
+
"from": {
|
16
|
+
"name": "Facebook Platform",
|
17
|
+
"category": "Technology",
|
18
|
+
"id": "19292868552"
|
19
|
+
},
|
20
|
+
"message": "the f8 keynote has begun! Check out a live stream and live blogging notes under the \"f8\" Live tab <http://apps.facebook.com/feightlive>",
|
21
|
+
"updated_time": "2010-04-21T17:20:33+0000"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"id": "118464504835613",
|
25
|
+
"from": {
|
26
|
+
"name": "Facebook Platform",
|
27
|
+
"category": "Technology",
|
28
|
+
"id": "19292868552"
|
29
|
+
},
|
30
|
+
"message": "We're getting ready for f8! Check out the latest on the f8 Page, including a video from the first event, when Platform launched :: http://bit.ly/ahHl7j",
|
31
|
+
"updated_time": "2010-04-15T17:37:03+0000"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"id": "103999179641109",
|
35
|
+
"from": {
|
36
|
+
"name": "Facebook Platform",
|
37
|
+
"category": "Technology",
|
38
|
+
"id": "19292868552"
|
39
|
+
},
|
40
|
+
"message": "Interested in the latest updates on f8, our developer conference? Become a fan of the f8 Page <http://www.facebook.com/f8>.",
|
41
|
+
"updated_time": "2010-04-09T17:37:35+0000"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"id": "111587482187580",
|
45
|
+
"from": {
|
46
|
+
"name": "Facebook Platform",
|
47
|
+
"category": "Technology",
|
48
|
+
"id": "19292868552"
|
49
|
+
},
|
50
|
+
"message": "Thanks to all of you who bought tickets to f8! We are now officially sold out. Check out the f8 Page for updates over the next month. We\u2019re excited to celebrate the Facebook developer community on April 21!",
|
51
|
+
"updated_time": "2010-03-24T23:23:20+0000"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"id": "103059169731962",
|
55
|
+
"from": {
|
56
|
+
"name": "Facebook Platform",
|
57
|
+
"category": "Technology",
|
58
|
+
"id": "19292868552"
|
59
|
+
},
|
60
|
+
"message": "More tickets for f8 will be released tomorrow at 11:00 AM PDT on the \"Register\" tab of the f8 Page. Tickets have been going fast, so be sure to be among the first to register for the second wave of tickets.",
|
61
|
+
"updated_time": "2010-03-23T19:11:08+0000"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"id": "238913685271",
|
65
|
+
"from": {
|
66
|
+
"name": "Facebook Platform",
|
67
|
+
"category": "Technology",
|
68
|
+
"id": "19292868552"
|
69
|
+
},
|
70
|
+
"message": "f8 2010 announced for April 21-22nd in San Francisco. Save the date! Read the full blog post below.",
|
71
|
+
"updated_time": "2009-12-18T19:15:23+0000"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"id": "139187058704",
|
75
|
+
"from": {
|
76
|
+
"name": "Facebook Platform",
|
77
|
+
"category": "Technology",
|
78
|
+
"id": "19292868552"
|
79
|
+
},
|
80
|
+
"message": "We are excited to integrate our Developer Blog with NetworkedBlogs (fbFund REV recipient) -- keep your eyes open for the new publishing format on this Page. For real-time updates, please follow the blog using NetworkedBlogs here: http://bit.ly/DivTL",
|
81
|
+
"updated_time": "2009-09-03T03:43:28+0000"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"id": "131414211860",
|
85
|
+
"from": {
|
86
|
+
"name": "Facebook Platform",
|
87
|
+
"category": "Technology",
|
88
|
+
"id": "19292868552"
|
89
|
+
},
|
90
|
+
"message": "Blog Post: Postcards from August Developer Events. http://bit.ly/3GXszH",
|
91
|
+
"updated_time": "2009-09-02T19:43:22+0000"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"id": "125117082748",
|
95
|
+
"from": {
|
96
|
+
"name": "Facebook Platform",
|
97
|
+
"category": "Technology",
|
98
|
+
"id": "19292868552"
|
99
|
+
},
|
100
|
+
"message": "Blog Post: fbFund REV: \"Oh! The Places You'll Go!\" http://bit.ly/4y2IH3",
|
101
|
+
"updated_time": "2009-09-02T18:22:17+0000"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"id": "124014878930",
|
105
|
+
"from": {
|
106
|
+
"name": "Facebook Platform",
|
107
|
+
"category": "Technology",
|
108
|
+
"id": "19292868552"
|
109
|
+
},
|
110
|
+
"message": "Blog Post: Graduation Day for fbFund REV Social Incubator is Here! http://bit.ly/lxi8e",
|
111
|
+
"updated_time": "2009-09-01T17:20:00+0000"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"id": "123977709798",
|
115
|
+
"from": {
|
116
|
+
"name": "Facebook Platform",
|
117
|
+
"category": "Technology",
|
118
|
+
"id": "19292868552"
|
119
|
+
},
|
120
|
+
"message": "Blog Post: August 2009 Platform News http://bit.ly/1Wg4uG",
|
121
|
+
"updated_time": "2009-09-01T02:03:41+0000"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"id": "155559050930",
|
125
|
+
"from": {
|
126
|
+
"name": "Facebook Platform",
|
127
|
+
"category": "Technology",
|
128
|
+
"id": "19292868552"
|
129
|
+
},
|
130
|
+
"message": "Blog post: Improving Facebook Share http://bit.ly/8U6nb",
|
131
|
+
"updated_time": "2009-08-31T17:46:42+0000"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
"id": "98291520839",
|
135
|
+
"from": {
|
136
|
+
"name": "Facebook Platform",
|
137
|
+
"category": "Technology",
|
138
|
+
"id": "19292868552"
|
139
|
+
},
|
140
|
+
"message": "Username selection is now live: Go to http://www.facebook.com/username/ to choose yours and get a distinct Web address for your profile",
|
141
|
+
"updated_time": "2009-06-13T05:06:10+0000"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"id": "159770665261",
|
145
|
+
"from": {
|
146
|
+
"name": "Facebook Platform",
|
147
|
+
"category": "Technology",
|
148
|
+
"id": "19292868552"
|
149
|
+
},
|
150
|
+
"message": "Buon giorno! Join us in Italy for the Facebook Developer Garage Milan. Facebook\u2019s James Leszczenski will be working with Italian developers to discuss the technical workings of Facebook Connect. Find more details on the event at http://www.facebook.",
|
151
|
+
"updated_time": "2009-04-22T00:04:01+0000"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"id": "84654929578",
|
155
|
+
"from": {
|
156
|
+
"name": "Facebook Platform",
|
157
|
+
"category": "Technology",
|
158
|
+
"id": "19292868552"
|
159
|
+
},
|
160
|
+
"message": "Announcing the fbFund Incubator Program 09! Come to California for the summer to build your startup with up to $100k http://bit.ly/GxAi",
|
161
|
+
"updated_time": "2009-04-16T23:21:25+0000"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"id": "71166339173",
|
165
|
+
"from": {
|
166
|
+
"name": "Facebook Platform",
|
167
|
+
"category": "Technology",
|
168
|
+
"id": "19292868552"
|
169
|
+
},
|
170
|
+
"message": "Want to learn more about Facebook Connect? Join Brent Goldman, Facebook Platform engineer, for the Facebook Developer Garage Barcelona. Attend the event in person or find out about live streaming at http://www.facebook.com/event.php?eid=76543947744.",
|
171
|
+
"updated_time": "2009-04-15T07:48:59+0000"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"id": "75840390944",
|
175
|
+
"from": {
|
176
|
+
"name": "Facebook Platform",
|
177
|
+
"category": "Technology",
|
178
|
+
"id": "19292868552"
|
179
|
+
},
|
180
|
+
"message": "Come visit us at the Web 2.0 expo in San Francisco. We're near the entrance (to the left) and also at booth #615 with Adobe!",
|
181
|
+
"updated_time": "2009-04-01T17:16:18+0000"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"id": "59666929317",
|
185
|
+
"from": {
|
186
|
+
"name": "Facebook Platform",
|
187
|
+
"category": "Technology",
|
188
|
+
"id": "19292868552"
|
189
|
+
},
|
190
|
+
"message": "A few comments have asked about attending garages near you. Start one! http://bit.ly/emQ32",
|
191
|
+
"updated_time": "2009-03-27T16:26:18+0000"
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"id": "69087847322",
|
195
|
+
"from": {
|
196
|
+
"name": "Facebook Platform",
|
197
|
+
"category": "Technology",
|
198
|
+
"id": "19292868552"
|
199
|
+
},
|
200
|
+
"message": "New Video: Introduction to Facebook Developer Garage at SXSW - http://www.facebook.com/video/video.php?v=616531184401&saved#/video/video.php?v=616530076621&ref=",
|
201
|
+
"updated_time": "2009-03-15T19:26:31+0000"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"id": "73223676067",
|
205
|
+
"from": {
|
206
|
+
"name": "Facebook Platform",
|
207
|
+
"category": "Technology",
|
208
|
+
"id": "19292868552"
|
209
|
+
},
|
210
|
+
"message": "http://developers.facebook.com/news.php?blog=1&story=210",
|
211
|
+
"updated_time": "2009-03-12T06:39:31+0000"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"id": "69990714024",
|
215
|
+
"from": {
|
216
|
+
"name": "Facebook Platform",
|
217
|
+
"category": "Technology",
|
218
|
+
"id": "19292868552"
|
219
|
+
},
|
220
|
+
"message": "Hoping you like the New Facebook Home Page and Public Profiles. New opportunities for developers. Let us know what you think!",
|
221
|
+
"updated_time": "2009-03-12T03:43:46+0000"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"id": "55809413761",
|
225
|
+
"from": {
|
226
|
+
"name": "Facebook Platform",
|
227
|
+
"category": "Technology",
|
228
|
+
"id": "19292868552"
|
229
|
+
},
|
230
|
+
"message": "is prepping for SXSW. Be sure to come to our exciting events: http://www.facebook.com/platform#/note.php?note_id=55400532301",
|
231
|
+
"updated_time": "2009-03-09T22:45:52+0000"
|
232
|
+
},
|
233
|
+
{
|
234
|
+
"id": "135478635485",
|
235
|
+
"from": {
|
236
|
+
"name": "Facebook Platform",
|
237
|
+
"category": "Technology",
|
238
|
+
"id": "19292868552"
|
239
|
+
},
|
240
|
+
"message": "Are you ready for SXSW?",
|
241
|
+
"updated_time": "2009-03-06T23:03:43+0000"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"id": "59328281651",
|
245
|
+
"from": {
|
246
|
+
"name": "Facebook Platform",
|
247
|
+
"category": "Technology",
|
248
|
+
"id": "19292868552"
|
249
|
+
},
|
250
|
+
"message": "http://developers.facebook.com/news.php?blog=1&story=209",
|
251
|
+
"updated_time": "2009-03-06T22:56:36+0000"
|
252
|
+
}
|
253
|
+
],
|
254
|
+
"paging": {
|
255
|
+
"previous": "https://graph.facebook.com/19292868552/statuses?token=2227470867%7C2.WYzVDx_3poIwJP1QNQ2vwg__.3600.1272117600-579612276%7CvNhS2UE8VCENmslKMACDszaJrDw.&limit=25&since=2010-04-21T20%3A17%3A04%2B0000",
|
256
|
+
"next": "https://graph.facebook.com/19292868552/statuses?token=2227470867%7C2.WYzVDx_3poIwJP1QNQ2vwg__.3600.1272117600-579612276%7CvNhS2UE8VCENmslKMACDszaJrDw.&limit=25&until=2009-03-06T22%3A56%3A36%2B0000"
|
257
|
+
}
|
258
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
{
|
2
|
+
"id": "7901103",
|
3
|
+
"name": "Arjun Banker",
|
4
|
+
"first_name": "Arjun",
|
5
|
+
"last_name": "Banker",
|
6
|
+
"link": "http://www.facebook.com/Arjun",
|
7
|
+
"about": "squish squash\npip pop\nfizz bang",
|
8
|
+
"birthday": "04/15/1984",
|
9
|
+
"work": [
|
10
|
+
{
|
11
|
+
"employer": {
|
12
|
+
"id": 20531316728,
|
13
|
+
"name": "Facebook"
|
14
|
+
},
|
15
|
+
"location": {
|
16
|
+
"id": 104022926303756,
|
17
|
+
"name": "Palo Alto, California"
|
18
|
+
},
|
19
|
+
"position": {
|
20
|
+
"id": 107879555911138,
|
21
|
+
"name": "Software Engineer"
|
22
|
+
},
|
23
|
+
"start_date": "2007-11"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"employer": {
|
27
|
+
"id": 113816405300191,
|
28
|
+
"name": "Zillow"
|
29
|
+
},
|
30
|
+
"position": {
|
31
|
+
"id": 105918922782444,
|
32
|
+
"name": "Business Intelligence Analyst"
|
33
|
+
},
|
34
|
+
"start_date": "2006-03",
|
35
|
+
"end_date": "2007-10"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"employer": {
|
39
|
+
"id": 20528438720,
|
40
|
+
"name": "Microsoft"
|
41
|
+
},
|
42
|
+
"position": {
|
43
|
+
"id": 110006949022640,
|
44
|
+
"name": "SDET"
|
45
|
+
},
|
46
|
+
"start_date": "2004-08",
|
47
|
+
"end_date": "2006-03"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"employer": {
|
51
|
+
"id": 7706457055,
|
52
|
+
"name": "Dell"
|
53
|
+
},
|
54
|
+
"position": {
|
55
|
+
"id": 110344568993267,
|
56
|
+
"name": "Programmer Analyst"
|
57
|
+
},
|
58
|
+
"start_date": "2003-06",
|
59
|
+
"end_date": "2004-07"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
"education": [
|
63
|
+
{
|
64
|
+
"school": {
|
65
|
+
"id": 107922345906866,
|
66
|
+
"name": "Texas Academy Of Math And Science"
|
67
|
+
},
|
68
|
+
"year": {
|
69
|
+
"id": 102241906483610,
|
70
|
+
"name": "2001"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"school": {
|
75
|
+
"id": 24147741537,
|
76
|
+
"name": "The University of Texas at Austin"
|
77
|
+
},
|
78
|
+
"year": {
|
79
|
+
"id": 108077232558120,
|
80
|
+
"name": "2003"
|
81
|
+
},
|
82
|
+
"concentration": [
|
83
|
+
{
|
84
|
+
"id": 116831821660155,
|
85
|
+
"name": "Computer Science"
|
86
|
+
}
|
87
|
+
]
|
88
|
+
}
|
89
|
+
],
|
90
|
+
"interested_in": [
|
91
|
+
"\\u5973\\u6027"
|
92
|
+
],
|
93
|
+
"meeting_for": [
|
94
|
+
"\\u53cb\\u60c5"
|
95
|
+
],
|
96
|
+
"religion": "zorp",
|
97
|
+
"timezone": -7,
|
98
|
+
"updated_time": "2010-04-22T18:23:22+0000"
|
99
|
+
}
|