Class: Whatser::Facebook
- Defined in:
- lib/whatser/api/facebook.rb
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Methods inherited from Service
auth_params, connection_querystring, connection_url, #connection_url, disconnection_url, #disconnection_url, key, #key
Methods inherited from Resource
#api_request, api_request, client, convert_data_to_model, from_hash_to_model, #initialize, set
Constructor Details
This class inherits a constructor from Whatser::Resource
Class Method Details
.get_friends(opts = {}) ⇒ Object
6 7 8 |
# File 'lib/whatser/api/facebook.rb', line 6 def get_friends(opts={}) api_request :get, "/oauth/services/facebook/friends", {:query => opts}, :model => Whatser::User end |
.wall_post(params = {}) ⇒ Object
10 11 12 |
# File 'lib/whatser/api/facebook.rb', line 10 def wall_post(params={}) api_request :post, "/oauth/services/facebook/publish", {:body => params} end |