Tag: FacebookgraphicsAPI

Facebooklogin请求安装(iPhone)

我需要Facebook-SDK-3.1的Facebooklogin从Facebook-SDK-3.1loginiOS的帮助。我已经使用了所有的Facebook sdk代码示例代码sessionLoginSample ,我已经使用WebView开放代码在这个和每当我从新的IDlogin.. 。它带我到下面的图像链接install在我的project不知道究竟是什么…如果我这样做,之后从代码logout ..当我再次按下buttonlogin,它会自动log-in没有要求id and pssword“login page 。 再次它会自动login,甚至在注销后./任何人都可以帮助我为什么注销后要求存储以前的访问令牌和密码。 和代码是 – (IBAction)buttonClickHandler:(id)sender { AppDelegate* appDelegate = [[UIApplication sharedApplication]delegate]; if (appDelegate.session.isOpen) { [appDelegate.session closeAndClearTokenInformation]; } else { if (appDelegate.session.state != FBSessionStateCreated) { appDelegate.session = [[FBSession alloc] initWithPermissions:[NSArray arrayWithObjects:@"email", nil]]; } [appDelegate.session openWithBehavior:FBSessionLoginBehaviorForcingWebView completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { FBSession.activeSession = session; [self updateView]; NSLog(@" […]

在iOS中获取Facebook好友列表

我想在我的应用程序中获取Facebook的朋友名单,姓名,身份证等。 – (IBAction)onFBLogin:(id)sender { FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions: @[@"public_profile", @"email", @"user_friends"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { if (error) { NSLog(@"Process error"); } else if (result.isCancelled) { NSLog(@"Cancelled"); } else { NSLog(@"%@", result); [self getFBEmailAddress]; } }]; } -(void)getFBEmailAddress{ [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:@{@"fields": @"picture, email, friends"}] startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError […]

ios Facebook自定义urlscheme打开用户configuration文件

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"fb://profile/user.x"]]; fb://profile/[your ID] ,Facebook应用将打开你的页面。 fb://profile/(fbid) 我按照上面的步骤在iOS 8中打开Facebook本地应用程序,但它不工作,有没有办法做到这一点? 我的意思是twitter完美的是什么错了Facebook不更新他们的API! 谢谢

Facebook SDK – 处理应用程序邀请?

使用Facebook SDK ,似乎他们允许您邀请您的朋友通过SDK的AppRequest部分join应用程序。 但是,我没有看到SDK中的任何地方,你可以奖励用户邀请朋友。 我知道这是可能的,因为它已经做了很多次了,所以怎么做呢? 例如,让我们说: 1. User A invites User B to use the application. 2. User B downloads the application. 3. User A receives 100 coins for inviting User B. 我完全迷失在这里,不pipe语言,使用任何SDK的例子,将不胜感激。

如何使用Graph ApijoinFacebook组?

我想从iOS应用程序joinFacebook小组,但我找不到任何有关如何joinFacebook小组的文档。 我怎样才能find解决scheme?

为什么Facebook在iOS中返回friendlist 0? 如何检索FB的朋友列表,并将其存储parsing?

请参阅前面的讨论来构build上下文。 如何检索Facebook的朋友列表并保存它来parsing? 。 正如那家伙指出,不可能再检索朋友列表,我尝试使用旧的sdk检索它。 该sdk与我的其他应用程序正常工作。 但我仍然无法检索FB的朋友列表。 除了上面提到的问题中提到的两个问题,我也尝试了这种方法: [FBRequestConnection startForMyFriendsWithCompletionHandler: ^(FBRequestConnection *connection, id<FBGraphUser> friends, NSError *error) {}]; 但它仍然没有bueno。 有人可以告诉我有什么问题吗? 我如何检索FB列表并存储它来parsing?

无法获得user_events脸书的权限

我正在尝试获取用户所创build的所有事件,我试图请求访问user_events的权限。 不过到目前为止,facebook并没有要求用户访问事件的权限。 我已经检查了testing用户应用权限configuration文件,我的应用只获取configuration文件信息,但不是事件设置。 我使用的Facebook的SDK是3.19 if ([FBSession.activeSession.permissions indexOfObject:@"user_events"]==NSNotFound) { [FBSession.activeSession requestNewReadPermissions:@[@"user_events"] completionHandler:^(FBSession *session, NSError *error) { if (!error) { action(); } else if (error.fberrorCategory != FBErrorCategoryUserCancelled) { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Permission denied" message:@"Unable to get permission to post" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alertView show]; } }]; } else { action(); }

Facebook iOS SDK 4.0.1“您必须将此应用升级到Graph API v2.x”

我正在尝试升级一个Facebook应用程序使用即将被弃用的1.0 API到当前的。 我用当前的(4.0.1)replace了框架(FBSDKCoreKit,FBSDKLoginKit)。 当我使用web-fallbacklogin时,这样做会升级应用程序。 但是,当我通过Facebook应用程序login时,我仍然得到弃用警告。 这是我的(抽象)代码: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSLog(@"SDK version: %@", [FBSDKSettings sdkVersion]); // Prints "SDK version: 4.0.1 UIViewController *vc = [UIViewController new]; FBSDKLoginButton *loginButton = [FBSDKLoginButton new]; loginButton.frame = CGRectMake(10, 200, 300, 50); [vc.view addSubview:loginButton]; self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.rootViewController = vc; [self.window makeKeyAndVisible]; return YES; } […]

如何使用graphicsAPI iPhone开发获得Facebook事件的事件pipe理?

任何一个可以帮助我,我怎么能从Facebook使用graphicsapipipe理事件,我也searchFacebook提供给我们的事件领域,但无法获得pipe理领域,请提前帮助我,谢谢

在iOS中使用Facebook SDK获取更多个人资料照片

我在我的应用程序中使用iOS的Facebook SDK。 -(IBAction)FacebookLogin:(id)sender{ if (FBSession.activeSession.isOpen) { [self promptUserWithAccountNameForStatusUpdate]; } else { NSArray *permissions = [[NSArray alloc] initWithObjects: @"publish_stream",@"email",nil]; [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:YES completionHandler:^(FBSession *session, FBSessionState status, NSError *error) { if (error) { } else if (FB_ISSESSIONOPENWITHSTATE(status)) { [[FBRequest requestForMe] startWithCompletionHandler: ^(FBRequestConnection *connection, NSDictionary<FBGraphUser> *user, NSError *error) { if (!error) { [self promptUserWithAccountNameForStatusUpdate]; } }]; } }]; […]