facebook.rb 733 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. #require 'rubygems'
  3. #require 'twitter'
  4. class Channel::Facebook
  5. # def fetch(:oauth_token, :oauth_token_secret)
  6. def fetch
  7. end
  8. def disconnect
  9. end
  10. def send
  11. Rails.logger.debug('face!!!!!!!!!!!!!!')
  12. graph_api = Koala::Facebook::API.new(
  13. 'AAACqTciZAPsQBAHO9DbM333y2DcL5kccHyIObZB7WhaZBVUXUIeBNChkshvShCgiN6uwZC3r3l4cDvAZAPTArNIkemEraojzN1veNPZBADQAZDZD'
  14. )
  15. graph_api.put_object(
  16. 'id',
  17. 'comments',
  18. {
  19. message: body
  20. }
  21. )
  22. # client.direct_message_create(
  23. # 'medenhofer',
  24. # self.body,
  25. # options = {}
  26. # )
  27. end
  28. end