Ich arbeite an einer Parse-Anwendung, wo ich Erlaubnis von Benutzer nach dem Login benötigen. Ich benutze PFFacebookUtilsV4 Framework. Ich habe versuchtPFFacebookUtils logInWithPublishPermissions lädt keine Erlaubnis Bildschirm
[[PFFacebookUtils facebookLoginManager] logInWithPublishPermissions:@[@"publish_actions"] fromViewController:controller handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (result.isCancelled)
{
NSLog(@"permission denied");
}else{
NSLog(@"permission granted");
}
}];
dieser Pop-up-Safari-Browser, aber lädt nichts. mache ich etwas falsch mit dem obigen Code oder was könnte das mögliche Problem sein?
AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:nil];
return [[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
}
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
return [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
[FBSDKAppEvents activateApp];
}
plist
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
<key>FacebookAppID</key>
<string>XYZ</string>
Können Sie mir zeigen Sie AppDelegate ? –
Was sind die Inhalte Ihrer .plist? – Simon
Danke @MilanMendpara Ich habe eine Antwort erstellt –