Module: Bobot::Profile

Includes:
GraphFacebook
Defined in:
lib/bobot/profile.rb

Constant Summary

Constants included from GraphFacebook

GraphFacebook::GRAPH_FB_URL, GraphFacebook::GRAPH_FB_VERSION

Class Method Summary collapse

Methods included from GraphFacebook

included

Class Method Details

.set(body:, query:) ⇒ Object



5
6
7
8
9
# File 'lib/bobot/profile.rb', line 5

def set(body:, query:)
  graph_post '/me/messenger_profile', body: body, query: {
    access_token: query.fetch(:access_token),
  }
end

.unset(body:, query:) ⇒ Object



12
13
14
15
16
# File 'lib/bobot/profile.rb', line 12

def unset(body:, query:)
  graph_delete '/me/messenger_profile', body: body, query: {
    access_token: query.fetch(:access_token),
  }
end