How to embed a custom SWF based audio player into facebook wall posts?

后端 未结 2 1697
无人及你
无人及你 2020-12-24 09:55

We have an SWF based audio player. We want to be able to embed this player into Facebook wall posts in the same way that Youtube videos or BandPage songs are embedded into F

相关标签:
2条回答
  • 2020-12-24 10:04

    You need your domain being white listed. Here is the form: http://www.facebook.com/help/contact.php?show_form=video_embed_whitelist

    Update: Have you looked into this? This seems to cover your needs (man, you gotta hate FB for putting up all of these API's and the half-arsed documentation)

    This might be interesting:

    <meta property="og:video" content="http://www.example.com/player.swf?video_id=123456789"/> 
    <meta name="video_height" content="200" /> 
    <meta name="video_width" content="300" />
    <meta name="video_type" content="application/x-shockwave-flash" />
    

    It's the example for a video-player, but it should work for an audio-player as well.

    Also read the OpenGraph documentation - there is a lot of information on how to make your site Facebook-friendly.

    0 讨论(0)
  • 2020-12-24 10:10

    I also tried embedding a wav audio file using swf based audio player in a Facebook Post by using metatags.

    What I did is as follows:

    • Posted a link onto a user's wall using feed graph api.
    • When the link is clicked, server side I add metatags to response header.

      1. I am able to post it successfully on user's wall.
      2. When the same post is viewed by a friend, friend sees the post correctly. On clicking onto pic that has a player button, it plays the audio. On clicking the link URL also it plays correctly. The issue is that the entire post area is clickable and when any area other than link and image is clicked, it shows the html code that I set in response header.
    0 讨论(0)
提交回复
热议问题