objective c - Facebook share functionality is not working in iOS8 -
i have implemented facebook sharing functionality using social framework. have configured facebook account using device setting. when installed facebook app on device, sharing not working expected.
when share window appears, has image sharing , no initial text , url.
ios8 - share functionality working if remove facebook app device.
ios7 - share functionality working facebook app on device.
i not sure framework issue or missing?
slcomposeviewcontroller *facebooksharevc = [slcomposeviewcontroller composeviewcontrollerforservicetype:slservicetypefacebook]; nsstring *imagepath = [nsstring stringwithformat:@"%@/%@_%@_%@.gif", [[stinteractionmanager sharedmanager] getapplibrarycachedirectory], article.journalid, article.volume, article.issuenumber]; uiimage* img = [[stinteractionmanager sharedmanager] imagenamedfromdocuments:imagepath]; [facebooksharevc setinitialtext:self.articletitle]; [facebooksharevc addurl:[nsurl urlwithstring:[self.url stringbyreplacingoccurrencesofstring:@"?dispform=ios-device" withstring:@""]]]; [facebooksharevc addimage:img]; [self presentviewcontroller:facebooksharevc animated:yes completion:nil];
if want pre-fill fields, shouldn't use facebook sdk @ all. instead, use social framework provided apple. few lines of code, can trigger slcomposeviewcontroller.
Comments
Post a Comment