Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use share content to specific friend's wall on Facebook from an iOS app

Tags:

ios

facebook

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:

Screenshot of FB sharing dialog with scoping

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:

enter image description here

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

like image 749
TMC Avatar asked Aug 04 '11 22:08

TMC


People also ask

How do I share someone else's post on Facebook from my Iphone?

1. Locate the post which you want to share and press the Share button in the bottom-right corner of the post. 2. In the pop-up menu that appears, select Share now if you want to instantly share the post or Share to News Feed if you want more control, including the ability to add descriptive text to the post you shared.

Why can't I share a post to a page I manage 2022?

• Share on a Page You Manage* *If you do not see this option, the account you're currently logged in with does not have page manager/administrator access. You'll need to sign in with an account that has page-managing access or request access from the Page Administrator.


1 Answers

Our feed dialogs do not allow posting to another user's wall. To do this, I would suggest using our send dialog which allows the developer to specify the recipient user (end user can add additional users once the dialog is rendered).

It can be rendered via the graph api as such:

https://www.facebook.com/dialog/send?app_id=123050457758183&
name=People%20Argue%20Just%20to%20Win&
link=http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html&
redirect_uri=http://www.example.com/response
like image 116
DSchultz Avatar answered Nov 15 '22 08:11

DSchultz