facebook-ios-sdk

'FBSession: No AppID provided

别来无恙 提交于 2020-01-01 09:58:34
问题 I just updated my app with the new Facebook 3.0 SDK for iOS. Prior to this I was using the SDK that utilized FBSessionDelegate and FBRequestDelegate. In that SDK, we had to place this code in the applicationDidFinishLaunching: facebook = [[Facebook alloc] initWithAppId:FB_APP_ID andDelegate:self]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if ([defaults objectForKey:@"FBAccessTokenKey"] && [defaults objectForKey:@"FBExpirationDateKey"]) { facebook.accessToken =

How to post to a friend's wall in facebook iOS SDK 3.1?

放肆的年华 提交于 2020-01-01 07:03:48
问题 I have the SDK 3.1 working for iOS 6 for posting status updates and I have the facebook user id of the person who I want to post on their wall. I just want it to say "hi." to just one person's wall. I can target their feed with "/[id]/feed" but then I have to supply a graph object? if I use startForPostWithGraphPath() anyways. 回答1: I figured it out! First of course implement FBFriendPickerDelegate per here, unless you already have their friend ID somehow. http://developers.facebook.com/docs

After disabling offline_access and removing the app from app settings I no longer get an extended access token

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 06:40:42
问题 ** Looks like this was a bug that Facebook has since fixed. I disabled offline_access so that I could get extended access tokens without asking for the offline_access permission. While testing, it seemed to work fine at first. I got a token that expired in 60 days. Then I removed the app from facebook's app settings so I could test. As soon as I removed it, I started getting tokens that expire in 2 hours. Is this a bug? Or maybe this is a security thing like as soon as the app is removed, a

The parameter 'custom_events' or 'custom_events_file' is required for the 'CUSTOM_APP_EVENTS' activity

不打扰是莪最后的温柔 提交于 2019-12-31 10:29:08
问题 Upon upgrading from the Facebook iOS SDK version 3.7.1 to 3.8, I started seeing the following in my console log when authenticating with my app through Facebook: FBSDKLog: Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0xc5a9cf0 {com.facebook.sdk:HTTPStatusCode=400, com.facebook.sdk:ParsedJSONResponseKey={ body = { error = { code = 100; message = "(#100) The parameter 'custom_events' or 'custom_events_file' is required for the

Facebook SDK 3.1 iOS: Handle login if user remove app from Facebook Settings

狂风中的少年 提交于 2019-12-31 08:42:08
问题 I want to put some Facebook integration in my app. At this point I've managed to login, post to friends wall, retrieve the list of friends, etc. Everything is OK except for one thing... If the user removes the app from your Facebook settings / Applications and then enters to the iOS app, the code doesn't recognize that the Facebook app was removed from the user settings and assumes that is logged in (this is the problem because if the user tries to post to a friend's wall, the app do nothing)

Facebook SDK 3.1 iOS: Handle login if user remove app from Facebook Settings

丶灬走出姿态 提交于 2019-12-31 08:41:10
问题 I want to put some Facebook integration in my app. At this point I've managed to login, post to friends wall, retrieve the list of friends, etc. Everything is OK except for one thing... If the user removes the app from your Facebook settings / Applications and then enters to the iOS app, the code doesn't recognize that the Facebook app was removed from the user settings and assumes that is logged in (this is the problem because if the user tries to post to a friend's wall, the app do nothing)

Will Facebook iOS SDK 3.0 not work on iOS 3.x?

混江龙づ霸主 提交于 2019-12-31 02:11:06
问题 The Facebook iOS SDK 3.0 Beta says "These new features work with iOS 4.0 and later." Does that mean that it won't work on iOS 3.x? Does that mean that if I have an app that supports iOS 3.x, I cannot use Facebook iOS SDK 3.0? 回答1: Correct. Facebook iOS SDK 3.0 will not work with iOS 3.x. We felt that the productivity enhancements (e.g. blocks) in iOS 4.x were simply too useful. The SDK is open source, and we plan to maintain the history, which includes the existing code that does work with 3

Will Facebook iOS SDK 3.0 not work on iOS 3.x?

早过忘川 提交于 2019-12-31 02:10:09
问题 The Facebook iOS SDK 3.0 Beta says "These new features work with iOS 4.0 and later." Does that mean that it won't work on iOS 3.x? Does that mean that if I have an app that supports iOS 3.x, I cannot use Facebook iOS SDK 3.0? 回答1: Correct. Facebook iOS SDK 3.0 will not work with iOS 3.x. We felt that the productivity enhancements (e.g. blocks) in iOS 4.x were simply too useful. The SDK is open source, and we plan to maintain the history, which includes the existing code that does work with 3

Facebook iOS 3.1 SDK: can login with Safari but not natively

主宰稳场 提交于 2019-12-30 20:32:44
问题 I'm integrating the iOS 3.1 Facebook SDK. When implementing a login with Facebook feature, I call FBSession openActiveSessionWithReadPermissions:allowLoginUI:completionHandler: . When called on the simulator (where I don't have a FB account set up natively) I can successfully login. However, from a device with a native Facebook account setup, when calling openActiveSessionWithReadPermissions... the session type returned in the completion handler is always sessionStateClosedLoginFailed ,

Facebook iOS 3.1 SDK: can login with Safari but not natively

旧街凉风 提交于 2019-12-30 20:32:09
问题 I'm integrating the iOS 3.1 Facebook SDK. When implementing a login with Facebook feature, I call FBSession openActiveSessionWithReadPermissions:allowLoginUI:completionHandler: . When called on the simulator (where I don't have a FB account set up natively) I can successfully login. However, from a device with a native Facebook account setup, when calling openActiveSessionWithReadPermissions... the session type returned in the completion handler is always sessionStateClosedLoginFailed ,