Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6337203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:12:28+00:00 2026-05-24T19:12:28+00:00

I know the basics of how to post a status update, link, etc. from

  • 0

I know the basics of how to post a status update, link, etc. from within a Facebook application, thanks to http://developers.facebook.com/docs/guides/canvas/, but I can’t figure out whether it’s possible to limit the post’s visibility to a certain preset list of friends of the user authorizing the post (since the documentation on Facebook’s site isn’t exactly the best).

Is it possible to post to the user’s wall from within my application so that it’s only visible to a pre-selected list of friends? I’m mimicking the functionality of Google Plus’s “Circles” feature, where the user can have various groups of friends and post to only those group lists.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:12:29+00:00Added an answer on May 24, 2026 at 7:12 pm

    This is definitely possible. Please read the Post documentation, especially the privacy parameter:

    object containing the value field and optional friends, networks,
    allow and deny fields.

    The value field may specify one of the following strings: EVERYONE,
    ALL_FRIENDS, NETWORKS_FRIENDS, FRIENDS_OF_FRIENDS, CUSTOM .

    The friends field must be specified if value is set to CUSTOM and
    contain one of the following strings: EVERYONE, NETWORKS_FRIENDS (when
    the object can be seen by networks and friends), FRIENDS_OF_FRIENDS,
    ALL_FRIENDS, SOME_FRIENDS, SELF, or NO_FRIENDS (when the object can be
    seen by a network only).

    The networks field may contain a comma-separated list of network IDs
    that can see the object, or 1 for all of a user’s network.

    The allow field must be specified when the friends value is set to
    SOME_FRIENDS and must specify a comma-separated list of user IDs and
    friend list IDs that ‘can’ see the post.

    The deny field may be specified if the friends field is set to
    SOME_FRIENDS and must specify a comma-separated list of user IDs and
    friend list IDs that ‘cannot’ see the post.

    Note: This privacy setting only applies to posts to the current or
    specified user’s own Wall. Facebook ignores this setting for targeted
    Wall posts (when the user is writing on the Wall of a friend, Page,
    event, group connected to the user). Consistent with behavior on
    Facebook, all targeted posts are viewable by anyone who can see the
    target’s Wall.

    Privacy Policy: Any non-default privacy setting must be intentionally
    chosen by the user

    A small example using the PHP-SDK:

    <?php
    require '../src/311/facebook.php';
    
    $facebook = new Facebook(array(
      'appId'  => 'APP_ID',
      'secret' => 'APP_SECRET',
    ));
    
    $user = $facebook->getUser();
    
    if ($user) {
      try {
        $privacy = array(
            'value' => 'CUSTOM',
            'friends' => 'SOME_FRIENDS',
            'allow' => 'XXXXXXX,YYYYYYY' // Change this to your friends ids
        );
        $params = array();
        $params['privacy'] = json_encode($privacy);
        $params['message'] = "Special for TWO friends";
        $post_id = $facebook->api('/me/feed', 'POST', $params);
        var_dump($post_id);
      } catch (FacebookApiException $e) {
        print_r($e);
        $user = null;
      }
    }
    ?>
    

    What I’ve done here:

    1. Created 4 test accounts
    2. Switched to one of them “Barbara”
    3. Went to my app and logged in (with publish_stream permission)
    4. Run the above code and the result:
      enter image description here
    5. I’ve specified two friends (Ruth and Linda)
    6. Now we switch to the 4th friend (Dorothy) and check Barbara’s wall and… indeed the post is not visible. 🙂

    Please note that you have a lot of options here, you can deny specific user, allow networks, allow Friends list…it’s really up to you to customize the value, friends, allow, deny and networks fields.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

def post_to_twitter message = from some where url = URI.parse('http://twitter.com/statuses/update.xml') req = Net::HTTP::Post.new(url.path) req.basic_auth
I want to know about Virtualization in detail. But start from basics, like what
I'm trying to do a very basic http POST to a web service from
I know basics of UML and java's OO interpretations using class diagrams. But after
I have a problem with operators. Generally I know basics of using operators. But
I understand the basics of networking such as Lan and stuff. I know what
I'm still hacking on my old ruby for the undead post (I know, I
As some of you may of seen from my previous post I'm new to
I know how to respond to a form post in ASP.NET MVC using jQuery,
From my previouse two post: 1) create a page which contain a flash can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.