从墙上的自定义标签粘贴链接时,我注意到描述是从信息标签而不是自定义标签中获取的。我想将描述更改为与自定义选项卡相关的内容。有人知道怎么做吗?
发布的链接下的解释不是来自此来源http://www.facebook.com/commerzbankcareer?sk=app_265085363536247,而是形成此http://www.facebook.com/commerzbankcareer?sk=info
我尝试在自定义标签的PHP文件中添加Facebook SDK中的FB.ui提要对话框,但是这不起作用:
<div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({appId: '265085363536247', status: true, cookie: true, xfbml: true}); window.setTimeout(function() { FB.Canvas.setAutoResize(); }, 250); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }());function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
link: 'https://www.facebook.com/commerzbankcareer?sk=app_265085363536247',
picture: '',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with users.'
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}