I'm trying to build a facebook app that can display current playing song on the user's profile page, via a link to the app or preferably embedded on the profile page.
I read online, and found that facebook doesn't allow iframes on profiles. Due to this, I'm hoping to display tracks played via the right-panel on "home" page @ facebook.com. Spotify posts this perfectly to display what anyone is listening to via the right sidebar. I read that spotify is a facebook partner due to which any number of posts/updates are allowed via spotify. Is this valid without any payment too?
For example, I need to either post each song played to user's profile, and if that's not allowed, then a link on the profile to visit a facebook app that has the content to be displayed (now playing song).
I'm good at javascript and php, but I don't know a way of doing this... this is what I have in mind:
Let
- Let users sign up for the app, then let them download AMIP (tool require to log playing songs on major media players).
- Once they download and set it up, they should add something like:
http://ift.tt/1yI0lw1
to the AMIP settings and that's almost all the settings required. - Another alternative was to create a standalone php application (exe) that would send the data to facebook, and the url in AMIP could be sent to this exe. But I've never created any portable/standalone php app, I only know it exists for non-webserver alternative purpose. I thought this would required only for login purpose, cause then the app won't be secured, anyone could just enter anyone's userid in AMIP url for generating false music logs.
- Once the settings have been done, user starts listening to music and with AMIP the song info goes to facebook app, where it collects (if it's database driven), about 5 most recent songs with their song info.
- So anyone visiting the profile, can either see embedded detail, or visit via link to the app page to see the friend's current song playing info.
Now I don't know how to get this done. Any suggestions or links to tutorials/code-snippets/or someone who is good at this could just create and share the app link with me? You may consider this as an idea for a facebook app. And probably share it on github too!
Thanks.
Aucun commentaire:
Enregistrer un commentaire