Is it possible to show Facebook UIActivity
in UIActivityViewController
if there's no settings for facebook account in default iOS settings? For now if I enter some fb account - I see fb in UIActivityViewController
, if no - not see. Any ideas?
Asked
Active
Viewed 5,055 times
11
2 Answers
11
No it's not possible... If Facebook is not set up in Settings > Facebook
, then the UIActivityViewController
will not show Facebook as an option to share.

Daniel
- 23,129
- 12
- 109
- 154
-
thx) i thought so, but need to sure, mb there's some workaround, sad – in.disee Oct 15 '12 at 15:57
-
But why would you give Facebook as an option when the user isn't using Facebook? If you're looking for a kind of log in prompt. Then you should look into the Facebook SDK and prompt login if theres no session – Daniel Oct 15 '12 at 16:39
-
8On photos app, there's always a facebook button. When user is not logged, it prompts to change settings. It's a nice feature... – Hubert OG Nov 03 '12 at 15:31
-
On the apple pre installed apps, both twitter and Facebook should always appear, tapping them without an account set up in settings prompts you to do so. When the share controller is used in third party apps, it only shows available services. – Daniel Nov 24 '12 at 18:00
-
6On the iOS Simulator, if you present a UIActivityViewController, the Facebook icon appears regardless if the user is logged in or not. If the user taps Facebook, they are shown the Share Screen, and a UIAlert appears informing them they must login to share, and they can hit the "Settings" button, which brings them to the Facebook Login in Settings. iOS 6. – Ethan Mick Dec 13 '12 at 15:16
-
Is there a way to get a reference to the UIActivity of the built-in types to pass as an arg to applicationActivities? For example, get a reference to the UIActivity corresponding to UIActivityTypePostToFacebook? – birdFEEDER Dec 19 '12 at 15:36
-
2@Wayfarer I wish that was the device default behaviour – Oded Regev Feb 21 '13 at 13:21
-
You should let Apple know that this is something you'd like to see changed: http://bugreporter.apple.com/ – ccjensen Aug 20 '13 at 17:01
6
It's possible with another view controller called OWActivityViewController https://github.com/brantyoung/OWActivityViewController
It works for me!

crz
- 438
- 5
- 18
-
-
http://stackoverflow.com/questions/26451583/uiactivityview-controller-behaviour-is-strange – Mian Muhammad Umair Liaqat Oct 19 '14 at 14:48