我试图在此page中使用测试控制台在我的墙上发布一些带有swf附件的内容,以便在附件中填写以下内容:
{"media": [{
"type": "flash",
"swfsrc": "http://www.alsacreations.fr/flashdir/dewplayer.swf?mp3=http://storage.musiclife.kz/2011-07/47449_3b012dcc460023b8be23f7af451e173f.mp3",
"imgsrc": "http://bikeweb.com/files/images/ride_it_forever_000113-1313.jpg",
"width": "80",
"height": "60",
"expanded_width": "160",
"expanded_height": "120"
}]}
它发布了所有内容但是当我点击附件时,它打开了一个与swf不同的窗口,当我希望它像youtube一样内联播放时,我看到这样做的几个网站,我不知道我做错了什么?任何想法?
我也想用Facebook C#SDK来解释这个问题,我需要在以下代码中进行更改:
_fbClient = new FacebookClient(accessToken);
var postparameters = new Dictionary<string, object>();
postparameters["message"] = "Test";
postparameters["name"] = "This is a name";
var result = _fbClient.Post("/me/feed", postparameters);
答案 0 :(得分:0)
这是我在PHP中使用的wat,直到Facebook在时间轴上引入了附件的错误。他们修好了,这应该再次起作用,老实说,我没有尝试过。
$attachment = array
(
'access_token'=>$facebook->getAccessToken(),
'message' => 'The message from the user - probably a submitted <textarea>',
'name' => 'Name of the link',
'caption' => 'Caption',
'link' => 'the url to your application or whatever you wish',
'description' => 'our description',
'picture' => 'url of the image preview - required for flash',
'type' => 'flash',
'source' => 'the url to the flash file',
);
try {
$statusUpdate = $facebook->api('/me/feed', 'post', $attachment);
}
catch (FacebookApiException $e) {
error_log($e);
}
}