5

I want to give the possibility to the players of my game, to publish to their Facebook feed images and videos stored on their device.

The Facebook SDK does not seem to provide this feature through FB.FeedShare. Only already hosted media can be referenced in the mediaSource field.

Several questions have been asked about this subject (1, 2, 3)

However, the Android SDK and iOS SDK does provide it. Isn't the Facebook SDK a simple "abstract layer" wrapping the native SDKs? Why all the native SDK features haven't been implemented?


I know an alternative solution would be to upload the media using the Graph API and reference from the FB.FeedShare function.

EDIT: As mentionned by @misorude, the publish_actions permission has been removed


TL;DR

Is it possible to create the Android and iOS plugins that would call the native functions used to share a media stored on the device of the users?

If so, do you know how is it possible to "reference" the native Facebook SDKs without bundling them into the plugins I will create? (Since they are already in the Unity Facebook SDK in my project).

EDIT: Seems like someone already tried to create a wrapper, but "it didn't play nice"

I am also open to other suggestions. My final goal is to let the user publish a video. I would love to use intents to open the Facebook app, but iOS does not have such feature.


Thanks in advance.

Community
  • 1
  • 1
Hellium
  • 7,206
  • 2
  • 19
  • 49
  • 1
    Facebook has removed `publish_actions` permission, so you can not post or upload anything in the name of a user any more via API (exception - live videos.) – misorude Sep 28 '18 at 13:32

0 Answers0