What's the difference between these two Facebook versions of UIActivityType?

When I share content via Facebook in iOS app, inside the method

- (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType

      

activityType

for com.facebook.Facebook.ShareExtension

some devices and com.apple.UIKit.activity.PostToFacebook

for other devices.

When do I expect to see each of them? The Facebook app is installed for every device tested.

+3


source to share


1 answer


It looks like com.facebook.Facebook.ShareExtension refers to ... a Facebook app extension.

com.apple.UIKit.activity.PostToFacebook seems to refer to Facebook's integrated UI.



Finally, the first to select Facebook when trying to share (say they open the Photos app, select a photo, click on the Share button at the bottom left of the screen, and then click on the Facebook app icon) and the other, when someone tries to share using Apple in the Share dialog. I used this url to understand it better.

+2


source







All Articles