简体   繁体   中英

Facebook invite on simulator is ok, but can not show appInviteDialog on iOS device

At the same time, loginDialog and shareDialog can show.

Show appInviteDialog error is:

Domain=com.facebook.sdk.core Code=9 "(null)"

Is there any possibility for a network problem, because I use VPN, but the simulator also uses VPN.

The code:

FBSDKAppInviteContent *content = [[FBSDKAppInviteContent alloc] init];
content.appLinkURL = [NSURL URLWithString:@"https://fb.me/319673994858989"];
[FBSDKAppInviteDialog showFromViewController:self withContent:content delegate:self];

I solve this problem by using local iPhone VPN,and appInviteDialog can show. Before I use computer share network,it may cause network problems for the iOS change the net work safety requirement.Login problems occurred for this network reason before.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM