trabajo-afectivo/app/models/channel/facebook.rb

29 lines
615 B
Ruby
Raw Normal View History

2012-04-10 14:06:46 +00:00
#require 'rubygems'
#require 'twitter'
class Channel::Facebook
# def fetch(:oauth_token, :oauth_token_secret)
def fetch
end
def send
logger.debug('face!!!!!!!!!!!!!!')
graph_api = Koala::Facebook::API.new(
'AAACqTciZAPsQBAHO9DbM333y2DcL5kccHyIObZB7WhaZBVUXUIeBNChkshvShCgiN6uwZC3r3l4cDvAZAPTArNIkemEraojzN1veNPZBADQAZDZD'
)
graph_api.put_object(
'id',
'comments',
{
:message => self.body
}
)
# client.direct_message_create(
# 'medenhofer',
# self.body,
# options = {}
# )
end
end