Мой код
Код: Выделить всё
/* Facebook Share Code */
mBtnShared = view.FindViewById(Resource.Id.btnShare); //Facebook share
mCallBackManager = CallbackManagerFactory.Create();
int id = 0;
Bitmap icon = BitmapFactory.DecodeResource(Resource.Drawable.A1010_1, id);
SharePhoto sharePhoto1 = new SharePhoto.Builder()
.SetBitmap(icon)
.Build();
ShareContent content = new ShareMediaContent.Builder().AddMedium(sharePhoto1).Build();
ShareDialog shareDialog = new ShareDialog(this.Activity);
shareDialog.Show(content);
Код: Выделить всё
SharePhoto sharePhoto1 = new SharePhoto.Builder()
.setBitmap(...)
.build();
SharePhoto sharePhoto2 = new SharePhoto.Builder()
.setBitmap(...)
.build();
ShareVideo shareVideo1 = new ShareVideo.Builder()
.setLocalUrl(...)
.build();
ShareVideo shareVideo2 = new ShareVideo.Builder()
.setLocalUrl(...)
.build();
ShareContent shareContent = new ShareMediaContent.Builder()
.addMedium(sharePhoto1)
.addMedium(sharePhoto2)
.addMedium(shareVideo1)
.addMedium(shareVideo2)
.build();
ShareDialog shareDialog = new ShareDialog(...);
shareDialog.show(shareContent, Mode.AUTOMATIC);

Я думаю, что что-то не так с моим растровым изображением, но я здесь совершенно запутался. Надеюсь, вы, ребята, сможете мне помочь!
Подробнее здесь: https://stackoverflow.com/questions/403 ... in-c-sharp
Мобильная версия