Sha256: 9d220539296381ef7622c718e6df07f20e17aed38854196ba69ffe7224d87149

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

module Whatser
  class Facebook < Whatser::Service
    @key = 'facebook'

    class << self
      def get_friends(opts={})
        api_request :get, "/oauth/services/facebook/friends", {:query => opts}, :model => Whatser::User
      end    

      def wall_post(params={})
        api_request :post, "/oauth/services/facebook/publish", {:body => params}
      end      
    end      
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whatser-0.6.1 lib/whatser/api/facebook.rb
whatser-0.6.0 lib/whatser/api/facebook.rb
whatser-0.5.0 lib/whatser/api/facebook.rb
whatser-0.4.0 lib/whatser/api/facebook.rb
whatser-0.3.2 lib/whatser/api/facebook.rb