Application invites not to show appInvitePreviewImageURL image (iOS, Android)

Initially, my application did not include appInvitePreviewImageURL, so the invitation dialog showed a blank image. Now I added appInvitePreviewImageURL with a valid url, I can open the image in a browser. However, I do not see the application prompt dialog.

I use this code in iOS

FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
    content.appLinkURL = [NSURL URLWithString:APP_URL_LINK];
    //optionally set previewImageURL
    content.appInvitePreviewImageURL = [NSURL URLWithString:INVITE_IMAGE_URL];

    // Present the dialog. Assumes self is a view controller
    // which implements the protocol `FBSDKAppInviteDialogDelegate`.
    [FBSDKAppInviteDialog showFromViewController:self
                                     withContent:content
                                        delegate:self];

and using this code in android

if (AppInviteDialog.canShow()) {
   AppInviteContent content1 = new AppInviteContent.Builder().setApplinkUrl(appLinkUrl)
     .setPreviewImageUrl(previewImageUrl).build();
   AppInviteDialog.show(activity, content1);
  }

Both platforms face the same problem. Is this a cache problem?

enter image description here

+4
source share

Source: https://habr.com/ru/post/1662813/


All Articles