Knowledge Base


Knowledge Base / XFilesharing Pro / How to ...

How to embed MP3 songs on Facebook

10/07/2013 01:08 PM
Question

Answer

1. First of all, go to your site's settings and make sure all users are allowed to embed files  (Free, Registered, Premium)

2. Go to Facebook.com and registered for an application identification  (APP_ID) and follow their instructions.

3. If you want users to listen to songs that are bigger than 15MB  please *CLICK HERE*

3. Go to your server and look for a file called "main.html"   (Templates)

4. Just before </head>  , add this code:

<meta property="og:audio" content="<TMPL_VAR site_url>/mp3embed-<TMPL_VAR file_code>.mp3" /> 
<meta property="og:audio:title" content="<TMPL_VAR file_name>" /> 
<meta property="og:audio:artist" content="<TMPL_VAR file_name>" /> 
<meta property="og:audio:album" content="<TMPL_VAR file_name>" /> 
<meta property="og:audio:type" content="application/mp3" /> 
<meta property="og:image" content=""/>    
<meta property="og:title" content="<TMPL_VAR file_name>" /> 
<meta property="og:url" content="<TMPL_VAR download_link>" /> 
<meta property="fb:app_id" content="AP ID"/> 
<meta property="og:description" content="DESCRIPTION" />













NOTE: Be careful when editing codes because facebook caches mp3 embeds and if the code is changed , then the previous embeds will break.