facebook-ios-sdk

Facebook SDK: openActiveSessionWithPermissions completionHandler not called

冷暖自知 提交于 2019-12-12 12:24:30
问题 Using the code from Facebook I have implemented - (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI { NSArray *permissions = [[NSArray alloc] initWithObjects: @"publish_actions", nil]; return [FBSession openActiveSessionWithPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { NSLog(@"error %@", error); [self sessionStateChanged:session state:state error:error]; }]; } It returns NO which I understand because it's a

Upload multiple photos as a single post like timeline photos not like album in Facebook using iOS SDK

邮差的信 提交于 2019-12-12 11:50:05
问题 I am developing a iOS app in which i need to support upload multiple photos to Facebook from app. From many discussed forums and doc, i know that using batch request it is possible. For the first batch request with multiple photos, the default album is created and added the photos in that album. From next request, all the images those uploaded via batch request are added in that album which is created by default at previous. So all the images are grouped as a single album. So it is showing

Facebook SDK 4.5 IOS 9

拟墨画扇 提交于 2019-12-12 09:34:01
问题 I got an issue with the new FBSDK. Whenever I try to call the login method logInWithReadPermissions, I get this error message: ERROR : "canOpenUrl : failed for url "fbauth2://" error: "(null)" I have my config .plist file following the ios9 tuto ( https://developers.facebook.com/docs/ios/ios9 ) on dev.facebook. So, I got the NSAppTransportSecurity dictionary and the LSApplicationQueriesSchemes array (with the string "fbauth2" on it) Would you know how to resolve this error? 回答1: 1]

How to make FBLoginView use system account by default

别说谁变了你拦得住时间么 提交于 2019-12-12 06:08:16
问题 Previous versions of iOS Facebook SDK (3.12) has allowed to specify loginBehavior property at FBLoginView to use system account: https://developers.facebook.com/docs/reference/ios/3.12/class/FBLoginView/ How can I implement same behavior (use FBSessionLoginBehaviorUseSystemAccountIfPresent) in latest version of SDK? 回答1: Which version of the SDK are you having problems with. All the v3.x versions of the SDKs provide that loginBehavior property like you mentioned. In v4.0 of the SDK (released

Cannot get permission for user_events facebook

陌路散爱 提交于 2019-12-12 05:57:17
问题 I am trying to get all the events that user has created for that i am trying to request permission for accessing the user_events. However thus far facebook is not asking user for permission to access events. I have checked the test user app permission profile and my app is only getting profile info but not events settings. The facebook sdk i am using is 3.19 if ([FBSession.activeSession.permissions indexOfObject:@"user_events"]==NSNotFound) { [FBSession.activeSession requestNewReadPermissions

How to track facebook password change and profile changes?

寵の児 提交于 2019-12-12 05:50:35
问题 I am integrating facebook iOS SDK 4.0 in my mobile app. I came into scenario where user logged into our mobile app with facebook credentials, after some time the user changed his password and Firstname in facebook. Now How do I track this change in mobile app? and redirect user to validate facebook credentials in mobile app? 回答1: In both v3 and v4 of the SDK, the access token is cached locally on the device (by default), and the only way to know if it's still "valid" is to make a graph

request Facebook friends return empty

女生的网名这么多〃 提交于 2019-12-12 05:17:08
问题 I have two Facebook accounts(friends) and I logged in and authorized my app in both. But when I try to request friends from any of them I get an empty list. Can this be related to the fact that my app still in development? granted permissions = [AnyHashable("user_friends"), AnyHashable("contact_email"), AnyHashable("email"), AnyHashable("public_profile"), AnyHashable("user_birthday")] my code: FBSDKGraphRequest(graphPath: "/me/friends", parameters: nil).start(completionHandler: { (connection,

AWS Cognito integration swift3 Refresh provides ResourceNotFoundException

人盡茶涼 提交于 2019-12-12 05:14:19
问题 Following the answer here: https://github.com/aws/aws-sdk-ios/issues/357 At the very bottom there is a mini guide on getting swift and cognito working. I've made a AWSCustomIdentityProvider as such: import Foundation import AWSCognitoIdentityProvider import AWSCognito class AWSCustomIdentityProvider: NSObject, AWSIdentityProviderManager { private var dict = NSDictionary() func addToken(value:NSString) { dict = ["graph.facebook.com":value] } public func logins() -> AWSTask<NSDictionary> {

iOS Facebook Framework login process

六眼飞鱼酱① 提交于 2019-12-12 04:18:50
问题 I am developing an iOS app in which I am providing functionality to login via Facebook. For this I am using the Facebook framework. I have gone through developers.facebook.com and implemented login functionality as described there. FB login is working properly. FB login functionality works like this: FB Framework will try to find FB App, if it is present then it will authenticate using FB app credentials. If FB app is not present then it will try to authenticate using the iPhone device

FBRequestConnection not working

血红的双手。 提交于 2019-12-12 03:46:18
问题 Nothing gets printed out in the console, and I don't get any info while using a - (void)request:(FBRequest *)request didLoad:(id)result either Basically I would like the user's name, FB username, and FB id . Is there any other way to get this info, since this method does not seem to be working. - (IBAction)performLogin:(id)sender { [self.spinner startAnimating]; GIFAppDelegate* appDelegate = [UIApplication sharedApplication].delegate; [appDelegate openSession]; FBRequestConnection* conn = [