php - Post swf in user facebook timeline not working -
php - Post swf in user facebook timeline not working -
i want post swf file within user facebook timeline seems missing something. image display not swf file. plz help doing worng
var obj = { method: 'feed', link: 'share-page.php', picture: 'uploads/pics/a.png', source: 'assets/swf/preloader.swf', name : 'name', caption: 'caption', description: 'description' }; function callback(response) { //some code here } fb.ui(obj, callback);
and share-page.php file
<!doctype html> <html> <head> <title>title</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="content-language" content="en"> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" /> <!-- open grah tags facebook --> <meta property="og:title" content="test video player" /> <meta property="og:description" content="a video player interface experiment." /> <meta property="og:type" content="video" /> <meta property="og:url" content="share-page.php"/> <meta property="og:image" content="uploads/pics/a.png"/> <meta property="og:video" content="assets/swf/preloader.swf" /> <meta property="og:video:secure_url" content="assets/swf/preloader.swf" /> <meta property="og:video:width" content="325" /> <meta property="og:video:height" content="180" /> <meta property="og:video:type" content="application/x-shockwave-flash" /> </html>
i wish saw question sooner...
see reply this question , help you.
your main issue set folder names (assets , uploads) without saying website/server come from. need total path files:
<meta property="og:url" content="http://www.yoursite.com/share-page.php"/> <meta property="og:image" content="http://www.yoursite.com/uploads/pics/a.png" /> <meta property="og:video" content="http://www.yoursite.com/assets/swf/preloader.swf" /> <meta property="og:video:secure_url" content="https://www.yoursite.com/assets/swf/preloader.swf" />
basically should able paste exact same path new browser tab , see working result otherwise wont work anywhere else including facebook. need swf file mentioned in both "og:video" , "og:video:secure_url" tags coming genuine https server or won't run within timeline post (instead opens new tab link).
only image display
sounds lucky mistake!! because in wall you're posting link html page? happens facebook scans such links display image (it's random guess shown pic 1 available find there??)
php facebook flash facebook-sdk-3.0
Comments
Post a Comment