facebook-messenger 1.4.0 → 1.4.1

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
- SHA256:
3
- metadata.gz: ee1571f2dd5f4579a76e761c4145f643bec11dea790dd05b6afd1495f615003b
4
- data.tar.gz: e8e92206d1fb3158f203a42790efcd4b8097c14d4d27d4a6cfe9ca8caa1418e4
2
+ SHA1:
3
+ metadata.gz: 6e54b09796e5d59f6fbdb7e6dab787eb3629e087
4
+ data.tar.gz: a884a6da8ad943914d1cebcb1f618727355b1b95
5
5
  SHA512:
6
- metadata.gz: 224306905134c4d0fbc5b58f513e3ae84d670154573817e88bd5d3e66d16acd530bcadfe22abe2075583616f95e962f8e3d1f0fb46e82d9476fbd44142796797
7
- data.tar.gz: a506fca934e229704672e0be3a1eaacac90a4dbc59799fe5122432ce75b5d0ae22cc56885301c5b2d40cea8363cfcdb9f940c5f70f3f026531d8d41efbcea8ec
6
+ metadata.gz: 5ca334c3f03a0f568d348dcfbe1dfa30d4e172a209c5cfeffe48592f2c261f10e6d4b19167a60a7b96a5e038e38dc3461f33bd3899951d17b4654a4e05056559
7
+ data.tar.gz: 79de3e3e5cb1114651a69778bef47bbd33e259433ca375403aaa043161b41bab0d7ff8b4624e2121580a6dba2c94138c17dd6e40e7d078e543caef0d9f4bc0b8
@@ -10,7 +10,7 @@ module Facebook
10
10
  include HTTParty
11
11
 
12
12
  # Define base_uri for HTTParty.
13
- base_uri 'https://graph.facebook.com/v2.9/me'
13
+ base_uri 'https://graph.facebook.com/v3.2/me'
14
14
 
15
15
  format :json
16
16
 
@@ -28,10 +28,12 @@ module Facebook
28
28
  # @return [Boolean] TRUE
29
29
  #
30
30
  def subscribe(access_token:, subscribed_fields: [])
31
- response = post '/subscribed_apps', query: {
32
- access_token: access_token,
33
- subscribed_fields: subscribed_fields
34
- }
31
+ response = post '/subscribed_apps',
32
+ headers: { 'Content-Type' => 'application/json' },
33
+ body: {
34
+ access_token: access_token,
35
+ subscribed_fields: subscribed_fields
36
+ }.to_json
35
37
 
36
38
  raise_errors(response)
37
39
 
@@ -2,6 +2,6 @@ module Facebook
2
2
  module Messenger
3
3
  #
4
4
  # @return [String] Define the version of gem.
5
- VERSION = '1.4.0'.freeze
5
+ VERSION = '1.4.1'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook-messenger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Gorset
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-17 00:00:00.000000000 Z
11
+ date: 2019-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -48,16 +48,16 @@ dependencies:
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '1.11'
53
+ version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '1.11'
60
+ version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: coveralls
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.7.6
222
+ rubygems_version: 2.6.8
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Facebook Messenger client