facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

Cannot share to pages

Open piotrgorecki opened this issue 3 years ago • 0 comments

Checklist before submitting a bug report

Xcode version

13.2.1

Facebook iOS SDK version

12.3.2; 13.0.0; 13.1.0; 13.2.0

Dependency Manager

SPM

SDK Framework

Share

Goals

Share an image to pages

Expected results

After pressing the share button, I will see some spinner, and the content with the image will be visible on the selected business page.

Actual results

The Facebook native view is closed immediately without a spinner, SharingDelegate doesn't receive any message. The content is not visible on the Facebook Page.

Steps to reproduce

  1. Open native share view (ShareDialog.show() with mode set to native)
  2. Select some pages from the top picker
  3. Tap the Share button in the top right corner

Code samples & details

SDK IOS 15.4
The problem occurs only with pages. When I select Feed, Friend's timeline, or a group - the works fine.
The `FacebookClientToken` is added to the Info.plist


let photo = SharePhoto(image: image, userGenerated: true)
let content = SharePhotoContent()
content.photos = [photo]
let shareDialog = ShareDialog(viewController: viewController, content: content, delegate: delegate)
shareDialog.mode = .native
shareDialog.show()


LOG:

Metal API Validation Enabled [Snapshotting] Snapshotting a view (0x11782f800, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES. [connection] nw_read_request_report [C9] Receive failed with error "Software caused connection abort" [connection] nw_read_request_report [C10] Receive failed with error "Software caused connection abort" [connection] nw_read_request_report [C15] Receive failed with error "Software caused connection abort" [connection] nw_read_request_report [C19] Receive failed with error "Software caused connection abort" [connection] nw_read_request_report [C4] Receive failed with error "Software caused connection abort" [connection] nw_read_request_report [C7] Receive failed with error "Software caused connection abort" Connection 23: received failure notification [connection] nw_flow_add_write_request [C23.1 52.49.247.21:443 failed channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] cannot accept write requests [connection] nw_write_request_report [C23] Send failed with error "Socket is not connected" Task <E786F886-76B0-4F74-BB5B-37085860BCB6>.<2> HTTP load failed, 31/0 bytes (error code: -1005 [1:53]) Task <E786F886-76B0-4F74-BB5B-37085860BCB6>.<2> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=53, NSUnderlyingError=0x280804c90 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=53, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E786F886-76B0-4F74-BB5B-37085860BCB6>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <E786F886-76B0-4F74-BB5B-37085860BCB6>.<2>" ), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://api2.branch.io/v1/open, NSErrorFailingURLKey=https://api2.branch.io/v1/open, _kCFStreamErrorDomainKey=1} dnssd_clientstub write_all(28) DEFUNCT dnssd_clientstub deliver_request ERROR: write_all(28, 76 bytes) failed dnssd_clientstub write_all(28) DEFUNCT

piotrgorecki avatar May 05 '22 10:05 piotrgorecki