Questions tagged [facebook-ios-sdk]

Facebook's SDK for developing Facebook-connected applications for iOS devices

Facebook SDK 4.x for iOS.

1778 questions
8
votes
1 answer

Facebook iOS SDK v4.0 Check User Session State

In the new Facebook iOS SDK, the entire login process has been revamped. The old [FBSession activeSession].isOpen trick doesn't work anymore. How can I reliably determine the state of a user's session in the new SDK? My current thoughts are simply…
danielmhanover
  • 3,094
  • 4
  • 35
  • 51
8
votes
8 answers

Generate simulator build

I am working on an app that needs data from a Facebook app. Facebook want a release simulator build. I have followed FB's instruction to the letter but when i try to build the simulator package xcodebuild -arch i386 -sdk iphonesimulator7.1 i get…
Pantelis Proios
  • 1,359
  • 1
  • 20
  • 32
8
votes
3 answers

Facebook iOS SDK 3.5.1: openActiveSessionWithReadPermissions - completion handler called twice

I have a button to share a link. I'm using basically two calls: openActiveSessionWithReadPermissions and requestNewPublishPermissions. So this is the button action: - (IBAction) shareFacebookButtonAction:(id)sender if (![[FBSession activeSession]…
laucel
  • 509
  • 1
  • 5
  • 17
8
votes
3 answers

How to post to a users wall using Facebook SDK

I want to post some text to a users wall using the facebook sdk in an iOS app. Is posting an open graph story now the only way to do that? I've found with open graph stories they are really strange, you can only post things in the format "user x a…
Tiddly
  • 1,620
  • 3
  • 21
  • 43
8
votes
3 answers

SDK 3.1: How to tell whether SDK is using iOS6 accounts or not?

If I have a Facebook account set up in iOS6 but the user has switched it off, the SDK just gives me a FBSessionStateClosedLoginFailed status. From that, I can't tell if the user has switched us off in iOS (case 1) or doesn't have an account set up…
8
votes
1 answer

Facebook iOS SDK 3.0 Re-Authorisation

I have a few of questions about the new FBSession reauthorisation (reauthorizeWithPermissions: behavior: completionHandler:) in facebook sdk 3.0: Once someone has logged in via facebook on my app, on certain pages I would like to re-authenticate the…
Anand
  • 81
  • 1
  • 2
8
votes
2 answers

Facebook iOS SDK 3.x feed dialog is gone?

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"…
Almas Adilbek
  • 4,371
  • 10
  • 58
  • 97
7
votes
2 answers

Facebook Codeless Event - iOS app does not connect to Events Manager

I'm trying to get Facebook Codeless Event to work, but I can't seem to connect my app to Events Manager. Followed instruction from this article: https://developers.facebook.com/docs/app-events/codeless-app-events/#ios After updating Facebook Core…
7
votes
3 answers

Differences BW Facebook Login and FBSDKLoginKit Pod and which one to use?

I was trying to integrate facebook login in my iOS app. I am reading the official docs for this purpose. On this getting started link. Documentation say to use the following pods pod 'FacebookCore' pod 'FacebookLogin' pod 'FacebookShare' So i…
Awais Fayyaz
  • 2,275
  • 1
  • 22
  • 45
7
votes
1 answer

Add Facebook SDK `activateApp` to `applicationDidBecomeActive`?

Is it necessary to add FBSDKAppEvents.activateApp() to applicationDidBecomeActive when FacebookAutoLogAppEventsEnabled is not set to false? According to FBSDKAppEvents.h it is not necessary: Notifies the events system that the app has launched and,…
Manuel
  • 14,274
  • 6
  • 57
  • 130
7
votes
1 answer

Facebook connect graph status objects have comments capped at 25

Does anyone know why no matter how many comments a given graph status update object has, it will cap the comments at 25? I have a feeling it only returns a 'sample' of the actual comments on the object. How do I force it to get them all without…
Mike S
  • 4,092
  • 5
  • 35
  • 68
7
votes
1 answer

swift 3 facebook sdk get friends list

I need to get all my friends list: I found this code: var fbRequestFriends: FBSDKGraphRequest = FBSDKGraphRequest(graphPath: "/{friend-list-id}", parameters: [AnyHashable : Any]()) fbRequestFriends.start { (connection, result, error) in if…
7
votes
4 answers

How to change the text of a Facebook button programmatically in Swift?

I have a facebook login button from their SDK and would like to change the text. I've tried this code: facebookButton.setTitle("my text here", forState: .Normal) but it doesn't work. Is there a way to do it? This is what the facebook login button…
SwiftyJD
  • 5,257
  • 7
  • 41
  • 92
7
votes
1 answer

Use of unresolved identifier FBSDKAppEventNamePurchased

I'm trying to log some events in my iOS application using the Facebook Analytics SDK. First, I logged an event and this works well: FBSDKAppEvents.logEvent(FBSDKAppEventNameInitiatedCheckout, valueToSum: price, parameters: parameters) Then I tried…
Alexander Perechnev
  • 2,797
  • 3
  • 21
  • 35
7
votes
2 answers

CocoaPods v0.39.0 errors with Facebook SDK v4.7

Old Cocoapods Configuration I am using Xcode 7 Beta 4. Initially I was using Cocoapods version 0.38.2 and when I ran pod install --verbose in Terminal it said it downloaded dependencies for Bolts, FBSDKCoreKit, FBSDKLoginKit, FBSDKShareKit,…
Luke Schoen
  • 4,129
  • 2
  • 27
  • 25