Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Facebook Javascript SDK发布flash内容的正确参数是什么?_Javascript_Flash_Facebook_Facebook Graph Api - Fatal编程技术网

使用Facebook Javascript SDK发布flash内容的正确参数是什么?

使用Facebook Javascript SDK发布flash内容的正确参数是什么?,javascript,flash,facebook,facebook-graph-api,Javascript,Flash,Facebook,Facebook Graph Api,我能够使用FB.ui({method:'stream_publish',..})成功发布Flash内容 然而,由于我的应用程序也必须能够发布到粉丝页面,我不能使用FB.ui,而必须通过FB.API使用Graph API。没什么大不了的,反正我还是想要一张定制的表格来邮寄 但是它似乎使用FB.api('/feed\u ID/feed',…)发布到提要。使用的参数与FB.ui方法不同 和的文档不是特别有用。Graph API文档提到一个源参数,该参数应该是指向flash对象的url。但是,当我将so

我能够使用
FB.ui({method:'stream_publish',..})
成功发布Flash内容

然而,由于我的应用程序也必须能够发布到粉丝页面,我不能使用FB.ui,而必须通过FB.API使用Graph API。没什么大不了的,反正我还是想要一张定制的表格来邮寄

但是它似乎使用FB.api('/feed\u ID/feed',…)发布到提要。使用的参数与FB.ui方法不同

和的文档不是特别有用。Graph API文档提到一个
参数,该参数应该是指向flash对象的url。但是,当我将
source
设置为flash对象url时,我会得到以下结果:


(#100)flash对象必须具有“swfsrc”和“imgsrc”属性


好的,好的,但是他们去哪里?附件
参数对FB.Connect和FB.ui运行良好,似乎被完全忽略

这是我的密码:

        body = {
                    name: "Name",
                    link: "http://mysite.com/link_to_my_content",
                    caption: "This is the caption",
                    message: "Test Message",
                    source: 'http://mysite.com/static/flash.swf',
                    image: 'http://mysite.com/static/images/facebook_thumb.png',
                    actions: action_links,
                    description: "The fascinating, compelling description"
                }

                FB.api('/me/feed', 'post', body, function(response){
                    if (!response || response.error){
                        console.log("FB.api error occurred");
                        if (response.error){
                            console.log("Error message: " + response.error.message);
                        }
                    }
                    else {
                        console.log("Post successful: " + response);
                    }
                });

在发布到粉丝页面时,我还包括
access\u-token
参数(并明显更改url),这似乎效果不错。我只是不知道如何让flash内容发布。
swfsrc
imgsrc
属性在哪里?这可能是显而易见的事情,但我已经尝试了我能想到的一切。谷歌没有帮助,因为大多数人似乎只是在使用
stream\u publish
,和一堆旧的FB.Connect东西。

刚刚发现你在发布源swf时提供图片,否则你会收到imgsrc/swfsrc错误消息。看

去Facebook