Michael Tedesco
2008-Feb-20 23:38 UTC
[Facebooker-talk] Hi I am having a problem sending email through facebook with an app I created there
Here are the steps I did so far but can''t seem to get messages posted
to the user''s of facebook. Any ideas?
If the email messaging is working correctly does the emails stay in the
user''s facebook email notifications or do they get sent back out to
their corresponding email accounts (i.e yahoo)?
1) Created an app in facebook and its definitely doing a call back to my
app
2) Shared the app with a friend
Please see below output and method call. Any ideas
Thanks, Mike Tedesco
Output :
in index
friends
2
Anthony Johnson
Laurey Tedesco
ids
706585
1110434684
email sent for the users 706585 1110434684 should be sent
127.0.0.1 - - [20/Feb/2008:18:33:16 Eastern Standard Time] "GET
/facebooker?auth_token=b5a90e821149fbb08a0f4a6b1279bf25 HTTP/1.1" 200 104
http://www.facebook.com/login.php?api_key=3261d0c86fae5b333c2bfa872253887f&v=1.0
-> /facebooker?auth_token=b5a90e821149fbb08a0f4a6b1279bf25
-----------------------------------------------
Code to produce it
require ''facebooker''
class FacebookerController < ApplicationController
ensure_authenticated_to_facebook
def index
puts "in index"
@user = session[: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]
session[:facebook_session].send_email(user_ids, "Nice picture of you
sucking down a beer", "hi", "I hope it was a Sam
Adams")
puts "email sent for the users #{706585} #{""} #{1110434684}
should be sent"
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/facebooker-talk/attachments/20080220/80fbec6c/attachment.html
Shane Vitarana
2008-Feb-21 00:28 UTC
[Facebooker-talk] Hi I am having a problem sending email through facebook with an app I created there
Michael- It gets sent to their corresponding email accounts. On Wed, Feb 20, 2008 at 5:38 PM, Michael Tedesco <michael.tedesco at peermeta.com> wrote:> > > > > Here are the steps I did so far but can''t seem to get messages posted to the > user''s of facebook. Any ideas? > > If the email messaging is working correctly does the emails stay in the > user''s facebook email notifications or do they get sent back out to their > corresponding email accounts (i.e yahoo)? > > > > 1) Created an app in facebook and its definitely doing a call back to > my app > > 2) Shared the app with a friend > > > > Please see below output and method call. Any ideas > > Thanks, Mike Tedesco > > > > Output : > > in index > > friends > > 2 > > Anthony Johnson > > Laurey Tedesco > > ids > > 706585 > > 1110434684 > > email sent for the users 706585 1110434684 should be sent > > 127.0.0.1 - - [20/Feb/2008:18:33:16 Eastern Standard Time] "GET > /facebooker?auth_token=b5a90e821149fbb08a0f4a6b1279bf25 HTTP/1.1" 200 104 > > http://www.facebook.com/login.php?api_key=3261d0c86fae5b333c2bfa872253887f&v=1.0 > -> /facebooker?auth_token=b5a90e821149fbb08a0f4a6b1279bf25 > > > > ----------------------------------------------- > > > > Code to produce it > > require ''facebooker'' > > class FacebookerController < ApplicationController > > ensure_authenticated_to_facebook > > > > def index > > puts "in index" > > > > @user = session[: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] > > > > session[:facebook_session].send_email(user_ids, "Nice picture of you > sucking down a beer", "hi", "I hope it was a Sam Adams") > > puts "email sent for the users #{706585} #{""} #{1110434684} 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