Hi, I''m working on a site where users can update their Twitter and Facebook status. To do that the users provide the credentials and the status text. With Twitter that was piece of cake. But it looks soooo far from what is required from facebook Does anyone know what is the simplest way to update the facebook status? From the rails app (or even from javascript directly). I just want to set a new status (!!) and hope there is a way where the username and pass are given together with a new status and that''s it. Sorry this might not belong here but I guess someone went over it before. I''ve seen many posts around about this issue and I wonder is that simple thing is so overcomplicated as it looks. Cheers. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
have you integrated your project with facebook before you run into this problem? if so, it''s not so complicated else, yes it''s complicated here is the way to do so using javascript if you have integrated your application with facebook previously: use this method: http://developers.facebook.com/docs/?u=facebook.jslib.FB.Connect.streamPublish set the attachment, action_links, target_id to null if u open the link above, u''ll find this sentence: " If you specify a target_id then the post appears on the Wall of the target and not the user posting the item" but, if the target_id is null, then it''s assumed that the target is the user him/herself if you haven''t integrated your application with facebook previously: basically u have to create a facebook application (warning: you would absolutely need web hosting since facebook requires your application, even for development purpose, to run on internet, not intranet, let alone pc) then u need to initialize the facebook application using this method: http://developers.facebook.com/docs/?u=facebook.jslib.FB.Facebook.init then use this method: http://developers.facebook.com/docs/?u=facebook.jslib.FB.Connect.streamPublish set the attachment, action_links, target_id to null if u open the link above, u''ll find this sentence: " If you specify a target_id then the post appears on the Wall of the target and not the user posting the item" but, if the target_id is null, then it''s assumed that the target is the user him/herself On Dec 28, 8:37 pm, comopasta Gr <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I''m working on a site where users can update their Twitter and Facebook > status. To do that the users provide the credentials and the status > text. > > With Twitter that was piece of cake. > > But it looks soooo far from what is required from facebook > > Does anyone know what is the simplest way to update the facebook status? > From the rails app (or even from javascript directly). > > I just want to set a new status (!!) and hope there is a way where the > username and pass are given together with a new status and that''s it. > > Sorry this might not belong here but I guess someone went over it > before. > I''ve seen many posts around about this issue and I wonder is that simple > thing is so overcomplicated as it looks. > > Cheers. > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Fajrian, Thanks a lot for the pointers. I was just checking some FB connect examples. I kind of tried to avoid it since I''m not sure how much room for UI customization there is with FB connect. I''d like to avoid the boring (IMO) FB theme and buttons. The info you provided is really helpful. I''ve also spend some time doing an adaptation for ruby of the approach followed here: http://codesnippets.joyent.com/posts/show/1204 Almost there, I guess I''ll try both anyway. Thanks again. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You could blog about it, when you are done. This is something that would catch someones attention. []''s On Wed, Dec 30, 2009 at 5:55 AM, comopasta Gr <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi Fajrian, > > Thanks a lot for the pointers. I was just checking some FB connect > examples. I kind of tried to avoid it since I''m not sure how much room > for UI customization there is with FB connect. I''d like to avoid the > boring (IMO) FB theme and buttons. The info you provided is really > helpful. > > I''ve also spend some time doing an adaptation for ruby of the approach > followed here: http://codesnippets.joyent.com/posts/show/1204 > > Almost there, I guess I''ll try both anyway. > > Thanks again. > > > -- > Posted via http://www.ruby-forum.com/. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> This is something that would catch someones attention.Yeah mabye from FB :-) See the next post: http://www.nexdot.net/blog/2007/04/20/updating-facebook-status-using-php/ ...Facebook has requested that I remove the code from my website... I could give some pointers once it works. cheers. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rodrigo Dellacqua
2009-Dec-31 00:53 UTC
Re: Re: Re: Simple facebook status update from rails?
FB @ Fail mode This is so sad, becau,se if you can''t do directly with code, well, you can write some crawler to log into your account, and update it anyway. Whats the point? they won''t even know. But sure, drop this group a line when you are done. []''s Rodrigo Dellacqua On Wed, Dec 30, 2009 at 7:33 AM, comopasta Gr <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > This is something that would catch someones attention. > > Yeah mabye from FB :-) > > See the next post: > http://www.nexdot.net/blog/2007/04/20/updating-facebook-status-using-php/ > > ...Facebook has requested that I remove the code from my website... > > I could give some pointers once it works. > > cheers. > -- > Posted via http://www.ruby-forum.com/. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2009-Dec-31 02:23 UTC
Re: Re: Re: Simple facebook status update from rails?
Rodrigo Dellacqua wrote:> FB @ Fail mode > > This is so sad, becau,se if you can''t do directly with code, well, you > can > write some crawler to log into your account, and update it anyway. Whats > the > point? they won''t even know.At a guess, the point is probably that that''s a violation of their TOS.> > But sure, drop this group a line when you are done.Sure, violate TOS and see how long your account lasts... :)> > []''s > Rodrigo Dellacqua > > On Wed, Dec 30, 2009 at 7:33 AM, comopasta Gr <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: > >> >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rodrigo Dellacqua
2009-Dec-31 02:26 UTC
Re: Re: Re: Re: Simple facebook status update from rails?
Their TOS statement; - You can''t use any indirect form of accessing our site, because if you do so, you won''t see all the adds we got in our site and we won''t increase our company value from beyond 1.5 bi. sums it all. lame. On Thu, Dec 31, 2009 at 12:23 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Rodrigo Dellacqua wrote: > > FB @ Fail mode > > > > This is so sad, becau,se if you can''t do directly with code, well, you > > can > > write some crawler to log into your account, and update it anyway. Whats > > the > > point? they won''t even know. > > At a guess, the point is probably that that''s a violation of their TOS. > > > > But sure, drop this group a line when you are done. > > Sure, violate TOS and see how long your account lasts... :) > > > > > []''s > > Rodrigo Dellacqua > > > > On Wed, Dec 30, 2009 at 7:33 AM, comopasta Gr <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > > wrote: > > > >> > >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > <rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%252Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > > >> . > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-talk?hl=en. > >> > >> > >> > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2009-Dec-31 02:40 UTC
Re: Re: Re: Re: Simple facebook status update from rails?
Rodrigo Dellacqua wrote:> Their TOS statement; > > - You can''t use any indirect form of accessing our site, because if you > do > so, you won''t see all the adds we got in our site and we won''t increase > our > company value from beyond 1.5 bi. > > sums it all. > > lame. >You signed the TOS voluntarily. ''Nuff said. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rodrigo Dellacqua
2009-Dec-31 02:47 UTC
Re: Re: Re: Re: Re: Simple facebook status update from rails?
True =), but ppl only realize they are agaisnt the TOS when its too late, who reads that? On Thu, Dec 31, 2009 at 12:40 AM, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Rodrigo Dellacqua wrote: > > Their TOS statement; > > > > - You can''t use any indirect form of accessing our site, because if you > > do > > so, you won''t see all the adds we got in our site and we won''t increase > > our > > company value from beyond 1.5 bi. > > > > sums it all. > > > > lame. > > > > You signed the TOS voluntarily. ''Nuff said. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted via http://www.ruby-forum.com/. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2009-Dec-31 04:16 UTC
Re: Re: Re: Re: Re: Simple facebook status update from rails
Rodrigo Dellacqua wrote:> True =), but ppl only realize they are agaisnt the TOS when its too > late, > who reads that?I at least skim TOSs before I agree to them, and refer to them if I think I''m in a gray area. If you don''t read the TOS when it''s presented to you, you have no one to blame but yourself.> > On Thu, Dec 31, 2009 at 12:40 AM, Marnen Laibow-Koser > <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > >> > >> -- >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> >> > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, I''m not sure if there''s actually any issues using the php approach. In the facebook site itself there is a link to the same approach but with ruby. The link points to this: http://lukaszpelszynski.blogspot.com/2009/09/facebook-rest-api-hackers-way.html And it can be found here in the FB site: http://lukaszpelszynski.blogspot.com/2009/09/facebook-rest-api-hackers-way.html It is just the same thing the php was doing, simulate the browser actions as if the real user would be using it. Maybe there''s no issues after all. Cheers. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> And it can be found here in the FB site: > http://lukaszpelszynski.blogspot.com/2009/09/facebook-rest-api-hackers-way.htmlSorry wrong link, this was the good one: http://wiki.developers.facebook.com/index.php/User:Ruby -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.