Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

I am using this library to post on wall but when I use custom privacy setting like following code snippet the post is not view as custom but it shows public. please let me know if I am doing wrong code. #117

Open
kiranboghra opened this issue Mar 27, 2014 · 1 comment

Comments

@kiranboghra
Copy link

    Privacy privacy = new Privacy.Builder()
    .setPrivacySettings(PrivacySettings.CUSTOM)
    //.addAllowed(PrivacySettings.ALL_FRIENDS)
    .addDenied("10000408555") 
    .build();


    // feed builder
    final Feed feed = new Feed.Builder()
            .setMessage("Clone it out...")
            .setName("Simple Facebook SDK for Android")
            .setCaption("Code less, do the same.")
            .setDescription(
                    "The Simple Facebook library project makes the life much easier by coding less code for being able to login, publish feeds and open graph stories, invite friends and more.")
            .setPicture("https://raw.github.com/sromku/android-simple-facebook/master/Refs/android_facebook_sdk_logo.png").setLink("https://github.com/sromku/android-simple-facebook")
            .setPrivacy(privacy)
            .build();


    // click on button and publish
    mButtonPublishFeed.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            mSimpleFacebook.publish(feed, true, onPublishListener);
        }
    });
@sromku
Copy link
Owner

sromku commented Apr 1, 2014

@kiranboghra looks like you are doing a correct code. I will check it today and let you know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants