social_profile 0.2.2 → 0.3.0
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.
- checksums.yaml +4 -4
- data/lib/social_profile/people/facebook.rb +33 -5
- data/lib/social_profile/people/instagram.rb +21 -0
- data/lib/social_profile/people/vkontakte.rb +21 -0
- data/lib/social_profile/person.rb +1 -0
- data/lib/social_profile/version.rb +1 -1
- data/lib/social_profile.rb +1 -0
- data/social_profile.gemspec +2 -1
- data/spec/mock_json/facebook/mutual_friends.json +1008 -0
- data/spec/mock_json/instagram/last_posts.json +367 -0
- data/spec/mock_json/vkontakte/mutual_friends.json +3828 -0
- data/spec/mock_json/vkontakte/post.json +74 -0
- data/spec/people/facebook_spec.rb +13 -4
- data/spec/people/instagram_spec.rb +27 -0
- data/spec/people/vkontakte_spec.rb +15 -0
- metadata +46 -20
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
{
|
|
2
|
+
"pagination": {},
|
|
3
|
+
"meta": {
|
|
4
|
+
"code": 200
|
|
5
|
+
},
|
|
6
|
+
"data": [
|
|
7
|
+
{
|
|
8
|
+
"attribution": null,
|
|
9
|
+
"tags": [
|
|
10
|
+
"мійпапасамийсильний"
|
|
11
|
+
],
|
|
12
|
+
"type": "image",
|
|
13
|
+
"location": {
|
|
14
|
+
"latitude": 50.4414902,
|
|
15
|
+
"name": "СК Меридиан",
|
|
16
|
+
"longitude": 30.4197006,
|
|
17
|
+
"id": 243182346
|
|
18
|
+
},
|
|
19
|
+
"comments": {
|
|
20
|
+
"count": 3,
|
|
21
|
+
"data": [
|
|
22
|
+
{
|
|
23
|
+
"created_time": "1446912459",
|
|
24
|
+
"text": "Коли твою таку побачимо?))",
|
|
25
|
+
"from": {
|
|
26
|
+
"username": "kirstokovsky",
|
|
27
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xat1/t51.2885-19/11370994_538666132949244_1844000833_a.jpg",
|
|
28
|
+
"id": "262260429",
|
|
29
|
+
"full_name": "Kirill Stokovsky"
|
|
30
|
+
},
|
|
31
|
+
"id": "1113104843544535820"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"created_time": "1446913727",
|
|
35
|
+
"text": "@kirstokovsky ніколи, я не фанат таких фізичних мук свого організму",
|
|
36
|
+
"from": {
|
|
37
|
+
"username": "pavel_galeta",
|
|
38
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
39
|
+
"id": "31973911",
|
|
40
|
+
"full_name": "pavel galeta"
|
|
41
|
+
},
|
|
42
|
+
"id": "1113115483025777301"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"created_time": "1446915050",
|
|
46
|
+
"text": ":)",
|
|
47
|
+
"from": {
|
|
48
|
+
"username": "kirstokovsky",
|
|
49
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xat1/t51.2885-19/11370994_538666132949244_1844000833_a.jpg",
|
|
50
|
+
"id": "262260429",
|
|
51
|
+
"full_name": "Kirill Stokovsky"
|
|
52
|
+
},
|
|
53
|
+
"id": "1113126580046864968"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"filter": "Reyes",
|
|
58
|
+
"created_time": "1446905193",
|
|
59
|
+
"link": "https://instagram.com/p/9yU4bOvSJ-/",
|
|
60
|
+
"likes": {
|
|
61
|
+
"count": 6,
|
|
62
|
+
"data": [
|
|
63
|
+
{
|
|
64
|
+
"username": "kirstokovsky",
|
|
65
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xat1/t51.2885-19/11370994_538666132949244_1844000833_a.jpg",
|
|
66
|
+
"id": "262260429",
|
|
67
|
+
"full_name": "Kirill Stokovsky"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"username": "sasha_zik",
|
|
71
|
+
"profile_picture": "https://igcdn-photos-f-a.akamaihd.net/hphotos-ak-xap1/t51.2885-19/11356511_420469374800181_859776400_a.jpg",
|
|
72
|
+
"id": "12015599",
|
|
73
|
+
"full_name": "Саша Тарасенко"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"username": "olkin_ilina",
|
|
77
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xft1/t51.2885-19/11821926_797587310356775_1035973940_a.jpg",
|
|
78
|
+
"id": "523900597",
|
|
79
|
+
"full_name": "Ольга"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"username": "irina_komornaya",
|
|
83
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xtf1/t51.2885-19/11849263_1485901365064629_846289179_a.jpg",
|
|
84
|
+
"id": "428099167",
|
|
85
|
+
"full_name": "Ирина Коморная"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"images": {
|
|
90
|
+
"low_resolution": {
|
|
91
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xta1/t51.2885-15/s320x320/e35/12231041_1003762189674923_2116127513_n.jpg",
|
|
92
|
+
"width": 320,
|
|
93
|
+
"height": 320
|
|
94
|
+
},
|
|
95
|
+
"thumbnail": {
|
|
96
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xta1/t51.2885-15/s150x150/e35/12231041_1003762189674923_2116127513_n.jpg",
|
|
97
|
+
"width": 150,
|
|
98
|
+
"height": 150
|
|
99
|
+
},
|
|
100
|
+
"standard_resolution": {
|
|
101
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xta1/t51.2885-15/s640x640/sh0.08/e35/12231041_1003762189674923_2116127513_n.jpg",
|
|
102
|
+
"width": 640,
|
|
103
|
+
"height": 640
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"users_in_photo": [],
|
|
107
|
+
"caption": {
|
|
108
|
+
"created_time": "1446905193",
|
|
109
|
+
"text": "Взяв 150 кг, зайняв перше місце у своїй категорії. #мійпапасамийсильний",
|
|
110
|
+
"from": {
|
|
111
|
+
"username": "pavel_galeta",
|
|
112
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
113
|
+
"id": "31973911",
|
|
114
|
+
"full_name": "pavel galeta"
|
|
115
|
+
},
|
|
116
|
+
"id": "1113043898898129629"
|
|
117
|
+
},
|
|
118
|
+
"user_has_liked": false,
|
|
119
|
+
"id": "1113043896373158526_31973911",
|
|
120
|
+
"user": {
|
|
121
|
+
"username": "pavel_galeta",
|
|
122
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
123
|
+
"id": "31973911",
|
|
124
|
+
"full_name": "pavel galeta"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"attribution": null,
|
|
129
|
+
"tags": [],
|
|
130
|
+
"type": "image",
|
|
131
|
+
"location": null,
|
|
132
|
+
"comments": {
|
|
133
|
+
"count": 0,
|
|
134
|
+
"data": []
|
|
135
|
+
},
|
|
136
|
+
"filter": "Gingham",
|
|
137
|
+
"created_time": "1445715591",
|
|
138
|
+
"link": "https://instagram.com/p/9O35ScvSIv/",
|
|
139
|
+
"likes": {
|
|
140
|
+
"count": 15,
|
|
141
|
+
"data": [
|
|
142
|
+
{
|
|
143
|
+
"username": "talita_t",
|
|
144
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpa1/t51.2885-19/10666071_663782803767138_86719687_a.jpg",
|
|
145
|
+
"id": "574888417",
|
|
146
|
+
"full_name": ""
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"username": "mariwa_rom",
|
|
150
|
+
"profile_picture": "https://igcdn-photos-h-a.akamaihd.net/hphotos-ak-xpa1/t51.2885-19/11326991_1607719562804551_1870046892_a.jpg",
|
|
151
|
+
"id": "843606218",
|
|
152
|
+
"full_name": "Marina"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"username": "rynusya",
|
|
156
|
+
"profile_picture": "https://igcdn-photos-f-a.akamaihd.net/hphotos-ak-xtp1/t51.2885-19/s150x150/12120271_459331997584325_993905331_a.jpg",
|
|
157
|
+
"id": "693691187",
|
|
158
|
+
"full_name": "Ирина Анурина"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"username": "olkin_ilina",
|
|
162
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xft1/t51.2885-19/11821926_797587310356775_1035973940_a.jpg",
|
|
163
|
+
"id": "523900597",
|
|
164
|
+
"full_name": "Ольга"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"images": {
|
|
169
|
+
"low_resolution": {
|
|
170
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xtf1/t51.2885-15/s320x320/e35/12144171_171652909846005_1021399292_n.jpg",
|
|
171
|
+
"width": 320,
|
|
172
|
+
"height": 320
|
|
173
|
+
},
|
|
174
|
+
"thumbnail": {
|
|
175
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xtf1/t51.2885-15/s150x150/e35/12144171_171652909846005_1021399292_n.jpg",
|
|
176
|
+
"width": 150,
|
|
177
|
+
"height": 150
|
|
178
|
+
},
|
|
179
|
+
"standard_resolution": {
|
|
180
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xtf1/t51.2885-15/s640x640/sh0.08/e35/12144171_171652909846005_1021399292_n.jpg",
|
|
181
|
+
"width": 640,
|
|
182
|
+
"height": 640
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"users_in_photo": [],
|
|
186
|
+
"caption": {
|
|
187
|
+
"created_time": "1445715591",
|
|
188
|
+
"text": "Ліза, вибач, але ти найкрутіша іграшка сьогодні",
|
|
189
|
+
"from": {
|
|
190
|
+
"username": "pavel_galeta",
|
|
191
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
192
|
+
"id": "31973911",
|
|
193
|
+
"full_name": "pavel galeta"
|
|
194
|
+
},
|
|
195
|
+
"id": "1103064790864830922"
|
|
196
|
+
},
|
|
197
|
+
"user_has_liked": false,
|
|
198
|
+
"id": "1103064788130144815_31973911",
|
|
199
|
+
"user": {
|
|
200
|
+
"username": "pavel_galeta",
|
|
201
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
202
|
+
"id": "31973911",
|
|
203
|
+
"full_name": "pavel galeta"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"attribution": null,
|
|
208
|
+
"tags": [
|
|
209
|
+
"noglamour"
|
|
210
|
+
],
|
|
211
|
+
"type": "image",
|
|
212
|
+
"location": null,
|
|
213
|
+
"comments": {
|
|
214
|
+
"count": 0,
|
|
215
|
+
"data": []
|
|
216
|
+
},
|
|
217
|
+
"filter": "Perpetua",
|
|
218
|
+
"created_time": "1445715257",
|
|
219
|
+
"link": "https://instagram.com/p/9O3QjkvSHE/",
|
|
220
|
+
"likes": {
|
|
221
|
+
"count": 9,
|
|
222
|
+
"data": [
|
|
223
|
+
{
|
|
224
|
+
"username": "talita_t",
|
|
225
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpa1/t51.2885-19/10666071_663782803767138_86719687_a.jpg",
|
|
226
|
+
"id": "574888417",
|
|
227
|
+
"full_name": ""
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"username": "komashka_o",
|
|
231
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xta1/t51.2885-19/11326000_618670594938721_762606310_a.jpg",
|
|
232
|
+
"id": "344925642",
|
|
233
|
+
"full_name": "Елена Комашко"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"username": "olkin_ilina",
|
|
237
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xft1/t51.2885-19/11821926_797587310356775_1035973940_a.jpg",
|
|
238
|
+
"id": "523900597",
|
|
239
|
+
"full_name": "Ольга"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"username": "sasha_zik",
|
|
243
|
+
"profile_picture": "https://igcdn-photos-f-a.akamaihd.net/hphotos-ak-xap1/t51.2885-19/11356511_420469374800181_859776400_a.jpg",
|
|
244
|
+
"id": "12015599",
|
|
245
|
+
"full_name": "Саша Тарасенко"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"images": {
|
|
250
|
+
"low_resolution": {
|
|
251
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xpa1/t51.2885-15/s320x320/e35/10665529_1511707165788571_854393418_n.jpg",
|
|
252
|
+
"width": 320,
|
|
253
|
+
"height": 320
|
|
254
|
+
},
|
|
255
|
+
"thumbnail": {
|
|
256
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xpa1/t51.2885-15/s150x150/e35/10665529_1511707165788571_854393418_n.jpg",
|
|
257
|
+
"width": 150,
|
|
258
|
+
"height": 150
|
|
259
|
+
},
|
|
260
|
+
"standard_resolution": {
|
|
261
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xpa1/t51.2885-15/s640x640/sh0.08/e35/10665529_1511707165788571_854393418_n.jpg",
|
|
262
|
+
"width": 640,
|
|
263
|
+
"height": 640
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"users_in_photo": [],
|
|
267
|
+
"caption": {
|
|
268
|
+
"created_time": "1445715257",
|
|
269
|
+
"text": "Учу з малечку, що потрібно робити із журналом Ліза. #noglamour",
|
|
270
|
+
"from": {
|
|
271
|
+
"username": "pavel_galeta",
|
|
272
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
273
|
+
"id": "31973911",
|
|
274
|
+
"full_name": "pavel galeta"
|
|
275
|
+
},
|
|
276
|
+
"id": "1103061992089657561"
|
|
277
|
+
},
|
|
278
|
+
"user_has_liked": false,
|
|
279
|
+
"id": "1103061989019427268_31973911",
|
|
280
|
+
"user": {
|
|
281
|
+
"username": "pavel_galeta",
|
|
282
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
283
|
+
"id": "31973911",
|
|
284
|
+
"full_name": "pavel galeta"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"attribution": null,
|
|
289
|
+
"tags": [],
|
|
290
|
+
"type": "image",
|
|
291
|
+
"location": null,
|
|
292
|
+
"comments": {
|
|
293
|
+
"count": 0,
|
|
294
|
+
"data": []
|
|
295
|
+
},
|
|
296
|
+
"filter": "Normal",
|
|
297
|
+
"created_time": "1444840853",
|
|
298
|
+
"link": "https://instagram.com/p/80zdzbPSMR/",
|
|
299
|
+
"likes": {
|
|
300
|
+
"count": 9,
|
|
301
|
+
"data": [
|
|
302
|
+
{
|
|
303
|
+
"username": "komashka_o",
|
|
304
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xta1/t51.2885-19/11326000_618670594938721_762606310_a.jpg",
|
|
305
|
+
"id": "344925642",
|
|
306
|
+
"full_name": "Елена Комашко"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"username": "sasha_zik",
|
|
310
|
+
"profile_picture": "https://igcdn-photos-f-a.akamaihd.net/hphotos-ak-xap1/t51.2885-19/11356511_420469374800181_859776400_a.jpg",
|
|
311
|
+
"id": "12015599",
|
|
312
|
+
"full_name": "Саша Тарасенко"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"username": "kirstokovsky",
|
|
316
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xat1/t51.2885-19/11370994_538666132949244_1844000833_a.jpg",
|
|
317
|
+
"id": "262260429",
|
|
318
|
+
"full_name": "Kirill Stokovsky"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"username": "marissalion",
|
|
322
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpt1/t51.2885-19/11363935_1617863501799255_1512104377_a.jpg",
|
|
323
|
+
"id": "242390069",
|
|
324
|
+
"full_name": "Marina Kobzar"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"images": {
|
|
329
|
+
"low_resolution": {
|
|
330
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xpt1/t51.2885-15/s320x320/e35/12080663_1500546780243064_465120260_n.jpg",
|
|
331
|
+
"width": 320,
|
|
332
|
+
"height": 320
|
|
333
|
+
},
|
|
334
|
+
"thumbnail": {
|
|
335
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xpt1/t51.2885-15/s150x150/e35/12080663_1500546780243064_465120260_n.jpg",
|
|
336
|
+
"width": 150,
|
|
337
|
+
"height": 150
|
|
338
|
+
},
|
|
339
|
+
"standard_resolution": {
|
|
340
|
+
"url": "https://scontent.cdninstagram.com/hphotos-xpt1/t51.2885-15/s640x640/sh0.08/e35/12080663_1500546780243064_465120260_n.jpg",
|
|
341
|
+
"width": 640,
|
|
342
|
+
"height": 640
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"users_in_photo": [],
|
|
346
|
+
"caption": {
|
|
347
|
+
"created_time": "1444840853",
|
|
348
|
+
"text": "Прощання із літніми френдами",
|
|
349
|
+
"from": {
|
|
350
|
+
"username": "pavel_galeta",
|
|
351
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
352
|
+
"id": "31973911",
|
|
353
|
+
"full_name": "pavel galeta"
|
|
354
|
+
},
|
|
355
|
+
"id": "1095726962375991656"
|
|
356
|
+
},
|
|
357
|
+
"user_has_liked": false,
|
|
358
|
+
"id": "1095726957812589329_31973911",
|
|
359
|
+
"user": {
|
|
360
|
+
"username": "pavel_galeta",
|
|
361
|
+
"profile_picture": "https://scontent.cdninstagram.com/hphotos-xpf1/t51.2885-19/11906329_960233084022564_1448528159_a.jpg",
|
|
362
|
+
"id": "31973911",
|
|
363
|
+
"full_name": "pavel galeta"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|