我通过帐户框架整合Facebook,我搜索并找到了一些方法来做到这一点.它是第一次工作,但后来它显示在下面的日志,而不是提供任何信息.
日志:
Dictionary contains: {
error = {
code = 2500;
message = "An active access token must be used to query information about the current user.";
type = OAuthException;
};
}
Run Code Online (Sandbox Code Playgroud)
我使用的代码
ACAccountStore *_accountStore=[[ACAccountStore alloc] init];;
ACAccountType *facebookAccountType = [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
// We will pass this dictionary in the next method. It should contain your Facebook App ID key,
// permissions and (optionally) the ACFacebookAudienceKey
NSArray * permissions = @[@"email"];
NSDictionary *options = @{ACFacebookAppIdKey :@"my app id",
ACFacebookPermissionsKey :permissions, …Run Code Online (Sandbox Code Playgroud) 我有一个仅为iPhone开发的应用程序.当用户在iPAD上运行它时,它无法正常显示.我知道当项目是通用时如何检测"IS_iPAD"但是当项目是iPhone特定时,USER DEVICE总是作为iPhone返回.
如何检测iPhone特定应用程序是否在iPAD上运行?