FBSDKShareDialog在IOS11上不起作用 [英] FBSDKShareDialog not working on IOS11

查看:91
本文介绍了FBSDKShareDialog在IOS11上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 FBSDKShareDialog 在Facebook上共享图像,但是在IOS11上它不起作用.Facebook共享对话框未打开.

I am using FBSDKShareDialog to share an image on facebook, but on IOS11 it is not working. The Facebook share dialog is not opening.

我如何分享该帖子,并使它也可以在IOS11和早期版本上使用.

How can I share the post and have it work on IOS11 and previous versions as well.

我以前的工作代码:

FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
photo.image = img;
photo.userGenerated = YES;
FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
content.photos = @[photo];
[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];

推荐答案

更新到最新的Facebook框架.

Update to the latest Facebook Frameworks.

  pod 'FBSDKCoreKit', '~> 4.27.0'
  pod 'FBSDKLoginKit', '~> 4.27.0'
  pod 'FBSDKShareKit', '~> 4.27.0'

这篇关于FBSDKShareDialog在IOS11上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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