使用UIActivityViewController在Facebook的同一帖子上分享多张照片 [英] Share multiple photos on the same post in Facebook using UIActivityViewController

查看:117
本文介绍了使用UIActivityViewController在Facebook的同一帖子上分享多张照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在给出的代码下方,我将使用UIActivityViewController共享1个文本和2张照片.然后,我选择 Facebook 作为我的共享目的地,并在Feed上的每张照片的2个独立帖子上共享它,但我想要的是在一个帖子中共享1个文本和2张照片. 我该如何实现?我在这里做了很多搜索,没有找到合适的答案.在我看来,Facebook可能没有明确的方法来执行此操作,因此好像这是一个问题.

Below given code, I'm sharing 1 text and 2 photos using UIActivityViewController. Then I choose Facebook for my sharing destination and it's shared on 2 separated posts on the feed for each photo but what I want is to share it in one single post with 1 text and 2 photos. How can I achieve this? I have done lot of search on here and found no proper answer. It seems to me that Facebook may have no clear way to do this, so it's like such an issue may lie on their side.

activityItems = @[self.textDetail.text, self.imageFileView1.image, self.imageFileView2.image];

UIActivityViewController *activityController =
[[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];

推荐答案

此问题已通过新的iOS版本或Facebook的处理活动项目的新方法解决.无论如何,它按我现在期望的那样工作.

The issue was solved by either new iOS ver or Facebook's new way of handling activity items. Anyway it works as I expect now.

这篇关于使用UIActivityViewController在Facebook的同一帖子上分享多张照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆