【发布时间】:2013-09-06 15:31:38
【问题描述】:
我正在使用用户登录后在用户墙上发布对话框的 facebook 共享 API..
例如,用户来到我的网站并喜欢一些东西,并在他的 Facebook 墙上分享..
但是现在我需要当用户在他的墙上分享这个时,然后在我为我的网站制作的 facebook 页面上分享相同的描述..
所以可以同时在用户墙和 Facebook 页面上分享帖子吗?
我正在使用 facebook SDK 共享 API...
FB.init({appId: "my app id" status: true, cookie: true});
var obj = { method: 'feed',
link: 'http://example.php',
picture: 'http://example.php/images/logo.png',
name: 'Rate the best Brewery in town',
message:'helloo how are you ??',
caption: 'drinkbeer.in',
description: 'I just gave a thumbs up to ('+shop_name+') on DrinkBeer.In/Asheville What is your favorite place? Vote NOW!!'
};
function callback(response)
{
if (response && response.post_id)
{
alert(response.post_id);
}
}
【问题讨论】:
标签: php jquery facebook facebook-graph-api facebook-javascript-sdk