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…
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…
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]…
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…
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…
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…
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"…
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…
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…
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,…
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…
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…
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…
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…
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,…