- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我停留在 Facebook 分享上..
我想要的只是发布来 self 的 iOS 应用程序的图像,其中包含文本和应用程序链接,可以将用户重定向到已安装的应用程序或 App Store。
应用程序链接工作正常,我描述了一些像这样的元标记:
<meta property="al:ios:url" content="cubeDev://" />
<meta property="al:ios:app_store_id" content="1054030..." />
<meta property="al:ios:app_name" content="My app name" />
<meta property="al:web:should_fallback" content="false" />
<meta property="og:image:width" content="50" />
<meta property="og:image:height" content="50" />
<meta property="og:image" content="https://spb.hh.ru/employer-logo/1625583.png" />
<meta property="og:type" content="website" />
<meta property="og:title" contetn="title" />
<meta property="og:description" content="App description.." />
<meta property="fb:app_id" content="31667067867..." />
分享代码也很简单:
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"http://176.31.132.151:8000/"];
content.imageURL = [feedCell imageURL];
content.quote = [feedCell text];
FBSDKShareDialog *shareDialog = [[FBSDKShareDialog alloc] init];
shareDialog.mode = FBSDKShareDialogModeNative;
if(!shareDialog.canShow) {
shareDialog.mode = FBSDKShareDialogModeFeedBrowser;
}
shareDialog.fromViewController = self;
shareDialog.shareContent = content;
shareDialog.delegate = self;
[shareDialog show];
在哪里http://176.31.132.151:8000/是我的应用程序链接。
似乎当您在应用程序链接的元标记中描述图像时,图像 url 属性将不起作用..
所以,我的目标是发布来自应用程序的图像以及文本,并在下面发布应用程序链接以及我的应用程序图标和说明。
将不胜感激。
最佳答案
我发现 Facebook 团队成员之一对此行为的解释,似乎当前的 fb sdk 无法做到这一点,唯一的解决方案是创建一个带有动态参数的应用程序链接页面..没有我预期的那么好。
Roemer Vlasveld · · Facebook Team Hi Deepak,
...
It turns out that this behaviour is by design. In the past, the experience with sharing both a photo and a link caused a mixed experience. Currently, when sharing both a photo and a link, only the link will be used to create a preview.
The workaround would be to add the photo as an Open Graph image to the link that will be shared. This might require that each link is unique, but that will ensure that the preview created (at least in the created post) uses the image from the provided link.
I will mark this bug as 'By Design', since it reflects intended behavior. If you still encounter problems with this, feel free to reopen by leaving a new comment or reply.
Roemer
关于ios - Facebook 分享图片和 Applinks,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38525095/
我将 .well-known/assetlinks.json 添加到我的网站,当我尝试链接并在 android studio 应用程序链接助手中验证时,它会显示“成功!您的应用程序已与所选域相关联。”
在为我的应用的通用链接过滤允许的子域时出现问题。 假设我有这些域: - a.subdomain.domain.com - b.subdomain.domain.com - c.subdomain
我有一个 game那是使用applinks。从我的计算机运行调试和发布版本时,应用链接工作正常,但不适用于从 Google Play 下载的版本。使用 Google Play 版本时,我会收到一个对话
我想知道你是否能帮忙,这简直让我发疯。我正在尝试将深度链接集成到我的应用程序中,如下 Lightning lecture但它根本行不通。我什至无法让我的项目在聚光灯搜索中显示。 所以我创建了一个全新的
我停留在 Facebook 分享上.. 我想要的只是发布来 self 的 iOS 应用程序的图像,其中包含文本和应用程序链接,可以将用户重定向到已安装的应用程序或 App Store。 应用程序链接工
当我尝试在设备上启动我的 Android 应用程序时,崩溃并出现奇怪的错误。这个问题是从两天前开始出现的。这是错误: 11-09 17:27:30.461 25146-25146/com.ten.te
我的要求是用户在点击 Facebook 帖子后应该重定向到特定的应用程序页面。 我引用了这个链接:Cannot get the new AppLinks to work on iOS or Andro
如果我为我的动态链接使用 firebase 提供的域,我如何修改 assetlinks.json?它是可访问的,目前它返回空数组: https://setel.page.link/.well-know
如果我为我的动态链接使用 firebase 提供的域,我如何修改 assetlinks.json?它是可访问的,目前它返回空数组: https://setel.page.link/.well-know
有人建议将与即时应用程序相关的 json 托管到以下位置 示例网站 https://sample.name/.well-known/assetlinks.json 因为我们没有单独的域名服务器,所以有
我正在尝试创建一个利用应用程序链接的应用程序。也就是说,我想从我自己的应用程序导航到其他 iOS 应用程序。我已经安装了 Bolt 框架并正在使用 [BFAppLinkNavigation navig
我正在尝试创建一个环境来支持从电子邮件中打开 iPhone 应用程序。如果我将 Facebook 的托管服务用于 appLink ( Facebook AppLink Hosting API ),只要
我有以下 list 代码:
我已将 facebook sdk 导入我的工作区并添加到我的项目中,但出现此错误... 请帮帮我.. 最佳答案 此错误包括但为 不限于 Facebook。您使用了不存在/尚未下载的主题。 我一般建议在
我使用 UIActivityViewController 分享内容,代码很简单: UIActivityViewController* activityViewController = [[UIAc
随着 facebook 的新变化,到应用程序的深层链接(通过基本共享共享)不再有效。 因此,我决定实现应用链接。但是我的移动应用程序没有相应的网站来显示我想分享到 Facebook 的内容。所以我选择
我想在我的网站上制作一个按钮,允许用户打开 native facebook 应用程序(如果已安装),否则打开 facebook 网站。据我了解,我必须为此创建单独的 html 页面。 我尝试了 fac
我发现了一个相关问题:Cannot get the new AppLinks to work on iOS or Android但我不确定它是否与我面临的问题完全相似。因此,我提出了这个问题。 如果我
我在测试网页的头部添加了以下元信息。 Opening a link to this page in Facebook iOS app should launch my "Ap
我需要从我的 native 移动应用程序中打开第三方应用程序。我知道这在 iOS 上称为通用链接,在 Android 上称为 AppLink。 我为此做了很多研究,并且我已经能够在应用商店中设置指向第
我是一名优秀的程序员,十分优秀!