Michael Tedesco
2008-Feb-21 16:03 UTC
[Facebooker-talk] Any suggestions appreciated and thanks Shane
Also Shane I see 200 and 104 Codes. Do you know if these are return codes? Am I making the right call? I check the API and see the following http://wiki.developers.facebook.com/index.php/Notifications.sendEmail See after line below - email sent for the users 706585 1110434684 1118298029 1110434684 should be sent Any ideas from anyone? n Thanks, Mike -----Original Message----- From: Michael Tedesco Sent: Thursday, February 21, 2008 10:39 AM To: ''Shane Vitarana'' Subject: RE: [Facebooker-talk] Hi I am having a problem sending email through facebook with an app I created there Tried the suggestions you mentioned, still no luck, have 4 friends then tried to send them the email, and nothing. Is it the right call? Can it be something on facebook end preventing emails to get sent out or registered within the app? Thanks, Mike Output: in index friends 4 Anthony Johnson Laurey Tedesco Krista Tedesco Krista N Tedesco ids 706585 1110434684 1118178412 1118298029 email sent for the users 706585 1110434684 1118298029 1110434684 should be sent 127.0.0.1 - - [21/Feb/2008:10:24:40 Eastern Standard Time] "GET /facebooker?auth_token=f77728e8cecc4095899d0a333d7974ce HTTP/1.1" 200 104 http://www.facebook.com/login.php?api_key=3261d0c86fae5b333c2bfa872253887f&v=1.0 -> /facebooker?auth_token=f77728e8cecc4095899d0a333d7974ce Code: require ''facebooker'' class FacebookerController < ApplicationController ensure_authenticated_to_facebook def index puts "in index" # @user = session[:facebook_session].user @user = facebook_session.user friends = @user.friends @id_array = Array.new puts "friends " puts friends.size friends.each do |fb_id| an_id = fb_id @id_array.push(an_id) end for a_friend in friends puts a_friend.name end puts "ids" puts @id_array user_ids = ["706585", "1110434684", "1118178412", "1118298029"] facebook_session.send_email(user_ids, "An email", "Hi I am the text part of the email", "Hi I am the fbml version of the <b>email</a>") puts "email sent for the users #{706585} #{""} #{1110434684} #{""} #{1118178412} #{} #{1118298029} should be sent" end -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080221/c4b0fd06/attachment.html
Shane Vitarana
2008-Feb-21 17:01 UTC
[Facebooker-talk] Any suggestions appreciated and thanks Shane
Michael- 104 is the Incorrect Signature error. Make sure the session key that used to make the call is the same as the one in params. Print out both so you can tell if there is a mismatch. On Thu, Feb 21, 2008 at 10:03 AM, Michael Tedesco <michael.tedesco at peermeta.com> wrote:> > > > > Also Shane I see 200 and 104 Codes. Do you know if these are return codes? > Am I making the right call? I check the API and see the following > http://wiki.developers.facebook.com/index.php/Notifications.sendEmail > > > > See after line below - email sent for the users 706585 1110434684 > 1118298029 1110434684 should be sent > > Any ideas from anyone? > > n Thanks, Mike > > > > -----Original Message----- > > From: Michael Tedesco > > Sent: Thursday, February 21, 2008 10:39 AM > > To: ''Shane Vitarana'' > > Subject: RE: [Facebooker-talk] Hi I am having a problem sending email > through facebook with an app I created there > > > > Tried the suggestions you mentioned, still no luck, have 4 friends then > tried to send them the email, and nothing. Is it the right call? Can it be > something on facebook end preventing emails to get sent out or registered > within the app? > > Thanks, Mike > > > > Output: > > in index > > friends > > 4 > > Anthony Johnson > > Laurey Tedesco > > Krista Tedesco > > Krista N Tedesco > > ids > > 706585 > > 1110434684 > > 1118178412 > > 1118298029 > > email sent for the users 706585 1110434684 1118298029 1110434684 should > be sent > > 127.0.0.1 - - [21/Feb/2008:10:24:40 Eastern Standard Time] "GET > /facebooker?auth_token=f77728e8cecc4095899d0a333d7974ce HTTP/1.1" 200 104 > http://www.facebook.com/login.php?api_key=3261d0c86fae5b333c2bfa872253887f&v=1.0 > -> /facebooker?auth_token=f77728e8cecc4095899d0a333d7974ce > > Code: > > > > require ''facebooker'' > > class FacebookerController < ApplicationController > > > > ensure_authenticated_to_facebook > > def index > > puts "in index" > > > > # @user = session[:facebook_session].user > > @user = facebook_session.user > > friends = @user.friends > > @id_array = Array.new > > > > puts "friends " > > puts friends.size > > > > friends.each do |fb_id| > > an_id = fb_id > > @id_array.push(an_id) > > end > > > > for a_friend in friends > > puts a_friend.name > > end > > > > puts "ids" > > puts @id_array > > > > user_ids = ["706585", "1110434684", "1118178412", "1118298029"] > > > > facebook_session.send_email(user_ids, "An email", "Hi I am the text part > of the email", "Hi I am the fbml version of the <b>email</a>") > > puts "email sent for the users #{706585} #{""} #{1110434684} #{""} > #{1118178412} #{} #{1118298029} should be sent" > > > > end > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-- http://shanesbrain.net | http://crimsonjet.com | http://myfitbuddy.com