Hey.
I've got a form that posts Facebook Events on a user's behalf. The
form is working fine but i'm trying to improve it and extract some
meaning full data from the response rather than the generic 'Fail'
error im showing now..
I'm using code like this (trimmed for clarity):
begin
@success = @
fb.post(@
fb.me.id, :type => :events, :params =>
{ etc })
rescue
StandardError
flash[:notice] = 'Facebook rejected your event, please try again.'
redirect_to whatever
end
flash[:notice] = 'Success.'
redirect_to whatever
if @success is successfull, i can extract the URL of the Facebook
event out of that..
If its not, i cant seem to get my hands on anything usefull to display
to the user..
IF i enable
MiniFB.enable_logging
The MiniFB Log gives me a good meaningfull error. but icant seem to
access it.. anyone have any ideas?
EG:
400
ex.http_body={"error":{"type":"OAuthException","message":"(#100) Param
event_info-city must be a valid city"}}
thnks!