MS trying to not use MiniFB to post since it is barfing
This commit is contained in:
parent
b613361855
commit
d7521cb288
2 changed files with 2 additions and 4 deletions
|
|
@ -44,8 +44,6 @@ class AspectsController < ApplicationController
|
||||||
@aspect = current_user.aspect_by_id params[:id]
|
@aspect = current_user.aspect_by_id params[:id]
|
||||||
@friends = @aspect.people
|
@friends = @aspect.people
|
||||||
@posts = current_user.visible_posts( :by_members_of => @aspect ).paginate :per_page => 15, :order => 'created_at DESC'
|
@posts = current_user.visible_posts( :by_members_of => @aspect ).paginate :per_page => 15, :order => 'created_at DESC'
|
||||||
@fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create",
|
|
||||||
:scope=>MiniFB.scopes.join(","))
|
|
||||||
respond_with @aspect
|
respond_with @aspect
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ class StatusMessagesController < ApplicationController
|
||||||
type = 'feed'
|
type = 'feed'
|
||||||
|
|
||||||
Rails.logger.info("Sending a message: #{params[:status_message][:message]} to Facebook")
|
Rails.logger.info("Sending a message: #{params[:status_message][:message]} to Facebook")
|
||||||
@res = MiniFB.post(@access_token, id, :type=>type,
|
|
||||||
:metadata=>true, :params=>{:message => params[:status_message][:message]})
|
EventMachine::HttpRequest.new("https://graph.facebook.com/me/feed?message=#{params[:status_message][:message]}&access_token=#{@access_token}").post, :timeout => TIMEOUT, :body =>{:xml => query.body}
|
||||||
end
|
end
|
||||||
|
|
||||||
@status_message = current_user.post(:status_message, data)
|
@status_message = current_user.post(:status_message, data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue