我正在尝试将我的应用程序转换到新的Facebook SDK 3.1(支持iOS6身份验证).
我工作得很好,所以我决定从FB网站上的授权应用程序列表中删除该应用程序,以测试iOS是否会再次请求许可.
现在我第一次调用会[FBRequest requestForMe]导致此错误:
响应:
{
"error": {
"message": "Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons.",
"type":"OAuthException",
"code":190,
"error_subcode":460
}
}
Run Code Online (Sandbox Code Playgroud)
一些细节:
我正在尝试按如下方式打开会话:
[FBSession openActiveSessionWithReadPermissions:nil
allowLoginUI:YES
completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
switch (state) {
case FBSessionStateOpen:
[self presentPostOptions];
break;
case FBSessionStateClosed:
case FBSessionStateClosedLoginFailed:
[FBSession.activeSession closeAndClearTokenInformation]; …Run Code Online (Sandbox Code Playgroud) 我是iPhone开发的新手.我正在做一个用户通过Facebook登录2的应用程序,一旦他提交了他的凭据并点击登录按钮,我必须从Facebook获取诸如名字,电子邮件和性别的详细信息,并且在获取用户之后必须被定向到应用程序的注册页面填写了详细信息,我需要这个应用程序兼容iPhone 4,4s和5.
我尝试使用Facebook Graph API做到这一点,但无法得到它,所以任何人都可以帮助我.
提前致谢.
我的应用程序使用facebook登录来验证用户,我听说facebook集成在iOS SDK本身内部,
现在,如果整合成为iOS内部,我可以使用它登录而无需导入facebook SDK,如果是的话?我的应用程序也会将iOS 6作为发布目标运行吗?
我想在ios 6集成Facebook上检索facebook帐户的信息,现在我这样做,我只能检索用户名:
ACAccountType *accountTypeF = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
[accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
if(granted) {
NSArray *accountsArray = [accountStore accountsWithAccountType:accountTypeF];
ACAccount *facebookAccount = [accountsArray objectAtIndex:0];
if (facebookAccount.username) {
}
}
}];
Run Code Online (Sandbox Code Playgroud)
我想知道如何检索帐户的名称和姓氏以及用户的图片......任何人都可以帮助我吗?
我想在我的应用程序中从Facebook获取用户的个人资料图片.我知道返回个人资料图片的http请求:
http://graph.facebook.com/USER-ID/picture?type=small
Run Code Online (Sandbox Code Playgroud)
但为此,我需要用户的用户ID.有没有办法在不使用Facebook SDK的情况下从某个地方获取?如果没有,有人可以告诉我一个简单的方法来获取用户的ID(或个人资料图片)?