How to share on a facebook page from iOs App - Objective-c? -


when share link ios app (with uiactivityviewcontroller) share link on facebook profile or facebook's group. how can share on page? have "facebook pages manager" app installed on device, app doesn't appear on list .

nsstring *text = @"https://stackoverflow.com/questions/ask"; nsarray *activityitems = @[text];  nsarray * applicationactivities = nil; nsarray * excludeactivities = @[];//@[uiactivitytypeassigntocontact, uiactivitytypecopytopasteboard, uiactivitytypeposttoweibo, uiactivitytypeprint, uiactivitytypemessage];  uiactivityviewcontroller * activitycontroller = [[uiactivityviewcontroller alloc] initwithactivityitems:activityitems applicationactivities:applicationactivities]; activitycontroller.excludedactivitytypes = excludeactivities;  uiviewcontroller *vc = ...my controller..;  // ios 8 - set anchor point popover if ( [activitycontroller respondstoselector:@selector(popoverpresentationcontroller)] ) {     activitycontroller.popoverpresentationcontroller.sourceview = vc.view; }  [vc presentviewcontroller:activitycontroller animated:yes completion:nil]; 

i try facebook sdk, results it's same, can't post on page.

nsurl *nsurl = @"https://stackoverflow.com/questions/ask";  sycontainerviewcontroller *vc = ...my controller..; fbsdksharelinkcontent *content =[[fbsdksharelinkcontent alloc] init]; content.contenturl = nsurl; [fbsdksharedialog showfromviewcontroller:vc withcontent:content delegate:nil]; 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

minify - Minimizing css files -

php - How to remove letter in front of the word laravel -