facebook-ios-sdk

Facebook iOS SDK 3.1 with XCode 4.2 linker errors

孤街浪徒 提交于 2019-11-30 06:45:01
I've just updated the Facebook iOS SDK in my project from 3.0 to 3.1. The project does not compile anymore. Instead I get the following linker errors: Undefined symbols for architecture i386: "_ACFacebookAppIdKey", referenced from: -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o) "_ACFacebookAudienceEveryone", referenced from: -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o) "_ACFacebookAudienceFriends", referenced from: -[FBSession

Error when using [FBSession openActiveSessionWithPublishPermissions: ..]

情到浓时终转凉″ 提交于 2019-11-30 06:39:37
问题 I'm updating an app to use the latest Facebook SDK in order to gain access to the iOS6 native Facebook support. It currently uses a pretty old version of the Facebook SDK. The app requires the "publish_actions" permission from Facebook for the only thing it does with Facebook. I initially thought I could use [FBSession openActiveSessionWithPublishPermissions: ...] but this fails on iOS6 when the user has Facebook configured in iOS6 settings. It fails because of this requirement, from the

exc_bad_access in Facebook sdk login Xcode 8 beta

眉间皱痕 提交于 2019-11-30 05:15:51
recently I started adding my application IOS 10 features while I encountered a weird bug: When authenticating with facebook SDK via browser as soon as I click the confirmation button in facebook itself at the embeded browser, the app crashes. Unfortunately this bug is not informative, the console doesn't tell me anything about it and there is not call stack to see where this exception was occurred. Two points for demonstrating this bug cause: 1. This bug doesn't occur if the login is via System account but only when it in browser as you can see in the next photo: (As soon as I tap OK the

Facebook iOS SDK 3.x feed dialog is gone?

泪湿孤枕 提交于 2019-11-30 03:28:06
问题 Today I started to use Facebook SDK 3.0 for iOS and I realized that there is no FBDialog class anymore. I've searched developers.facebook.com for some tutorials how I can show feed dialog using new sdk. We used to write: [facebook dialog:@"feed" andParams:params andDelegate:self]; But, it seems that all tips talking about dialogs are related to old SDK in developers.facebook.com . Did anybody implemented feed dialog with new SDK? Or, should we build our own DialogViewController to represent

How to use Facebook deferred deep linking feature for new installs and to test the same before publishing iOS App to appStore?

蹲街弑〆低调 提交于 2019-11-30 03:20:26
I have done some exploration and have found the following things, this is what I have done so far: Implemented custom URL, like myApp:// Added FacebookAppID, display name to my info.plist file Included the Facebook SDK Created Facebook app link through Facebook mobile hosting API and got the URL something like: https://fb.me/1601524146753610 Used the above URL as deep link while creating app-install Ads. Implemented the below function in my AppDelegate.m - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id

ios Facebook SDK v4.x access token null despite being logged in via FBSDKLoginButton

瘦欲@ 提交于 2019-11-30 03:11:03
问题 My facebook access token is null despite the fact that the button shows that I'm logged in. Anyone know why this would be? From RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self->login_button = [[FBSDKLoginButton alloc] init]; self->login_button.center = self.view.center; [self.view addSubview:self->login_button]; FBSDKAccessToken* access_token =[FBSDKAccessToken currentAccessToken]; NSLog(@"Access Token, %@",access_token); } From ApplicationDelegate.m - (BOOL)application:

How to post to a friends Wall using Facebook Graph API for iPhone

情到浓时终转凉″ 提交于 2019-11-30 02:31:14
I want to post something in the users friends wall. I use this to post into the user wall SBJSON *jsonWriter = [[SBJSON new] autorelease]; NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil]; NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys: @"a long run", @"name", @"The Facebook Running app", @"caption", @"it is fun", @"description", @"http://itsti.me/", @"href", nil]; NSString *attachmentStr

Native iOS app: What do I put in Facebook's developer “iPhone App Store ID” under Settings, Basic?

a 夏天 提交于 2019-11-29 21:59:51
I'm about finished with a native iPhone app, but I need to finish SSO via Facebook. Despite my best effort, I am unable to figure-out what value is supposed to go in the "iPhone App Store ID" field during the process where I register my app with Facebook on their website. I have an "App ID" at http://developer.apple.com/ios/manage/bundles/ , but Facebook gives me the error "iPhone App Store ID must be an integer" when I put my App ID in that field. My App ID is not an integer. I know Facebook specifically labels the field with "App Store"; please tell me that isn't really the case, since...

Does the Facebook iOS SDK require the user to authenticate every time they use the app?

て烟熏妆下的殇ゞ 提交于 2019-11-29 20:30:19
As described in the README for facebook-ios-sdk, my app calls Facebook#authorize:delegate: before performing any API calls. This method requires the user to authenticate (either in the Facebook app or in Safari) and then drops control back to my iPhone app. The problem is it asks the user to authenticate every time I call the method. If they've already granted permission to my app, they get a message saying that the app is already authorized and they have to press Okay to go back to my app. It doesn't look very professional. So I have two questions: Does the user always have to reauthorize in

ios6 facebook integration login always FBSessionStateClosedLoginFailed never opens

旧街凉风 提交于 2019-11-29 17:28:11
问题 this question is very similar to Facebook SDK for iOS , on iOS 4.0 device, but as I cannot make comments there, I open a new question. I think the questions are not the same: When trying to update the facebook integration of my app to facebook 3.1 I am not getting the facebook session to open the sessionStateChanged Callback always ends up in FBSessionStateClosedLoginFailed. in my setup I have the callback in my appdelegate - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url