我在我的网站上使用了fb共享,但我对fb.ui"描述"有一个问题。没有换行
这是我的代码,请帮帮我
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '****************',
status : true,
xfbml : true
});
// Code in here will run once FB has been initialised
function FB_post_feed(method,name,link,picture,caption,description){
FB.ui({
method: method,
name: name,
link: link,
picture: picture,
caption: caption,
description: description
});
}
};
$(document).ready(function(){
$(document).on("click","a.share-btn",function(){
FB.ui({
method: 'feed',
name: 'Test',
link: 'http:/test.com',
picture: 'http://test.com/public/images/logo.png',
caption: 'testing purspose',
description: 'my script run succesfully.\n But decsription not line break.\n please help me!'
});
});
});