Skip to content

Commit

Permalink
post question
Browse files Browse the repository at this point in the history
  • Loading branch information
nov committed Jan 25, 2012
1 parent 98bb46c commit 0612b27
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/fb_graph/connections/questions.rb
Expand Up @@ -9,6 +9,13 @@ def questions(options = {})
)
end
end

def question!(options = {})
question = post options.merge(:connection => :questions)
Question.new question[:id], options.merge(question).merge(
:access_token => options[:access_token] || self.access_token
)
end
end
end
end

0 comments on commit 0612b27

Please sign in to comment.