【发布时间】:2011-06-20 13:21:54
【问题描述】:
我想要一个提要对话框,我也想在其中使用他的名字或用户对象。我正在使用 FB.Ui 方法。
<script>
var publish = {
method: 'stream.publish',
display: 'popup', // force popup mode
attachment: {
name: 'I visted this Appp',
caption: 'The Facebook Connect JavaScript SDK',
description: (
'A small JavaScript library that allows you to harness ' +
'the power of Facebook, bringing the user\'s identity, ' +
'social graph and distribution power to your site.'
),
href: 'http://fbrell.com/'
}
};
FB.ui(publish, Log.info.bind('stream.publish callback'));
</script>
正如您在标题中看到的那样,它是“我访问了这个应用程序”。我想将其更改为 Facebook 用户的名字..即“first_name 访问了这个应用程序”..任何人都可以帮助我
【问题讨论】:
标签: facebook facebook-graph-api