EddyVerbruggen/SocialSharing-PhoneGap-Plugin

Facebook Message not showing on iOS anymore

Closed this issue · 9 comments

It was working a few days ago, and now it just sends the image without a message

Crap!

It seems like Facebook finally closed that loophole on iOS as well. On Android it has never even been possible.

It's against their policy to prefill the share sheet message, see the last bullet here. And it seems like a recent Fb app update enforced that policy.

I found one pretty unusable workaround: remove the Facebook app from the device and use the built-in iOS share widget. It looks the same but it still allows sharing messages (the thing found in iOS Settings > Facebook).

If you really need to share a (prefilled) message to Facebook on iOS (and Android for that matter) then using the Facebook plugin is required as it uses the Facebook SDK which is allowed to prefill the message. But it's a bit of a pain to set up.

OK, FU Facebook.

I have now implemented shareViaFacebookWithPasteMessageHint for iOS (Android already had this 'feature').

If the Fb app is installed and a message is passed, this new function will show a 'paste hint' like shown below. It will automatically appear and disappear and you can pass in any hint you want (the default hint is shown in the screenshot).

img_3652
img_3653
img_3654

Available in 4.3.18

is there a way to implement this with Phonegap Build?

Good question - Yes there is.

See the readme for what you need to add to your config.xml, it will use the latest version from plugins.cordova.io (I just published it).

thank you.. you are the man!

The Facebook plugin you referred to that is a "bit of a pain to set up".. Can this be used with "Phonegap Build"? I just really love the way the twitter share works, and I want to have a similar result when sharing via Facebook.

is that "paste message from clipboard" still works ? because i cant see that in my iphone 4s :P
due to smaller screen! as keyboard comes out automatically ?

It seems like you can currently put a bunch of text in the URL field for Facebook. Any chance you could set that native functionality in the plugin for FB so we don't have to work-around for facebook specifically?