Petar Kalpakliev
2009-Apr-22 15:02 UTC
[Facebooker-talk] how can I get the friends of a fb user only using his facebook id
hello, with facebooker can I get a list of someone''s facebook friends, only using his facebook id? If yes, then please let me know how... (and don''t read further) If this is not possible, then here is my problem: ------------------------------------------- I have a flash movie embedded in the canvas page of my Facebooker application. The movie gets information from an xml file, which is generated by .rxml file, but this rxml file has no information related to the current facebook user and his session. So I can only pass some data that comes from the <fb:swf> flashvars through the flash movie to the .rxml in the form of url arguments. One possible things to pass is fb_sig_user, which is the facebook id of the user. Other available flashvars are listed in the wiki: http://wiki.developers.facebook.com/index.php/Fb:swf So, I need to have info about the facebook user''s friends in the .rxml file. How can I achieve this? Thanks a lot!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090422/00286930/attachment.html>
Tres Wong-Godfrey
2009-Apr-23 21:04 UTC
[Facebooker-talk] how can I get the friends of a fb user only using his facebook id
Hi Petar, I use Facebooker & Rails to generate XML for my Flash apps as well. It''s a pretty simple and effective solution, but it''s not your only choice anymore. If you''re handy with Actionscript 3, you''ve now got the option of using the Facebook API directly from your Flash app. Google hosts the project. This wasn''t available until relatively recently, so I can''t say how well it works. If you still want to use your server as an intermediary between Facebook data and your app, you''re on the right track; XML makes this a breeze. You''ve got two options for getting user data: you can use the standard API or use FQL. Either one will allow you to grab a list of a user''s friends. From there, you can use a nice .each loop & construct your XML. To be frank, doing this kind of thing is pretty intrinsic to integrating Facebook data into your Flash app, so you''d probably be better off taking a look at the various resources available; they will help much more than a simple response on a mailing list. Pragmatic Bookshelf has a number of resources available including a book and some screencasts (http://www.pragprog.com). Sorry for the RTFM answer, but I really think in this case it is probably your best bet. There''s a lot more you can do with Facebooker, so it''s really worthwhile. Regards, Tres Tres Wong-Godfrey Brainzai! Games for your Brain On Apr 22, 2009, at 8:02 AM, Petar Kalpakliev wrote:> hello, > > with facebooker can I get a list of someone''s facebook friends, only > using his facebook id? > If yes, then please let me know how... (and don''t read further) > > If this is not possible, then here is my problem: > ------------------------------------------- > I have a flash movie embedded in the canvas page of my Facebooker > application. > > The movie gets information from an xml file, which is generated > by .rxml file, but this rxml file has no information related to the > current facebook user and his session. So I can only pass some data > that comes from the <fb:swf> flashvars through the flash movie to > the .rxml in the form of url arguments. One possible things to pass > is fb_sig_user, which is the facebook id of the user. Other > available flashvars are listed in the wiki: http://wiki.developers.facebook.com/index.php/Fb:swf > > So, I need to have info about the facebook user''s friends in > the .rxml file. How can I achieve this? > > > Thanks a lot!!! > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk