gpt4 book ai didi

iphone - slrequest 中的应用程序 ID

转载 作者:行者123 更新时间:2023-11-29 03:52:41 25 4
gpt4 key购买 nike

使用 SLRequest 与 Facebook 集成时是否强制使用 app Id 实际上我没有 App id,那么是否可以使用 SLRequest 集成 Facebook使用 app id 因为我没有注册 itunes 帐户?

-(void)viewDidLoad
{
self.accountStore = [[ACAccountStore alloc]init];
ACAccountType *FBaccountType= [self.accountStore accountTypeWithAccountTypeIdentifier:
ACAccountTypeIdentifierFacebook];
NSString *key = @"987654";
NSDictionary *dictFB = //use ACAccountStore to help create your dictionary
[self.accountStore requestAccessToAccountsWithType:FBaccountType options:dictFB
completion: ^(BOOL granted, NSError *e) {
if (granted) {
NSArray *accounts = [self.accountStore accountsWithAccountType:FBaccountType];
//it will always be the last object with SSO
self.facebookAccount = [accounts lastObject];
}
else {
//Fail gracefully...
NSLog(@"error getting permission %@",e);
}
}];

最佳答案

此处的 appId 表示 Facebook 客户端 ID。在 Facebook developer account ,您将获得App ID/API Key,您将在其中创建应用程序。

关于iphone - slrequest 中的应用程序 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16915541/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com