2014-02-03 19:23:00 +00:00
|
|
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
2013-06-12 15:59:58 +00:00
|
|
|
|
2012-04-10 14:06:46 +00:00
|
|
|
#require 'rubygems'
|
|
|
|
#require 'twitter'
|
|
|
|
|
|
|
|
class Channel::Facebook
|
2013-06-12 15:59:58 +00:00
|
|
|
# def fetch(:oauth_token, :oauth_token_secret)
|
2012-04-10 14:06:46 +00:00
|
|
|
def fetch
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
def send
|
2013-06-12 15:59:58 +00:00
|
|
|
|
2012-04-10 14:06:46 +00:00
|
|
|
logger.debug('face!!!!!!!!!!!!!!')
|
|
|
|
graph_api = Koala::Facebook::API.new(
|
|
|
|
'AAACqTciZAPsQBAHO9DbM333y2DcL5kccHyIObZB7WhaZBVUXUIeBNChkshvShCgiN6uwZC3r3l4cDvAZAPTArNIkemEraojzN1veNPZBADQAZDZD'
|
|
|
|
)
|
|
|
|
graph_api.put_object(
|
|
|
|
'id',
|
|
|
|
'comments',
|
|
|
|
{
|
|
|
|
:message => self.body
|
|
|
|
}
|
|
|
|
)
|
2013-06-12 15:59:58 +00:00
|
|
|
# client.direct_message_create(
|
|
|
|
# 'medenhofer',
|
|
|
|
# self.body,
|
|
|
|
# options = {}
|
|
|
|
# )
|
2012-04-10 14:06:46 +00:00
|
|
|
end
|
2013-06-12 15:59:58 +00:00
|
|
|
end
|