facebook - iOS: How to share text and image on social networks? -


please, can tell me if i'm doing mistakes?

nsstring *sharedmsg=[nsstring stringwithformat:@"hello world"]; uiimage* sharedimg=[uiimage imagenamed:@"image"]; nsarray* sharedobjects=[nsarray arraywithobjects:sharedmsg, sharedimg, nil]; uiactivityviewcontroller *activityviewcontroller = [[uiactivityviewcontroller alloc]                initwithactivityitems:sharedobjects applicationactivities:nil]; activityviewcontroller.popoverpresentationcontroller.sourceview = self.view; [self presentviewcontroller:activityviewcontroller animated:yes completion:nil]; 

at runtime when select icon of facebook text missing, image correctly displayed.
xcode 6.3.1, tested on ipad.

it seems recent update facebook application has replaced in-built facebook share activity 1 ignores status text - if remove facebook app device text displayed using code have. if have facebook app installed images, urls not text

facebook's policies don't allow pre-populate status messages , require content user generated - while understand intention behind this, think kind of stupid in many cases - example in game want pre-populate user's score, can't, user presented empty dialog box. remove facebook sharing option no-one ever use now.

this response facebook confirms behaviour design


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -