fb.ui post to wall not working

时间:2012-06-18 06:05:19

标签: php facebook fb.ui

所以,我正在使用FB API将消息发布到用户的墙上。我的代码如下:

<script type="text/javascript">
    FB.ui({ 
        method: 'post', 
        message: 'Testing Message',
        caption: 'This is the Caption value.',
        name: 'Testing JS feed dialog on Antoher Feed',
        link: 'http://anotherfeed.com?ref=link',
        description: 'Testing property links, and action links via Feed Dialog Javascript SDK',
        picture: 'https://shawnsspace.com/ShawnsSpace.toon.nocolor..png',
        properties: 
        [
            { 
                text: 'Link Test 1', href: 'http://anotherfeed.com?ref=1'
            },
            { 
                text: 'Link Test 2', href: 'http://anotherfeed.com?ref=2'
            },
        ],
        actions: 
        [
            { 
                name: 'Shawn', link: 'http://anotherfeed.com'
            }
        ]       
    });
</script>

不起作用......任何想法?

1 个答案:

答案 0 :(得分:1)

尝试更改

FB.ui({ 
        method: 'post', 

FB.ui({ 
        method: 'feed', 

Example