facebook - Publish on wall (status, link, video etc) with security -


I am using facebook-ios-sdk, I can use security (status, link, video, and whatever) I want to publish on the faceback wall so that only specific friend updates can be seen.

How can I do this?

Check privacy arguments in this link

and the code is like this . This code is for status updates only

  NSDictionary * privacyDict = [[NSDictionary alloc] initWithObjectsAndKeys: @ "SELF", @ "value", zero]; SBJSON * Jasonurter = [[SBJesson New] AutoCare]; NSString * privacyJSONStr = [jsonWriter StringWideObject: privacyDict]; NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @ "My Message", @ "Message", privacyJSONStr, @ "Privacy", zero];   

Set the objectofkey (value, friends, network, allow, reject) of the dictionary privacy Sort by your use

 < Code> NSDictionary * PrivacyDict = [[NSDictionary alloc] initWithObjectsAndKeys: @ "CUSTOM", @ "value", @ "SOME_FRIENDS", @ "friend", @ "[Separate friend ID]", @ "Allow", @ Zero];    

Comments