Module: Bobot::Profile

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

Constant Summary

Constants included from GraphFacebook

GraphFacebook::GRAPH_FB_URL, GraphFacebook::GRAPH_HEADERS

Class Method Summary collapse

Methods included from GraphFacebook

included

Class Method Details

.get(query:) ⇒ Object



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

def get(query:)
  graph_get '/me/messenger_profile', query: query
end

.set(body:, query:) ⇒ Object



10
11
12
# File 'lib/bobot/profile.rb', line 10

def set(body:, query:)
  graph_post '/me/messenger_profile', body: body, query: query
end

.unset(body:, query:) ⇒ Object



15
16
17
# File 'lib/bobot/profile.rb', line 15

def unset(body:, query:)
  graph_delete '/me/messenger_profile', body: body, query: query
end