Question

So, I'm using the FB API to post a message to a user's wall. My code is as follows:

<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>

Doesn't work... any ideas?

Was it helpful?

Solution

Try changing

FB.ui({ 
        method: 'post', 

to

FB.ui({ 
        method: 'feed', 

Example

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top