Graph API post of video is not playable

前端 未结 2 492
心在旅途
心在旅途 2021-02-06 16:43

I have an application that posts music videos from YouTube to a Facebook user\'s wall. The post on Facebook would have this embed video be playable from Facebook. Recently it st

2条回答
  •  情书的邮戳
    2021-02-06 17:30

    Generalized Workaround

    I generalized the answer to this similar question: posting a swf in facebook feed through facebook api. I created a page that takes two parameters and generates the necessary meta tags. Facebook accepts the link, the user is correctly redirected, and you don't need a separate page for each posted video.

    1. url - the final URL
    2. id - the id of the youtube or embedded video

    I successfully made numerous embedded posts in which the link was not associated with the video.

    Example Post

    message = Post message
    description = Post description if needed.
    name = Post name
    caption = Post caption
    link = http://vbcopper.com/jsuar/so/fbembedvideo.php?url=stackoverflow.com&id=QGAJokcwBXI
    source = http://www.youtube.com/e/QGAJokcwBXI
    picture = http://img.youtube.com/vi/QGAJokcwBXI/0.jpg
    

    PHP

    
    
        $url
        
        
        
        
        
        
        
        
        
        
    
    
    
    
    
    EOT;
    } else {
        echo "Nothing here...";
    }
    ?>
    

    Findings

    I was able to successfully replicate your issue. I could find no work around.

    This has been submitted as a bug to Facebook but deemed low priority.

    Bugs: Posting video to feed with link attribute doesn't embed the source https://developers.facebook.com/bugs/502967809730190?browse=search_5074a2e48fd360934230075

提交回复
热议问题