fb_page_api 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fd7f60fb1b3be4d122992f3dbb50efebdd9c246
4
- data.tar.gz: 5213e5e160ef93900717cfce95b5f3f729cbd4e1
3
+ metadata.gz: 6313398974920c1310bcf7292d4a10df7c30626d
4
+ data.tar.gz: 166222a6b5da1f26e4f4ea24896028bf5ebb830d
5
5
  SHA512:
6
- metadata.gz: 0a6919c73b01d2dacd2b9a48938835ac015879519efbe4a0bbfaa93b31476ae404d9bb3f2eeaa3e2a72b7c4b0992ec1621ae7b57984c48f9cb0ee6b0e53117db
7
- data.tar.gz: 7bc8bd2bfdbcd33f534ec42ffe377a5d93809aaa536e8d20ce46a0e18f2d404409037efa5adfe790bed7de0f68a6927800c6675415817b02c77c0f3910b57796
6
+ metadata.gz: aef6d7423e0085a4db6c105f1851d27116373f2790c7eb5a4742bbc1e801b8fbfeb060ba9e482ed61fbac3aba81cfee82176fa09042f75f23fa9617171071d59
7
+ data.tar.gz: 3d143865fd7e7a30321be0c18a7ae6eafd60f17e5c022d96c3d6b2f80f88bb203cb80bc569b12fbda22ff759f024d0e299fa28d3d8dd8f8c5743688339293610
@@ -6,7 +6,7 @@ module FbPageApi
6
6
  end
7
7
 
8
8
  def request_fields
9
- ['users', 'name']
9
+ ['name']
10
10
  end
11
11
  end
12
12
  end
@@ -4,3 +4,4 @@ require "fb_page_api/edge/admin_note"
4
4
  require "fb_page_api/edge/conversation"
5
5
  require "fb_page_api/edge/user"
6
6
  require "fb_page_api/edge/message"
7
+ require "fb_page_api/edge/label_user"
@@ -15,12 +15,16 @@ module FbPageApi
15
15
  data = rs.parsed_response['data']
16
16
  if data.present?
17
17
  @collection = @collection | data
18
- if rs.parsed_response['paging']['cursors'].present?
19
- self.page_after = rs.parsed_response['paging']['cursors']['after']
20
- self.next_url = nil
21
- elsif rs.parsed_response['paging']['next'].present?
22
- self.next_url = rs.parsed_response['paging']['next']
23
- self.page_after = nil
18
+ if rs.parsed_response['paging'].present?
19
+ if rs.parsed_response['paging']['cursors'].present?
20
+ self.page_after = rs.parsed_response['paging']['cursors']['after']
21
+ self.next_url = nil
22
+ elsif rs.parsed_response['paging']['next'].present?
23
+ self.next_url = rs.parsed_response['paging']['next']
24
+ self.page_after = nil
25
+ else
26
+ data = []
27
+ end
24
28
  else
25
29
  data = []
26
30
  end
@@ -0,0 +1,13 @@
1
+ module FbPageApi
2
+ module Edge
3
+ class LabelUser < Base
4
+ def edge_name
5
+ 'users'
6
+ end
7
+
8
+ def request_fields
9
+ ['id', 'name']
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module FbPageApi
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_page_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tuan Mai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -104,6 +104,7 @@ files:
104
104
  - lib/fb_page_api/edge/all.rb
105
105
  - lib/fb_page_api/edge/base.rb
106
106
  - lib/fb_page_api/edge/conversation.rb
107
+ - lib/fb_page_api/edge/label_user.rb
107
108
  - lib/fb_page_api/edge/message.rb
108
109
  - lib/fb_page_api/edge/user.rb
109
110
  - lib/fb_page_api/version.rb