Knowledge Base


Knowledge Base / XFilesharing Pro / How to ...

Tutorial: How to play uploaded MP3 files in Facebook

05/28/2012 09:37 PM
Question

Answer

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.


Related Articles