Module: Bobot::User

Includes:
GraphFacebook
Defined in:
lib/bobot/user.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_profile(query:) ⇒ Object



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

def get_profile(query:)
  graph_get "/#{query.fetch(:fb_id)}", query: {
    fields: query.fetch(:fields).join(','),
    access_token: query.fetch(:access_token),
  }
end