1

I am using UIActivityViewController to share content on Facebook. It displays 'Posted via iOS' in Facebook.

But I want it to display the app_name instead of iOS. Can someone please help me with this.

nmh
  • 2,497
  • 1
  • 15
  • 27
Preetham Baliga
  • 271
  • 2
  • 4
  • 15
  • Can you try to read Facebook SDK documentation? Since you didn't use Facebook SDK, it will be posted "via iOS". – Raptor May 14 '14 at 09:04
  • possible duplicate of [How do I customize a UIActivityViewController to show a URL link when posting to facebook and twitter?](http://stackoverflow.com/questions/12657817/how-do-i-customize-a-uiactivityviewcontroller-to-show-a-url-link-when-posting-to) – Raptor May 14 '14 at 09:11

2 Answers2

1
  1. create FB app id from here developers.facebook.com for your app.
  2. In your info.plist add a key:-FacebookAppID value:- your fb app id.
  3. In URl scheme write fbYourFBAppID
  4. get your Facebook app reviewd and published by Facebook
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
-1

There is NO way to include your Facebook App name via UIActivityViewController.

To use your Facebook App name, you should use Facebook SDK to share content instead.

Raptor
  • 53,206
  • 45
  • 230
  • 366
  • not true, see http://stackoverflow.com/questions/12547616/sharing-with-ios-6-0-native-facebook-integration-posted-via-my-app-name/12605241#12605241 – Peter Lapisu Sep 03 '14 at 08:45
  • @PeterLapisu If you read carefully your quoted answer, it involves manual process by Facebook. My answer remains correct, as I said, there is no way to include Facebook App name via `UIActivityViewController`, which is OP's asking. – Raptor Sep 03 '14 at 08:56
  • Also, it is much easier to create a new Facebook App than to seek for Facebook's approval on special case. Agree? – Raptor Sep 03 '14 at 08:57
  • there is no manual process anymore, it should be done automatically, as soon as you setup and verify your facebook app – Peter Lapisu Sep 03 '14 at 10:02
  • Good to hear that, but please provide reference for OP. – Raptor Sep 03 '14 at 10:25