Thomas Czernik and I just finished our Facebook app “Musicbook”. It’s a Youtube video player, so one can organize music videos into playlists and share them with one’s friends. In order to use Musicbook you only need a Facebook account and you’ll be able to search music on Youtube and to insert as many search results into your playlists as you like. Musicbook automatically plays one track after another and videos can be added while playing. So it is a great possibility to play any music at parties or similar events. Of course it can be used to listen to your favorite music while surfing or working too
The project was realised in Flex 4 beta 2 using Adobe Flash Builder and Adobe Catalyst. Our backend uses Ruby on Rails and a plugin called RubyAMF to communicate with our Flex application. MusicBrainz is used to retrive Metadata for Youtube videos.
Second semester project project finished – Musicbook released
Published: 15 January 2010 6:27 PM CETPosted in: Flash & Flex, My Projects, Ruby on Rails
Nice work. Thanks for the good teamwork.
My pleasure
Hi,
erstmal gratulation zur App und dem Erfolg. Ich arbeite auch seit einigen Wochen auf Grund meiner Masterarbeit an einer Facebook-App mit Flex. Ich bin auch schon vor Monaten auf diesen Blog gestoßen und konnte nützliche Infos sammeln.
Ich habe mal eine Frage zur Umsetzung des “Facebook.streamPublish”- Requests:
Habt Ihr das über einen ExternalCall oder über die FBJS-Bridge gelöst?
Leider habe ich mit beiden Probleme:
ExternalCall: Funktioniert wegen der crossdomain.xml policity nicht weil meine SWF auf einem anderen Server liegt.
FBJS-Bridge: der Aufruf funktioniert, aber leider weiß ich nicht wie ich da die “Attachment” (”http://wiki.developers.facebook.com/index.php/Attachment_%28Streams%29″) übergeben kann.
Es wäre nett wenn mal bitte jemand eure Herangehensweise posten könnte.
Grüße
Hi Konrad, take a look at this: http://wiki.developers.facebook.com/index.php/Facebook.streamPublish
got it working! -> full documentation: http://www.alittleb.it/coding/open-a-facebook-popup-using-actionscript-3-0/
grüße
Hey Dominik,
maybe you can help me out with one more thing. I wasted my whole day on this whith no success. Do you access your the browser URL at any point in your application? I know you are sitting on R&R and you can easy work with REST but I don’t and I need to read the URL out of my browser to add some parameters to my app from the URL.
For example:
http://apps.facebook.com/myapp/?uid=123456&wsname=JOJOJOJO
I need to read the whole string and parse it for the values of uid and wsname.
The problem is the SecuritySandbox. So I can’t call any js-function. And if I could, I couldn’t pass any values from JS back to my SWF anyway. Can I? I also tried it with the . But there is no function which handles my needs. Something like: document.location.href
In case you work with the browser URL, can you tell me how you manage that without any security popups? I saw that pass some values through the URL: http://apps.facebook.com/musicplaylists/copyplaylist/12345?ref=nf
Or does ruby handle the 12345 automatically through REST?
Greets
Konrad
In my case this value is processed only by our R&R webserver.
We do not work with the url at all but as far as i can see you can’t acces the location object via FBJS for security reasons.
See: http://wiki.developers.facebook.com/index.php/FBJS#Manipulating_Objects
I dont’t know if you can access the url via flash but i don’t think so.
Okay, thanks. So I need to find a workaround for that.