It's straightforward to use Facebook the Javascript SDK and FB.ui to trigger the "feed" dialog to share on your wall.
However, this shares on your wall with everyone. I'm looking for a way to share on a specific friend's wall and not finding any answers in the Facebook dev documentation.
I was about to give up but them saw this article written June 2011 which shows FB sharing UI that shows that you can change the scope of your sharing:
I can't find any information that shows how to trigger this dialog that exposes those options. I've used this sample code from FB dev docs:
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<div id="fb-root"></div>
<script>
// assume we are already logged in
FB.init({appId: '1234567890', xfbml: true, cookie: true});
FB.ui({
method: 'feed',
link: 'https://developers.facebook.com/docs/reference/dialogs/'
});
</script>
</body>
</html>
However, this bring up a dialog that is essentially like the following. Notice no scoping options like the earlier screenshot:
Note: Even though I'm asking about the Javascript SDK and showing HTML, I ultimately I want to use the Facebook iOS SDK to share a link from my iOS app to an individual friend of the user that's logged into my app (while letting that user select which friend to share to).