Skip to content
nov matake edited this page Jan 25, 2012 · 1 revision

Questions

GET

me = FbGraph::User.me(ACCESS_TOKEN)
questions = me.questions
questions.first.question_options

page = FbGraph::Page.new(PAGE_ID, ACCESS_TOKEN)
questions = page.questions
questions.first.question_options

POST

question = me.question!(
  :question => 'Testing. Succeeded?',
  :options => [
    'Yes', 'No'
  ]
)

page.question!(
  :question => 'Testing. Succeeded?',
  :options => [
    'Yes', 'No'
  ]
)
Clone this wiki locally