fb_graph 1.0.7 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.7
1
+ 1.1.0
data/fb_graph.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "1.0.7"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nov matake"]
12
- s.date = %q{2010-11-23}
12
+ s.date = %q{2010-12-02}
13
13
  s.description = %q{A full-stack Facebook Graph API wrapper in Ruby.}
14
14
  s.email = %q{nov@matake.jp}
15
15
  s.extra_rdoc_files = [
@@ -103,6 +103,8 @@ Gem::Specification.new do |s|
103
103
  "spec/fake_json/groups/members/emacs_private.json",
104
104
  "spec/fake_json/pages/checkins/gowalla_private.json",
105
105
  "spec/fake_json/pages/checkins/gowalla_public.json",
106
+ "spec/fake_json/pages/insights/FbGraph_private.json",
107
+ "spec/fake_json/pages/insights/FbGraph_public.json",
106
108
  "spec/fake_json/pages/notes/post_with_valid_access_token.json",
107
109
  "spec/fake_json/pages/platform_private.json",
108
110
  "spec/fake_json/pages/platform_public.json",
@@ -188,6 +190,7 @@ Gem::Specification.new do |s|
188
190
  "spec/fb_graph/connections/friends_spec.rb",
189
191
  "spec/fb_graph/connections/groups_spec.rb",
190
192
  "spec/fb_graph/connections/home_spec.rb",
193
+ "spec/fb_graph/connections/insights_spec.rb",
191
194
  "spec/fb_graph/connections/interests_spec.rb",
192
195
  "spec/fb_graph/connections/invited_spec.rb",
193
196
  "spec/fb_graph/connections/likes_spec.rb",
@@ -252,6 +255,7 @@ Gem::Specification.new do |s|
252
255
  "spec/fb_graph/connections/friends_spec.rb",
253
256
  "spec/fb_graph/connections/groups_spec.rb",
254
257
  "spec/fb_graph/connections/home_spec.rb",
258
+ "spec/fb_graph/connections/insights_spec.rb",
255
259
  "spec/fb_graph/connections/interests_spec.rb",
256
260
  "spec/fb_graph/connections/invited_spec.rb",
257
261
  "spec/fb_graph/connections/likes_spec.rb",
@@ -1,18 +1,18 @@
1
1
  module FbGraph
2
2
  class Application < Node
3
+ include Connections::Albums
4
+ include Connections::Events
3
5
  include Connections::Feed
4
- include Connections::Posts
5
- include Connections::Picture
6
- include Connections::Tagged
6
+ include Connections::Insights
7
7
  include Connections::Links
8
+ include Connections::Notes
8
9
  include Connections::Photos
9
- include Connections::Albums
10
+ include Connections::Picture
11
+ include Connections::Posts
10
12
  include Connections::Statuses
11
- include Connections::Videos
12
- include Connections::Notes
13
- include Connections::Events
14
13
  include Connections::Subscriptions
15
- include Connections::Insights
14
+ include Connections::Tagged
15
+ include Connections::Videos
16
16
 
17
17
  attr_accessor :name, :description, :category, :link, :secret
18
18
 
@@ -19,7 +19,6 @@ module FbGraph
19
19
  end
20
20
 
21
21
  def previous(_options_ = {})
22
- puts self.options.inspect
23
22
  if self.collection.previous.present?
24
23
  self.owner.send(self.connection, self.options.merge(_options_).merge(self.collection.previous))
25
24
  else
@@ -2,10 +2,11 @@ module FbGraph
2
2
  module Connections
3
3
  module Insights
4
4
  def insights(options = {})
5
- options[:access_token] ||= self.access_token || get_access_token(options[:secret])
5
+ options[:access_token] ||= self.access_token
6
+ options[:access_token] ||= get_access_token(options[:secret]) if respond_to?(:get_access_token)
6
7
  insights = self.connection(:insights, options)
7
8
  insights.map! do |insight|
8
- Insight.new(insight.merge(:access_token => options[:access_token]))
9
+ Insight.new(insight.delete(:id), insight.merge(:access_token => options[:access_token]))
9
10
  end
10
11
  end
11
12
  end
@@ -1,10 +1,11 @@
1
1
  module FbGraph
2
- class Insight
2
+ class Insight < Node
3
3
  include FbGraph::Comparison
4
4
 
5
5
  attr_accessor :name, :period, :values, :description
6
6
 
7
- def initialize(attributes = {})
7
+ def initialize(identifier, attributes = {})
8
+ super
8
9
  @name = attributes[:name]
9
10
  @period = attributes[:period]
10
11
  @values = attributes[:values].collect(&:with_indifferent_access)
data/lib/fb_graph/node.rb CHANGED
@@ -105,7 +105,7 @@ module FbGraph
105
105
  _response_ = JSON.parse(response.body).with_indifferent_access
106
106
  if _response_[:error]
107
107
  case _response_[:error][:type]
108
- when 'OAuthAccessTokenException', 'QueryParseException', 'OAuthInvalidRequestException', 'OAuthInvalidTokenException'
108
+ when 'OAuthAccessTokenException', 'QueryParseException', 'OAuthInvalidRequestException', 'OAuthInvalidTokenException', 'OAuthException'
109
109
  raise FbGraph::Unauthorized.new(_response_[:error][:message])
110
110
  else
111
111
  raise FbGraph::BadRequest.new("#{_response_[:error][:type]} :: #{_response_[:error][:message]}")
data/lib/fb_graph/page.rb CHANGED
@@ -1,19 +1,20 @@
1
1
  module FbGraph
2
2
  class Page < Node
3
+ include Connections::Albums
4
+ include Connections::Checkins
5
+ include Connections::Events
3
6
  include Connections::Feed
4
- include Connections::Picture
5
- include Connections::Tagged
7
+ include Connections::Groups
8
+ include Connections::Insights
6
9
  include Connections::Links
10
+ include Connections::Members
11
+ include Connections::Notes
7
12
  include Connections::Photos
8
- include Connections::Groups
9
- include Connections::Albums
13
+ include Connections::Picture
14
+ include Connections::Posts
10
15
  include Connections::Statuses
16
+ include Connections::Tagged
11
17
  include Connections::Videos
12
- include Connections::Notes
13
- include Connections::Posts
14
- include Connections::Members
15
- include Connections::Events
16
- include Connections::Checkins
17
18
  extend Searchable
18
19
 
19
20
  attr_accessor :name, :username, :link, :category, :founded, :company_overview, :mission, :products, :fan_count, :location
data/lib/fb_graph/user.rb CHANGED
@@ -1,34 +1,34 @@
1
1
  module FbGraph
2
2
  class User < Node
3
- include Connections::Home
3
+ include Connections::Accounts
4
+ include Connections::Activities
5
+ include Connections::Albums
6
+ include Connections::Books
7
+ include Connections::Checkins
8
+ include Connections::Events
4
9
  include Connections::Feed
5
- include Connections::Tagged
6
- include Connections::Posts
7
- include Connections::Picture
8
10
  include Connections::Friends
9
- include Connections::Activities
11
+ include Connections::Groups
12
+ include Connections::Home
10
13
  include Connections::Interests
11
- include Connections::Music
12
- include Connections::Books
13
- include Connections::Movies
14
- include Connections::Television
15
14
  include Connections::Likes
16
- include Connections::Photos
17
- include Connections::Albums
18
- include Connections::Videos
19
- include Connections::Groups
20
- include Connections::Statuses
21
15
  include Connections::Links
16
+ include Connections::Movies
17
+ include Connections::Music
22
18
  include Connections::Notes
23
- include Connections::Events
19
+ include Connections::Photos
20
+ include Connections::Picture
21
+ include Connections::Posts
22
+ include Connections::Statuses
23
+ include Connections::Tagged
24
+ include Connections::Television
25
+ include Connections::Videos
24
26
  # --
25
27
  # TODO
26
28
  # include Connections::Inbox
27
29
  # include Connections::Outbox
28
30
  # include Connections::Updates
29
31
  # ++
30
- include Connections::Accounts
31
- include Connections::Checkins
32
32
  extend Searchable
33
33
 
34
34
  attr_accessor :first_name, :last_name, :name, :link, :about, :birthday, :work, :education, :email, :website, :hometown, :location, :bio, :quotes, :gender, :interested_in, :meeting_for, :relationship_status, :religion, :political, :verified, :significant_other, :timezone, :updated_time
@@ -0,0 +1,858 @@
1
+ {
2
+ "data": [
3
+ {
4
+ "id": "117513961602338/insights/page_fan_adds_unique/day",
5
+ "name": "page_fan_adds_unique",
6
+ "period": "day",
7
+ "values": [
8
+ {
9
+ "value": 1,
10
+ "end_time": "2010-11-27T08:00:00+0000"
11
+ }
12
+ ],
13
+ "description": "Daily New Likes of your Page (Unique Users)"
14
+ },
15
+ {
16
+ "id": "117513961602338/insights/page_fan_adds/day",
17
+ "name": "page_fan_adds",
18
+ "period": "day",
19
+ "values": [
20
+ {
21
+ "value": 1,
22
+ "end_time": "2010-11-27T08:00:00+0000"
23
+ }
24
+ ],
25
+ "description": "Daily New Likes of your Page (Total Count)"
26
+ },
27
+ {
28
+ "id": "117513961602338/insights/page_fan_removes_unique/day",
29
+ "name": "page_fan_removes_unique",
30
+ "period": "day",
31
+ "values": [
32
+ {
33
+ "value": 0,
34
+ "end_time": "2010-11-27T08:00:00+0000"
35
+ }
36
+ ],
37
+ "description": "Daily Unlikes of your Page (Unique Users)"
38
+ },
39
+ {
40
+ "id": "117513961602338/insights/page_fan_removes/day",
41
+ "name": "page_fan_removes",
42
+ "period": "day",
43
+ "values": [
44
+ {
45
+ "value": 0,
46
+ "end_time": "2010-11-27T08:00:00+0000"
47
+ }
48
+ ],
49
+ "description": "Daily Unlikes of your Page (Total Count)"
50
+ },
51
+ {
52
+ "id": "117513961602338/insights/page_fan_adds_source_unique/day",
53
+ "name": "page_fan_adds_source_unique",
54
+ "period": "day",
55
+ "values": [
56
+ {
57
+ "value": {
58
+ "fan_page": 1
59
+ },
60
+ "end_time": "2010-11-27T08:00:00+0000"
61
+ }
62
+ ],
63
+ "description": "Daily Users can like your page in many different places, both within Facebook and on other websites. These are the most common places where users like your Page. (Unique Users)"
64
+ },
65
+ {
66
+ "id": "117513961602338/insights/page_fan_adds_source/day",
67
+ "name": "page_fan_adds_source",
68
+ "period": "day",
69
+ "values": [
70
+ {
71
+ "value": {
72
+ "fan_page": 1
73
+ },
74
+ "end_time": "2010-11-27T08:00:00+0000"
75
+ }
76
+ ],
77
+ "description": "Daily Users can like your page in many different places, both within Facebook and on other websites. These are the most common places where users like your Page. (Total Count)"
78
+ },
79
+ {
80
+ "id": "117513961602338/insights/page_fan_removes_source_unique/day",
81
+ "name": "page_fan_removes_source_unique",
82
+ "period": "day",
83
+ "values": [
84
+ {
85
+ "value": [
86
+
87
+ ],
88
+ "end_time": "2010-11-27T08:00:00+0000"
89
+ }
90
+ ],
91
+ "description": "Daily Source of Unlikes of your Page (Unique Users)"
92
+ },
93
+ {
94
+ "id": "117513961602338/insights/page_fan_removes_source/day",
95
+ "name": "page_fan_removes_source",
96
+ "period": "day",
97
+ "values": [
98
+ {
99
+ "value": [
100
+
101
+ ],
102
+ "end_time": "2010-11-27T08:00:00+0000"
103
+ }
104
+ ],
105
+ "description": "Daily Source of Unlikes of your Page (Total Count)"
106
+ },
107
+ {
108
+ "id": "117513961602338/insights/page_comment_adds_unique/day",
109
+ "name": "page_comment_adds_unique",
110
+ "period": "day",
111
+ "values": [
112
+ {
113
+ "value": 0,
114
+ "end_time": "2010-11-27T08:00:00+0000"
115
+ }
116
+ ],
117
+ "description": "Daily Comments created on your Page's content (Unique Users)"
118
+ },
119
+ {
120
+ "id": "117513961602338/insights/page_comment_adds/day",
121
+ "name": "page_comment_adds",
122
+ "period": "day",
123
+ "values": [
124
+ {
125
+ "value": 0,
126
+ "end_time": "2010-11-27T08:00:00+0000"
127
+ }
128
+ ],
129
+ "description": "Daily Comments created on your Page's content (Total Count)"
130
+ },
131
+ {
132
+ "id": "117513961602338/insights/page_comment_removes_unique/day",
133
+ "name": "page_comment_removes_unique",
134
+ "period": "day",
135
+ "values": [
136
+ {
137
+ "value": 0,
138
+ "end_time": "2010-11-27T08:00:00+0000"
139
+ }
140
+ ],
141
+ "description": "Daily Comments deleted on your Page's content (Unique Users)"
142
+ },
143
+ {
144
+ "id": "117513961602338/insights/page_comment_removes/day",
145
+ "name": "page_comment_removes",
146
+ "period": "day",
147
+ "values": [
148
+ {
149
+ "value": 0,
150
+ "end_time": "2010-11-27T08:00:00+0000"
151
+ }
152
+ ],
153
+ "description": "Daily Comments deleted on your Page's content (Total Count)"
154
+ },
155
+ {
156
+ "id": "117513961602338/insights/page_comment_adds_source_unique/day",
157
+ "name": "page_comment_adds_source_unique",
158
+ "period": "day",
159
+ "values": [
160
+ {
161
+ "value": [
162
+
163
+ ],
164
+ "end_time": "2010-11-27T08:00:00+0000"
165
+ }
166
+ ],
167
+ "description": "Daily Source of new comments on your Page's content (Unique Users)"
168
+ },
169
+ {
170
+ "id": "117513961602338/insights/page_comment_adds_source/day",
171
+ "name": "page_comment_adds_source",
172
+ "period": "day",
173
+ "values": [
174
+ {
175
+ "value": [
176
+
177
+ ],
178
+ "end_time": "2010-11-27T08:00:00+0000"
179
+ }
180
+ ],
181
+ "description": "Daily Source of new comments on your Page's content (Total Count)"
182
+ },
183
+ {
184
+ "id": "117513961602338/insights/page_comment_removes_source_unique/day",
185
+ "name": "page_comment_removes_source_unique",
186
+ "period": "day",
187
+ "values": [
188
+ {
189
+ "value": [
190
+
191
+ ],
192
+ "end_time": "2010-11-27T08:00:00+0000"
193
+ }
194
+ ],
195
+ "description": "Daily Source of comment deletions on your Page's content (Unique Users)"
196
+ },
197
+ {
198
+ "id": "117513961602338/insights/page_comment_removes_source/day",
199
+ "name": "page_comment_removes_source",
200
+ "period": "day",
201
+ "values": [
202
+ {
203
+ "value": [
204
+
205
+ ],
206
+ "end_time": "2010-11-27T08:00:00+0000"
207
+ }
208
+ ],
209
+ "description": "Daily Source of comment deletions on your Page's content (Total Count)"
210
+ },
211
+ {
212
+ "id": "117513961602338/insights/page_discussions_unique/day",
213
+ "name": "page_discussions_unique",
214
+ "period": "day",
215
+ "values": [
216
+ {
217
+ "value": 0,
218
+ "end_time": "2010-11-27T08:00:00+0000"
219
+ }
220
+ ],
221
+ "description": "Daily Discussions created on your Page's Discussion Board (Unique Users)"
222
+ },
223
+ {
224
+ "id": "117513961602338/insights/page_discussions/day",
225
+ "name": "page_discussions",
226
+ "period": "day",
227
+ "values": [
228
+ {
229
+ "value": 0,
230
+ "end_time": "2010-11-27T08:00:00+0000"
231
+ }
232
+ ],
233
+ "description": "Daily Discussions created on your Page's Discussion Board (Total Count)"
234
+ },
235
+ {
236
+ "id": "117513961602338/insights/page_like_adds_unique/day",
237
+ "name": "page_like_adds_unique",
238
+ "period": "day",
239
+ "values": [
240
+ {
241
+ "value": 0,
242
+ "end_time": "2010-11-27T08:00:00+0000"
243
+ }
244
+ ],
245
+ "description": "Daily Likes of your Page's content (Unique Users)"
246
+ },
247
+ {
248
+ "id": "117513961602338/insights/page_like_adds/day",
249
+ "name": "page_like_adds",
250
+ "period": "day",
251
+ "values": [
252
+ {
253
+ "value": 0,
254
+ "end_time": "2010-11-27T08:00:00+0000"
255
+ }
256
+ ],
257
+ "description": "Daily Likes of your Page's content (Total Count)"
258
+ },
259
+ {
260
+ "id": "117513961602338/insights/page_like_removes_unique/day",
261
+ "name": "page_like_removes_unique",
262
+ "period": "day",
263
+ "values": [
264
+ {
265
+ "value": 0,
266
+ "end_time": "2010-11-27T08:00:00+0000"
267
+ }
268
+ ],
269
+ "description": "Daily Delete Likes of your Page's content (Unique Users)"
270
+ },
271
+ {
272
+ "id": "117513961602338/insights/page_like_removes/day",
273
+ "name": "page_like_removes",
274
+ "period": "day",
275
+ "values": [
276
+ {
277
+ "value": 0,
278
+ "end_time": "2010-11-27T08:00:00+0000"
279
+ }
280
+ ],
281
+ "description": "Daily Delete Likes of your Page's content (Total Count)"
282
+ },
283
+ {
284
+ "id": "117513961602338/insights/page_like_adds_source_unique/day",
285
+ "name": "page_like_adds_source_unique",
286
+ "period": "day",
287
+ "values": [
288
+ {
289
+ "value": [
290
+
291
+ ],
292
+ "end_time": "2010-11-27T08:00:00+0000"
293
+ }
294
+ ],
295
+ "description": "Daily Source of Likes on your Page's content (Unique Users)"
296
+ },
297
+ {
298
+ "id": "117513961602338/insights/page_like_adds_source/day",
299
+ "name": "page_like_adds_source",
300
+ "period": "day",
301
+ "values": [
302
+ {
303
+ "value": [
304
+
305
+ ],
306
+ "end_time": "2010-11-27T08:00:00+0000"
307
+ }
308
+ ],
309
+ "description": "Daily Source of Likes on your Page's content (Total Count)"
310
+ },
311
+ {
312
+ "id": "117513961602338/insights/page_like_removes_source_unique/day",
313
+ "name": "page_like_removes_source_unique",
314
+ "period": "day",
315
+ "values": [
316
+ {
317
+ "value": [
318
+
319
+ ],
320
+ "end_time": "2010-11-27T08:00:00+0000"
321
+ }
322
+ ],
323
+ "description": "Daily Source of Like deletions on your Page's content (Unique Users)"
324
+ },
325
+ {
326
+ "id": "117513961602338/insights/page_like_removes_source/day",
327
+ "name": "page_like_removes_source",
328
+ "period": "day",
329
+ "values": [
330
+ {
331
+ "value": [
332
+
333
+ ],
334
+ "end_time": "2010-11-27T08:00:00+0000"
335
+ }
336
+ ],
337
+ "description": "Daily Source of Like deletions on your Page's content (Total Count)"
338
+ },
339
+ {
340
+ "id": "117513961602338/insights/page_review_adds_unique/day",
341
+ "name": "page_review_adds_unique",
342
+ "period": "day",
343
+ "values": [
344
+ {
345
+ "value": 0,
346
+ "end_time": "2010-11-27T08:00:00+0000"
347
+ }
348
+ ],
349
+ "description": "Daily New Reviews created for your Page (Unique Users)"
350
+ },
351
+ {
352
+ "id": "117513961602338/insights/page_review_adds/day",
353
+ "name": "page_review_adds",
354
+ "period": "day",
355
+ "values": [
356
+ {
357
+ "value": 0,
358
+ "end_time": "2010-11-27T08:00:00+0000"
359
+ }
360
+ ],
361
+ "description": "Daily New Reviews created for your Page (Total Count)"
362
+ },
363
+ {
364
+ "id": "117513961602338/insights/page_review_modifications_unique/day",
365
+ "name": "page_review_modifications_unique",
366
+ "period": "day",
367
+ "values": [
368
+ {
369
+ "value": 0,
370
+ "end_time": "2010-11-27T08:00:00+0000"
371
+ }
372
+ ],
373
+ "description": "Daily Existing Reviews modified for your Page (Unique Users)"
374
+ },
375
+ {
376
+ "id": "117513961602338/insights/page_review_modifications/day",
377
+ "name": "page_review_modifications",
378
+ "period": "day",
379
+ "values": [
380
+ {
381
+ "value": 0,
382
+ "end_time": "2010-11-27T08:00:00+0000"
383
+ }
384
+ ],
385
+ "description": "Daily Existing Reviews modified for your Page (Total Count)"
386
+ },
387
+ {
388
+ "id": "117513961602338/insights/page_photos_unique/day",
389
+ "name": "page_photos_unique",
390
+ "period": "day",
391
+ "values": [
392
+ {
393
+ "value": 0,
394
+ "end_time": "2010-11-27T08:00:00+0000"
395
+ }
396
+ ],
397
+ "description": "Daily Photos posted to your Page (Unique Users)"
398
+ },
399
+ {
400
+ "id": "117513961602338/insights/page_photos/day",
401
+ "name": "page_photos",
402
+ "period": "day",
403
+ "values": [
404
+ {
405
+ "value": 0,
406
+ "end_time": "2010-11-27T08:00:00+0000"
407
+ }
408
+ ],
409
+ "description": "Daily Photos posted to your Page (Total Count)"
410
+ },
411
+ {
412
+ "id": "117513961602338/insights/page_videos_unique/day",
413
+ "name": "page_videos_unique",
414
+ "period": "day",
415
+ "values": [
416
+ {
417
+ "value": 0,
418
+ "end_time": "2010-11-27T08:00:00+0000"
419
+ }
420
+ ],
421
+ "description": "Daily Videos posted to your Page (Unique Users)"
422
+ },
423
+ {
424
+ "id": "117513961602338/insights/page_videos/day",
425
+ "name": "page_videos",
426
+ "period": "day",
427
+ "values": [
428
+ {
429
+ "value": 0,
430
+ "end_time": "2010-11-27T08:00:00+0000"
431
+ }
432
+ ],
433
+ "description": "Daily Videos posted to your Page (Total Count)"
434
+ },
435
+ {
436
+ "id": "117513961602338/insights/page_wall_posts_unique/day",
437
+ "name": "page_wall_posts_unique",
438
+ "period": "day",
439
+ "values": [
440
+ {
441
+ "value": 0,
442
+ "end_time": "2010-11-27T08:00:00+0000"
443
+ }
444
+ ],
445
+ "description": "Daily Wall posts to your Page's Wall (Unique Users)"
446
+ },
447
+ {
448
+ "id": "117513961602338/insights/page_wall_posts/day",
449
+ "name": "page_wall_posts",
450
+ "period": "day",
451
+ "values": [
452
+ {
453
+ "value": 0,
454
+ "end_time": "2010-11-27T08:00:00+0000"
455
+ }
456
+ ],
457
+ "description": "Daily Wall posts to your Page's Wall (Total Count)"
458
+ },
459
+ {
460
+ "id": "117513961602338/insights/page_wall_posts_source_unique/day",
461
+ "name": "page_wall_posts_source_unique",
462
+ "period": "day",
463
+ "values": [
464
+ {
465
+ "value": [
466
+
467
+ ],
468
+ "end_time": "2010-11-27T08:00:00+0000"
469
+ }
470
+ ],
471
+ "description": "Daily Source of Wall posts to your Page (Unique Users)"
472
+ },
473
+ {
474
+ "id": "117513961602338/insights/page_wall_posts_source/day",
475
+ "name": "page_wall_posts_source",
476
+ "period": "day",
477
+ "values": [
478
+ {
479
+ "value": [
480
+
481
+ ],
482
+ "end_time": "2010-11-27T08:00:00+0000"
483
+ }
484
+ ],
485
+ "description": "Daily Source of Wall posts to your Page (Total Count)"
486
+ },
487
+ {
488
+ "id": "117513961602338/insights/page_views_login_unique/day",
489
+ "name": "page_views_login_unique",
490
+ "period": "day",
491
+ "values": [
492
+ {
493
+ "value": 4,
494
+ "end_time": "2010-11-27T08:00:00+0000"
495
+ }
496
+ ],
497
+ "description": "Daily Page Views from users logged into Facebook (Unique Users)"
498
+ },
499
+ {
500
+ "id": "117513961602338/insights/page_views_login/day",
501
+ "name": "page_views_login",
502
+ "period": "day",
503
+ "values": [
504
+ {
505
+ "value": 10,
506
+ "end_time": "2010-11-27T08:00:00+0000"
507
+ }
508
+ ],
509
+ "description": "Daily Page Views from users logged into Facebook (Total Count)"
510
+ },
511
+ {
512
+ "id": "117513961602338/insights/page_views_logout/day",
513
+ "name": "page_views_logout",
514
+ "period": "day",
515
+ "values": [
516
+ {
517
+ "value": 3,
518
+ "end_time": "2010-11-27T08:00:00+0000"
519
+ }
520
+ ],
521
+ "description": "Daily Page views from users not logged into Facebook (Total Count)"
522
+ },
523
+ {
524
+ "id": "117513961602338/insights/page_views/day",
525
+ "name": "page_views",
526
+ "period": "day",
527
+ "values": [
528
+ {
529
+ "value": 13,
530
+ "end_time": "2010-11-27T08:00:00+0000"
531
+ }
532
+ ],
533
+ "description": "Daily Page views (Total Count)"
534
+ },
535
+ {
536
+ "id": "117513961602338/insights/page_stream_views_unique/day",
537
+ "name": "page_stream_views_unique",
538
+ "period": "day",
539
+ "values": [
540
+ {
541
+ "value": 4,
542
+ "end_time": "2010-11-27T08:00:00+0000"
543
+ }
544
+ ],
545
+ "description": "Daily Impressions of stream stories generated by your Page (Unique Users)"
546
+ },
547
+ {
548
+ "id": "117513961602338/insights/page_stream_views/day",
549
+ "name": "page_stream_views",
550
+ "period": "day",
551
+ "values": [
552
+ {
553
+ "value": 161,
554
+ "end_time": "2010-11-27T08:00:00+0000"
555
+ }
556
+ ],
557
+ "description": "Daily Impressions of stream stories generated by your Page (Total Count)"
558
+ },
559
+ {
560
+ "id": "117513961602338/insights/page_views_internal_referrals/day",
561
+ "name": "page_views_internal_referrals",
562
+ "period": "day",
563
+ "values": [
564
+ {
565
+ "value": [
566
+
567
+ ],
568
+ "end_time": "2010-11-27T08:00:00+0000"
569
+ }
570
+ ],
571
+ "description": "Daily Top referrers to your Page on Facebook (Total Count)"
572
+ },
573
+ {
574
+ "id": "117513961602338/insights/page_views_external_referrals/day",
575
+ "name": "page_views_external_referrals",
576
+ "period": "day",
577
+ "values": [
578
+ {
579
+ "value": {
580
+ "google.com.my": 2,
581
+ "google.co.in": 1,
582
+ "google.si": 1
583
+ },
584
+ "end_time": "2010-11-27T08:00:00+0000"
585
+ }
586
+ ],
587
+ "description": "Daily Top referrering external domains to your Page (Total Count)"
588
+ },
589
+ {
590
+ "id": "117513961602338/insights/page_fans/lifetime",
591
+ "name": "page_fans",
592
+ "period": "lifetime",
593
+ "values": [
594
+ {
595
+ "value": 50,
596
+ "end_time": "2010-11-27T08:00:00+0000"
597
+ }
598
+ ],
599
+ "description": "Lifetime Total Likes of your Page (Total Count)"
600
+ },
601
+ {
602
+ "id": "117513961602338/insights/page_fans_locale/lifetime",
603
+ "name": "page_fans_locale",
604
+ "period": "lifetime",
605
+ "values": [
606
+ {
607
+ "value": {
608
+ "en_US": 33,
609
+ "ja_JP": 6,
610
+ "en_GB": 4,
611
+ "de_DE": 4,
612
+ "pl_PL": 1,
613
+ "es_ES": 1,
614
+ "it_IT": 1
615
+ },
616
+ "end_time": "2010-11-27T08:00:00+0000"
617
+ }
618
+ ],
619
+ "description": "Lifetime Top locales of people who like your Page (Total Count)"
620
+ },
621
+ {
622
+ "id": "117513961602338/insights/page_fans_city/lifetime",
623
+ "name": "page_fans_city",
624
+ "period": "lifetime",
625
+ "values": [
626
+ {
627
+ "value": [
628
+
629
+ ],
630
+ "end_time": "2010-11-27T08:00:00+0000"
631
+ }
632
+ ],
633
+ "description": "Lifetime Top cities of people who like your Page (Total Count)"
634
+ },
635
+ {
636
+ "id": "117513961602338/insights/page_fans_country/lifetime",
637
+ "name": "page_fans_country",
638
+ "period": "lifetime",
639
+ "values": [
640
+ {
641
+ "value": {
642
+ "JP": 13,
643
+ "US": 11,
644
+ "DE": 7,
645
+ "FI": 3,
646
+ "HU": 2,
647
+ "GB": 2,
648
+ "MX": 1,
649
+ "IT": 1,
650
+ "MY": 1,
651
+ "IN": 1,
652
+ "NO": 1,
653
+ "PL": 1,
654
+ "CH": 1,
655
+ "BG": 1,
656
+ "CA": 1,
657
+ "CO": 1,
658
+ "GR": 1,
659
+ "IL": 1
660
+ },
661
+ "end_time": "2010-11-27T08:00:00+0000"
662
+ }
663
+ ],
664
+ "description": "Lifetime Top countries of people who like your Page (Total Count)"
665
+ },
666
+ {
667
+ "id": "117513961602338/insights/page_fans_gender/lifetime",
668
+ "name": "page_fans_gender",
669
+ "period": "lifetime",
670
+ "values": [
671
+ {
672
+ "value": {
673
+ "M": 48,
674
+ "F": 2
675
+ },
676
+ "end_time": "2010-11-27T08:00:00+0000"
677
+ }
678
+ ],
679
+ "description": "Lifetime Gender of people who like your Page (Total Count)"
680
+ },
681
+ {
682
+ "id": "117513961602338/insights/page_fans_age/lifetime",
683
+ "name": "page_fans_age",
684
+ "period": "lifetime",
685
+ "values": [
686
+ {
687
+ "value": {
688
+ "25-34": 34,
689
+ "35-44": 8,
690
+ "18-24": 8
691
+ },
692
+ "end_time": "2010-11-27T08:00:00+0000"
693
+ }
694
+ ],
695
+ "description": "Lifetime Age of people who like your Page (Total Count)"
696
+ },
697
+ {
698
+ "id": "117513961602338/insights/page_fans_gender_age/lifetime",
699
+ "name": "page_fans_gender_age",
700
+ "period": "lifetime",
701
+ "values": [
702
+ {
703
+ "value": {
704
+ "M.25-34": 33,
705
+ "M.18-24": 8,
706
+ "M.35-44": 7,
707
+ "F.35-44": 1,
708
+ "F.25-34": 1
709
+ },
710
+ "end_time": "2010-11-27T08:00:00+0000"
711
+ }
712
+ ],
713
+ "description": "Lifetime Gender and Age demographics of people who like your Page (Total Count)"
714
+ },
715
+ {
716
+ "id": "117513961602338/insights/page_active_users/day",
717
+ "name": "page_active_users",
718
+ "period": "day",
719
+ "values": [
720
+ {
721
+ "value": 4,
722
+ "end_time": "2010-11-27T08:00:00+0000"
723
+ }
724
+ ],
725
+ "description": "Daily Users who have engaged with your Page, viewed your Page, or consumed content generated by your Page (Unique Users)"
726
+ },
727
+ {
728
+ "id": "117513961602338/insights/page_active_users/week",
729
+ "name": "page_active_users",
730
+ "period": "week",
731
+ "values": [
732
+ {
733
+ "value": 28,
734
+ "end_time": "2010-11-27T08:00:00+0000"
735
+ }
736
+ ],
737
+ "description": "Weekly Users who have engaged with your Page, viewed your Page, or consumed content generated by your Page (Unique Users)"
738
+ },
739
+ {
740
+ "id": "117513961602338/insights/page_active_users/month",
741
+ "name": "page_active_users",
742
+ "period": "month",
743
+ "values": [
744
+ {
745
+ "value": 89,
746
+ "end_time": "2010-11-27T08:00:00+0000"
747
+ }
748
+ ],
749
+ "description": "Monthly Users who have engaged with your Page, viewed your Page, or consumed content generated by your Page (Unique Users)"
750
+ },
751
+ {
752
+ "id": "117513961602338/insights/page_active_users_locale/day",
753
+ "name": "page_active_users_locale",
754
+ "period": "day",
755
+ "values": [
756
+ {
757
+ "value": {
758
+ "en_US": 2,
759
+ "sl_SI": 1,
760
+ "de_DE": 1
761
+ },
762
+ "end_time": "2010-11-27T08:00:00+0000"
763
+ }
764
+ ],
765
+ "description": "Daily Top locales of your active users (Unique Users)"
766
+ },
767
+ {
768
+ "id": "117513961602338/insights/page_active_users_city/day",
769
+ "name": "page_active_users_city",
770
+ "period": "day",
771
+ "values": [
772
+ {
773
+ "value": [
774
+
775
+ ],
776
+ "end_time": "2010-11-27T08:00:00+0000"
777
+ }
778
+ ],
779
+ "description": "Daily Top cities of your active users (Unique Users)"
780
+ },
781
+ {
782
+ "id": "117513961602338/insights/page_active_users_country/day",
783
+ "name": "page_active_users_country",
784
+ "period": "day",
785
+ "values": [
786
+ {
787
+ "value": {
788
+ "MY": 2,
789
+ "SI": 1,
790
+ "DE": 1
791
+ },
792
+ "end_time": "2010-11-27T08:00:00+0000"
793
+ }
794
+ ],
795
+ "description": "Daily Top countries of your active users (Unique Users)"
796
+ },
797
+ {
798
+ "id": "117513961602338/insights/page_active_users_gender/day",
799
+ "name": "page_active_users_gender",
800
+ "period": "day",
801
+ "values": [
802
+ {
803
+ "value": {
804
+ "M": 4
805
+ },
806
+ "end_time": "2010-11-27T08:00:00+0000"
807
+ }
808
+ ],
809
+ "description": "Daily Gender of your active users (Unique Users)"
810
+ },
811
+ {
812
+ "id": "117513961602338/insights/page_active_users_age/day",
813
+ "name": "page_active_users_age",
814
+ "period": "day",
815
+ "values": [
816
+ {
817
+ "value": {
818
+ "18-24": 3,
819
+ "45-54": 1
820
+ },
821
+ "end_time": "2010-11-27T08:00:00+0000"
822
+ }
823
+ ],
824
+ "description": "Daily Age of your active users (Unique Users)"
825
+ },
826
+ {
827
+ "id": "117513961602338/insights/page_active_users_gender_age/day",
828
+ "name": "page_active_users_gender_age",
829
+ "period": "day",
830
+ "values": [
831
+ {
832
+ "value": {
833
+ "M.18-24": 3,
834
+ "M.45-54": 1
835
+ },
836
+ "end_time": "2010-11-27T08:00:00+0000"
837
+ }
838
+ ],
839
+ "description": "Daily Gender and age demographics of your active users (Unique Users)"
840
+ },
841
+ {
842
+ "id": "117513961602338/insights/page_views_unique/day",
843
+ "name": "page_views_unique",
844
+ "period": "day",
845
+ "values": [
846
+ {
847
+ "value": 4,
848
+ "end_time": "2010-11-27T08:00:00+0000"
849
+ }
850
+ ],
851
+ "description": "Daily Page Views from users logged into Facebook (Unique Users)"
852
+ }
853
+ ],
854
+ "paging": {
855
+ "previous": "https://graph.facebook.com/fbgraph/insights?access_token=134145643294322%7C9b95ab3141be69aff9766c90-579612276%7C140478125968442%7Ce6ecDGD6Pgafhgz_uCEABfDcYXA&since=1290530659&until=1290789859",
856
+ "next": "https://graph.facebook.com/fbgraph/insights?access_token=134145643294322%7C9b95ab3141be69aff9766c90-579612276%7C140478125968442%7Ce6ecDGD6Pgafhgz_uCEABfDcYXA&since=1291049059&until=1291308259"
857
+ }
858
+ }