Knowledge Base

Tutorial: How to play uploaded MP3 files in Facebook

Q How can I embed uploaded MP3 files in Facebook?
A 1- Open the HTML file main.html with your favorite editor, it's located in cgi-bin/Templates.

2- Add after your meta tags, or before this tag </head> the following code :

<TMPL_IF song_url>
<meta property="og:title" content="<TMPL_VAR file_name> on YourSite.com" />
<meta property="og:description" content="<TMPL_VAR file_name> on YourSite.com" />
<meta property="og:audio" content="<TMPL_VAR site_url>/mp3embed-<TMPL_VAR file_code>.mp3" />
<TMPL_IF mp3_title>
<meta property="og:audio:title" content="<TMPL_VAR mp3_title>" />
<TMPL_ELSE>
<meta property="og:audio:title" content="<TMPL_VAR file_name>" />
</TMPL_IF>
<TMPL_IF mp3_artist><meta property="og:audio:artist" content="<TMPL_VAR mp3_artist>" /></TMPL_IF>
<TMPL_IF mp3_album><meta property="og:audio:album" content="<TMPL_VAR mp3_album> <TMPL_IF mp3_year>(<TMPL_VAR mp3_year>)</TMPL_IF>" /></TMPL_IF>
<meta property="og:audio:type" content="application/mp3" />
</TMPL_IF>

Replace YourSite.com with your own string.

3- Save & Upload, That's All.

SibSoft

Self-hosted scripts for file, video and image hosting. Building them since 2006.

© 2026 Sibsoft LtdAll rights reserved