lib/fb_graph/connections/questions.rb in fb_graph-2.2.6 vs lib/fb_graph/connections/questions.rb in fb_graph-2.3.0
- old
+ new
@@ -7,8 +7,16 @@
Question.new question[:id], question.merge(
:access_token => options[:access_token] || self.access_token
)
end
end
+
+ def question!(options = {})
+ question = post options.merge(:connection => :questions)
+ Question.new question[:id], question.merge(
+ :question => options[:question],
+ :access_token => options[:access_token] || self.access_token
+ )
+ end
end
end
end