How can I use
new SharePhoto.Builder()
.setImageUrl(Uri uri)
.build();
to share a file from internal storage to facebook stories? The documentation mentions adding
<provider android:authorities="com.facebook.app.FacebookContentProvider{APP_ID}"
android:name="com.facebook.FacebookContentProvider"
android:exported="true"/>
to the AndroidManifest.xml
, but it's not enough.
There is a method FacebookContentProvider.getAttachmentUrl()
which gives a path that I tried to use to save my file there, but it doesn't work.
The error that I am getting from the Facebook SDK callback manager is the following.
Failed to copy sticker