fb_graph-mock 0.1.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/mock_json/applications/reviews.json +370 -0
- data/mock_json/comments/comment.json +7 -7
- data/mock_json/comments/comments/post_with_invalid_access_token.json +2 -2
- data/mock_json/comments/comments/post_without_access_token.json +2 -2
- data/mock_json/comments/comments/with_cursor_paging_params.json +203 -203
- data/mock_json/comments/with_can_comment.json +1 -1
- data/mock_json/pages/insights/FbGraph_private.json +15 -15
- data/mock_json/pages/platform_public.json +13 -13
- data/mock_json/pages/promotable_posts/sample.json +89 -89
- data/mock_json/pages/tabs/wall.json +5 -5
- data/mock_json/users/subscribed_to/sample.json +2 -2
- data/mock_json/users/subscribers/sample.json +4 -4
- metadata +3 -2
@@ -83,7 +83,7 @@
|
|
83
83
|
"values": [
|
84
84
|
{
|
85
85
|
"value": [
|
86
|
-
|
86
|
+
|
87
87
|
],
|
88
88
|
"end_time": "2010-11-27T08:00:00+0000"
|
89
89
|
}
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"values": [
|
98
98
|
{
|
99
99
|
"value": [
|
100
|
-
|
100
|
+
|
101
101
|
],
|
102
102
|
"end_time": "2010-11-27T08:00:00+0000"
|
103
103
|
}
|
@@ -159,7 +159,7 @@
|
|
159
159
|
"values": [
|
160
160
|
{
|
161
161
|
"value": [
|
162
|
-
|
162
|
+
|
163
163
|
],
|
164
164
|
"end_time": "2010-11-27T08:00:00+0000"
|
165
165
|
}
|
@@ -173,7 +173,7 @@
|
|
173
173
|
"values": [
|
174
174
|
{
|
175
175
|
"value": [
|
176
|
-
|
176
|
+
|
177
177
|
],
|
178
178
|
"end_time": "2010-11-27T08:00:00+0000"
|
179
179
|
}
|
@@ -187,7 +187,7 @@
|
|
187
187
|
"values": [
|
188
188
|
{
|
189
189
|
"value": [
|
190
|
-
|
190
|
+
|
191
191
|
],
|
192
192
|
"end_time": "2010-11-27T08:00:00+0000"
|
193
193
|
}
|
@@ -201,7 +201,7 @@
|
|
201
201
|
"values": [
|
202
202
|
{
|
203
203
|
"value": [
|
204
|
-
|
204
|
+
|
205
205
|
],
|
206
206
|
"end_time": "2010-11-27T08:00:00+0000"
|
207
207
|
}
|
@@ -287,7 +287,7 @@
|
|
287
287
|
"values": [
|
288
288
|
{
|
289
289
|
"value": [
|
290
|
-
|
290
|
+
|
291
291
|
],
|
292
292
|
"end_time": "2010-11-27T08:00:00+0000"
|
293
293
|
}
|
@@ -301,7 +301,7 @@
|
|
301
301
|
"values": [
|
302
302
|
{
|
303
303
|
"value": [
|
304
|
-
|
304
|
+
|
305
305
|
],
|
306
306
|
"end_time": "2010-11-27T08:00:00+0000"
|
307
307
|
}
|
@@ -315,7 +315,7 @@
|
|
315
315
|
"values": [
|
316
316
|
{
|
317
317
|
"value": [
|
318
|
-
|
318
|
+
|
319
319
|
],
|
320
320
|
"end_time": "2010-11-27T08:00:00+0000"
|
321
321
|
}
|
@@ -329,7 +329,7 @@
|
|
329
329
|
"values": [
|
330
330
|
{
|
331
331
|
"value": [
|
332
|
-
|
332
|
+
|
333
333
|
],
|
334
334
|
"end_time": "2010-11-27T08:00:00+0000"
|
335
335
|
}
|
@@ -463,7 +463,7 @@
|
|
463
463
|
"values": [
|
464
464
|
{
|
465
465
|
"value": [
|
466
|
-
|
466
|
+
|
467
467
|
],
|
468
468
|
"end_time": "2010-11-27T08:00:00+0000"
|
469
469
|
}
|
@@ -477,7 +477,7 @@
|
|
477
477
|
"values": [
|
478
478
|
{
|
479
479
|
"value": [
|
480
|
-
|
480
|
+
|
481
481
|
],
|
482
482
|
"end_time": "2010-11-27T08:00:00+0000"
|
483
483
|
}
|
@@ -563,7 +563,7 @@
|
|
563
563
|
"values": [
|
564
564
|
{
|
565
565
|
"value": [
|
566
|
-
|
566
|
+
|
567
567
|
],
|
568
568
|
"end_time": "2010-11-27T08:00:00+0000"
|
569
569
|
}
|
@@ -625,7 +625,7 @@
|
|
625
625
|
"values": [
|
626
626
|
{
|
627
627
|
"value": [
|
628
|
-
|
628
|
+
|
629
629
|
],
|
630
630
|
"end_time": "2010-11-27T08:00:00+0000"
|
631
631
|
}
|
@@ -771,7 +771,7 @@
|
|
771
771
|
"values": [
|
772
772
|
{
|
773
773
|
"value": [
|
774
|
-
|
774
|
+
|
775
775
|
],
|
776
776
|
"end_time": "2010-11-27T08:00:00+0000"
|
777
777
|
}
|
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
|
-
"name": "Facebook Developers",
|
3
|
-
"is_published": true,
|
4
|
-
"website": "http://developers.facebook.com",
|
5
|
-
"username": "FacebookDevelopers",
|
6
|
-
"company_overview": "Facebook Platform enables anyone to build social apps on Facebook, mobile, and the web.\n\n",
|
7
|
-
"about": "Build and distribute amazing social apps on Facebook. https://developers.facebook.com/ ",
|
8
|
-
"talking_about_count": 17811,
|
9
|
-
"category": "Product/service",
|
10
|
-
"id": "19292868552",
|
11
|
-
"link": "https://www.facebook.com/FacebookDevelopers",
|
12
|
-
"likes": 237499,
|
2
|
+
"name": "Facebook Developers",
|
3
|
+
"is_published": true,
|
4
|
+
"website": "http://developers.facebook.com",
|
5
|
+
"username": "FacebookDevelopers",
|
6
|
+
"company_overview": "Facebook Platform enables anyone to build social apps on Facebook, mobile, and the web.\n\n",
|
7
|
+
"about": "Build and distribute amazing social apps on Facebook. https://developers.facebook.com/ ",
|
8
|
+
"talking_about_count": 17811,
|
9
|
+
"category": "Product/service",
|
10
|
+
"id": "19292868552",
|
11
|
+
"link": "https://www.facebook.com/FacebookDevelopers",
|
12
|
+
"likes": 237499,
|
13
13
|
"cover": {
|
14
|
-
"cover_id": "10151124971508553",
|
15
|
-
"source": "https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-ash4/s720x720/418043_10151124971508553_1379621833_n.png",
|
14
|
+
"cover_id": "10151124971508553",
|
15
|
+
"source": "https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-ash4/s720x720/418043_10151124971508553_1379621833_n.png",
|
16
16
|
"offset_y": 0
|
17
17
|
}
|
18
18
|
}
|
@@ -1,168 +1,168 @@
|
|
1
1
|
{
|
2
2
|
"data": [
|
3
3
|
{
|
4
|
-
"id": "117513961602338_485053824848348",
|
4
|
+
"id": "117513961602338_485053824848348",
|
5
5
|
"from": {
|
6
|
-
"name": "FbGraph",
|
7
|
-
"category": "Software",
|
6
|
+
"name": "FbGraph",
|
7
|
+
"category": "Software",
|
8
8
|
"id": "117513961602338"
|
9
|
-
},
|
10
|
-
"message": "Sample Scheduled Promotable Posts",
|
9
|
+
},
|
10
|
+
"message": "Sample Scheduled Promotable Posts",
|
11
11
|
"actions": [
|
12
12
|
{
|
13
|
-
"name": "Comment",
|
13
|
+
"name": "Comment",
|
14
14
|
"link": "https://www.facebook.com/117513961602338/posts/485053824848348"
|
15
|
-
},
|
15
|
+
},
|
16
16
|
{
|
17
|
-
"name": "Like",
|
17
|
+
"name": "Like",
|
18
18
|
"link": "https://www.facebook.com/117513961602338/posts/485053824848348"
|
19
19
|
}
|
20
|
-
],
|
20
|
+
],
|
21
21
|
"privacy": {
|
22
|
-
"description": "Public",
|
22
|
+
"description": "Public",
|
23
23
|
"value": "EVERYONE"
|
24
|
-
},
|
25
|
-
"type": "status",
|
26
|
-
"created_time": "2012-11-09T15:00:00+0000",
|
27
|
-
"updated_time": "2012-11-09T15:00:00+0000",
|
24
|
+
},
|
25
|
+
"type": "status",
|
26
|
+
"created_time": "2012-11-09T15:00:00+0000",
|
27
|
+
"updated_time": "2012-11-09T15:00:00+0000",
|
28
28
|
"comments": {
|
29
29
|
"count": 0
|
30
|
-
},
|
31
|
-
"is_published": false,
|
30
|
+
},
|
31
|
+
"is_published": false,
|
32
32
|
"scheduled_publish_time": 1352473200
|
33
|
-
},
|
33
|
+
},
|
34
34
|
{
|
35
|
-
"id": "117513961602338_485050244848706",
|
35
|
+
"id": "117513961602338_485050244848706",
|
36
36
|
"from": {
|
37
|
-
"name": "FbGraph",
|
38
|
-
"category": "Software",
|
37
|
+
"name": "FbGraph",
|
38
|
+
"category": "Software",
|
39
39
|
"id": "117513961602338"
|
40
|
-
},
|
41
|
-
"message": "Sample Promotable Posts",
|
40
|
+
},
|
41
|
+
"message": "Sample Promotable Posts",
|
42
42
|
"actions": [
|
43
43
|
{
|
44
|
-
"name": "Comment",
|
44
|
+
"name": "Comment",
|
45
45
|
"link": "https://www.facebook.com/117513961602338/posts/485050244848706"
|
46
|
-
},
|
46
|
+
},
|
47
47
|
{
|
48
|
-
"name": "Like",
|
48
|
+
"name": "Like",
|
49
49
|
"link": "https://www.facebook.com/117513961602338/posts/485050244848706"
|
50
50
|
}
|
51
|
-
],
|
51
|
+
],
|
52
52
|
"privacy": {
|
53
|
-
"description": "Public",
|
53
|
+
"description": "Public",
|
54
54
|
"value": "EVERYONE"
|
55
|
-
},
|
56
|
-
"type": "status",
|
57
|
-
"status_type": "mobile_status_update",
|
58
|
-
"created_time": "2012-11-07T02:04:16+0000",
|
59
|
-
"updated_time": "2012-11-07T02:04:16+0000",
|
55
|
+
},
|
56
|
+
"type": "status",
|
57
|
+
"status_type": "mobile_status_update",
|
58
|
+
"created_time": "2012-11-07T02:04:16+0000",
|
59
|
+
"updated_time": "2012-11-07T02:04:16+0000",
|
60
60
|
"comments": {
|
61
61
|
"count": 0
|
62
|
-
},
|
62
|
+
},
|
63
63
|
"is_published": true
|
64
|
-
},
|
64
|
+
},
|
65
65
|
{
|
66
|
-
"id": "117513961602338_274085326039445",
|
66
|
+
"id": "117513961602338_274085326039445",
|
67
67
|
"from": {
|
68
|
-
"name": "FbGraph",
|
69
|
-
"category": "Software",
|
68
|
+
"name": "FbGraph",
|
69
|
+
"category": "Software",
|
70
70
|
"id": "117513961602338"
|
71
|
-
},
|
72
|
-
"message": "I have no idea how to support this.\nArel for fb_graph??\nhttps://developers.facebook.com/docs/reference/api/field_expansion/",
|
73
|
-
"link": "https://developers.facebook.com/docs/reference/api/field_expansion/",
|
74
|
-
"name": "https://developers.facebook.com/docs/reference/api/field_expansion/",
|
75
|
-
"caption": "developers.facebook.com",
|
76
|
-
"icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
|
71
|
+
},
|
72
|
+
"message": "I have no idea how to support this.\nArel for fb_graph??\nhttps://developers.facebook.com/docs/reference/api/field_expansion/",
|
73
|
+
"link": "https://developers.facebook.com/docs/reference/api/field_expansion/",
|
74
|
+
"name": "https://developers.facebook.com/docs/reference/api/field_expansion/",
|
75
|
+
"caption": "developers.facebook.com",
|
76
|
+
"icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
|
77
77
|
"actions": [
|
78
78
|
{
|
79
|
-
"name": "Comment",
|
79
|
+
"name": "Comment",
|
80
80
|
"link": "https://www.facebook.com/117513961602338/posts/274085326039445"
|
81
|
-
},
|
81
|
+
},
|
82
82
|
{
|
83
|
-
"name": "Like",
|
83
|
+
"name": "Like",
|
84
84
|
"link": "https://www.facebook.com/117513961602338/posts/274085326039445"
|
85
85
|
}
|
86
|
-
],
|
86
|
+
],
|
87
87
|
"privacy": {
|
88
|
-
"description": "Public",
|
88
|
+
"description": "Public",
|
89
89
|
"value": "EVERYONE"
|
90
|
-
},
|
91
|
-
"type": "link",
|
92
|
-
"status_type": "shared_story",
|
93
|
-
"created_time": "2012-09-02T17:42:08+0000",
|
94
|
-
"updated_time": "2012-09-02T17:42:08+0000",
|
90
|
+
},
|
91
|
+
"type": "link",
|
92
|
+
"status_type": "shared_story",
|
93
|
+
"created_time": "2012-09-02T17:42:08+0000",
|
94
|
+
"updated_time": "2012-09-02T17:42:08+0000",
|
95
95
|
"likes": {
|
96
96
|
"data": [
|
97
97
|
{
|
98
|
-
"name": "Benny Lin",
|
98
|
+
"name": "Benny Lin",
|
99
99
|
"id": "1684542911"
|
100
100
|
}
|
101
|
-
],
|
101
|
+
],
|
102
102
|
"count": 1
|
103
|
-
},
|
103
|
+
},
|
104
104
|
"comments": {
|
105
105
|
"count": 0
|
106
|
-
},
|
106
|
+
},
|
107
107
|
"is_published": true
|
108
|
-
},
|
108
|
+
},
|
109
109
|
{
|
110
|
-
"id": "117513961602338_270322719752153",
|
110
|
+
"id": "117513961602338_270322719752153",
|
111
111
|
"from": {
|
112
|
-
"name": "FbGraph",
|
113
|
-
"category": "Software",
|
112
|
+
"name": "FbGraph",
|
113
|
+
"category": "Software",
|
114
114
|
"id": "117513961602338"
|
115
|
-
},
|
116
|
-
"message": "You can send App Notifications using fb_graph v2.4.20.\nhttps://github.com/nov/fb_graph/wiki/notifications",
|
117
|
-
"picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQAQcwCcAz2hGLi8&w=90&h=90&url=https%3A%2F%2Fa248.e.akamai.net%2Fassets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png%3F1345673561",
|
118
|
-
"link": "https://github.com/nov/fb_graph/wiki/notifications",
|
119
|
-
"name": "fb_graph",
|
120
|
-
"caption": "github.com",
|
121
|
-
"description": "A full-stack Facebook Graph API wrapper in Ruby. Contribute to fb_graph development by creating an account on GitHub.",
|
122
|
-
"icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
|
115
|
+
},
|
116
|
+
"message": "You can send App Notifications using fb_graph v2.4.20.\nhttps://github.com/nov/fb_graph/wiki/notifications",
|
117
|
+
"picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQAQcwCcAz2hGLi8&w=90&h=90&url=https%3A%2F%2Fa248.e.akamai.net%2Fassets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png%3F1345673561",
|
118
|
+
"link": "https://github.com/nov/fb_graph/wiki/notifications",
|
119
|
+
"name": "fb_graph",
|
120
|
+
"caption": "github.com",
|
121
|
+
"description": "A full-stack Facebook Graph API wrapper in Ruby. Contribute to fb_graph development by creating an account on GitHub.",
|
122
|
+
"icon": "https://s-static.ak.facebook.com/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
|
123
123
|
"actions": [
|
124
124
|
{
|
125
|
-
"name": "Comment",
|
125
|
+
"name": "Comment",
|
126
126
|
"link": "https://www.facebook.com/117513961602338/posts/270322719752153"
|
127
|
-
},
|
127
|
+
},
|
128
128
|
{
|
129
|
-
"name": "Like",
|
129
|
+
"name": "Like",
|
130
130
|
"link": "https://www.facebook.com/117513961602338/posts/270322719752153"
|
131
131
|
}
|
132
|
-
],
|
132
|
+
],
|
133
133
|
"privacy": {
|
134
|
-
"description": "Public",
|
134
|
+
"description": "Public",
|
135
135
|
"value": "EVERYONE"
|
136
|
-
},
|
137
|
-
"type": "link",
|
138
|
-
"status_type": "shared_story",
|
139
|
-
"created_time": "2012-09-02T17:33:59+0000",
|
140
|
-
"updated_time": "2012-09-02T17:33:59+0000",
|
136
|
+
},
|
137
|
+
"type": "link",
|
138
|
+
"status_type": "shared_story",
|
139
|
+
"created_time": "2012-09-02T17:33:59+0000",
|
140
|
+
"updated_time": "2012-09-02T17:33:59+0000",
|
141
141
|
"likes": {
|
142
142
|
"data": [
|
143
143
|
{
|
144
|
-
"name": "Benny Lin",
|
144
|
+
"name": "Benny Lin",
|
145
145
|
"id": "1684542911"
|
146
|
-
},
|
146
|
+
},
|
147
147
|
{
|
148
|
-
"name": "Arun Kumar",
|
148
|
+
"name": "Arun Kumar",
|
149
149
|
"id": "100001286076940"
|
150
|
-
},
|
150
|
+
},
|
151
151
|
{
|
152
|
-
"name": "Ryan Felton",
|
152
|
+
"name": "Ryan Felton",
|
153
153
|
"id": "697922812"
|
154
154
|
}
|
155
|
-
],
|
155
|
+
],
|
156
156
|
"count": 3
|
157
|
-
},
|
157
|
+
},
|
158
158
|
"comments": {
|
159
159
|
"count": 0
|
160
|
-
},
|
160
|
+
},
|
161
161
|
"is_published": true
|
162
162
|
}
|
163
|
-
],
|
163
|
+
],
|
164
164
|
"paging": {
|
165
|
-
"previous": "https://graph.facebook.com/117513961602338/promotable_posts?limit=25&since=1352473200",
|
165
|
+
"previous": "https://graph.facebook.com/117513961602338/promotable_posts?limit=25&since=1352473200",
|
166
166
|
"next": "https://graph.facebook.com/117513961602338/promotable_posts?limit=25&until=1346607238"
|
167
167
|
}
|
168
168
|
}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"data": [
|
3
3
|
{
|
4
|
-
"id": "117513961602338/tabs/wall",
|
5
|
-
"name": "Wall",
|
6
|
-
"link": "https://www.facebook.com/FbGraph?sk=wall",
|
7
|
-
"is_permanent": true,
|
8
|
-
"position": 0,
|
4
|
+
"id": "117513961602338/tabs/wall",
|
5
|
+
"name": "Wall",
|
6
|
+
"link": "https://www.facebook.com/FbGraph?sk=wall",
|
7
|
+
"is_permanent": true,
|
8
|
+
"position": 0,
|
9
9
|
"type": "profile_tab"
|
10
10
|
}
|
11
11
|
]
|