Facebook, How to, Internet, Social, Web

How to: Insert Music in your Facebook Post!

Using Facebook is Fun now-a-days. We get addicted to it the most than we get into trap with Alcohol. We studied lots and lots of tricks already that can be performed in Facebook. My previous post also, was regarding a trick on Facebook. On rolling an eye on this blog for Facebook Tricks, you could find tricks like …

..and now you could find this trick in front of your eyes. We can insert music content on your Facebook Post by editing an URL which contains PHP attributes. By inserting music content, your friends can play the content directly from the Facebook Page. I don’t say this as a trick as Facebook provides such stuffs as a feature. Application developers of Facebook might be aware of this feature.

Get the URL in your hand first. Then, Learn to edit this URL to insert music content.

http://www.facebook.com/connect/prompt_feed.php?
api_key=138863726203206&
attachment={
'media': [{'type': 'mp3',
'title':'MUSIC TITLE HERE',
'artist':'ARTIST NAME HERE',
'src':  'MUSIC LINK HERE',
'href': 'http://www.technostreak.com/'}]}

In the above code, you can see very well, how it works. Your music content is made as an attachment to your Facebook Post. Your music link Should be in *.mp3 format. You can add Artist Name and Music Title to the code for better post.

You can also post the music content on your friend’s wall by adding the following to the above code at the last.

&target_id=YOUR FRIEND’s PROFILE ID HERE

For Example, like this &target_id=212550988758825

Not only music, you can also insert song’s link to the code.

I have an example code where I have inserted a popular movie’s song. To post, just copy the below code, paste to your browser’s address bar and hit Enter.

http://www.facebook.com/connect/prompt_feed.php?
api_key=138863726203206&
attachment={
'media': [{'type': 'mp3',
'title':'Give me Sunshine',
'artist':'Shantanu Moitra',
'src':  'http://sound18.mp3pk.com/indian/3idiots/3idiots04(www.songs.pk).mp3',
'href': 'http://www.technostreak.com/'}]}

See the preview of the above code in the below image.

Your Music will be played on the post itself with an embedded media player.

Share your comments below! 🙂

 

 

About the Author

I am interested towards computers since my childhood days. I can't be without my computer and blogging works. I blog at CryptLife. I love to be in front of my PC, managing my blog every day, every minute and every hour.

0 comments