Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
19
votes
5 answers

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

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…
Bill
  • 44,502
  • 24
  • 122
  • 213
19
votes
5 answers

Facebook iOS SDK 3.1 with XCode 4.2 linker errors

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: …
borisdiakur
  • 10,387
  • 7
  • 68
  • 100
18
votes
2 answers

"apprequests" dialog reports success, recipients receive nothing

Using the Facebook iOS SDK I can display a dialog with apprequests and send it. Delegate method -dialogDidComplete: gets called, but the recipient(s) receive no notification or request of any kind. If they have the app authorized, Facebook.app (for…
Filip Radelic
  • 26,607
  • 8
  • 71
  • 97
18
votes
4 answers

Facebook Graph Request using Swift3 -

I am rewriting my graph requests with the latest Swift3. I am following the guide found here - https://developers.facebook.com/docs/swift/graph. fileprivate struct UserProfileRequest: GraphRequestProtocol { struct Response:…
Gavin
  • 197
  • 1
  • 1
  • 10
18
votes
3 answers

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

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…
18
votes
4 answers

FBSDKLoginManager logInWithReadPermissions?

I'm using FBSDKLoginButton to allow to user login using Facebook and using FBSDKLoginButton.readPermissions = @[@"public_profile",@"email",@"user_likes",@"email",@"user_birthday"]; to ask for permissions , but I need one more permission which is…
Omarj
  • 1,151
  • 2
  • 16
  • 43
18
votes
13 answers

Facebook login always comes back as cancelled. (iOS Swift)

I'm currently trying implement Facebook login using the 4.0 version of the SDK, this also happens with the 3.+ version. When I call logInWithReadPermissions (4.0 version) or openActiveSessionWithReadPermissions (3.+ version). The closure/block is…
Earl Ferguson
  • 938
  • 2
  • 10
  • 12
17
votes
6 answers

First dialog after authenticating fails immediately and closes dialog

I'm using the latest Facebook SDK on iOS 5. I can use SSO to successfully authenticate the user, and then I attempt to share a link like this: NSString *appId = [[[NSBundle mainBundle] infoDictionary] …
Senior
  • 2,259
  • 1
  • 20
  • 31
17
votes
7 answers

'FBSDKLoginKit/FBSDKLoginKit.h' file not found (Facebook SDK for iOS v4.2 & Xcode 7)

I follow all the steps in This Tutorial and/or Facebook SDK Documentation to install Facebook Login on my App, but when I run the code I get an error. although Facebook mention I can just use import (Swift) to include the framework, I try to do it…
Brian Nezhad
  • 6,148
  • 9
  • 44
  • 69
17
votes
6 answers

Facebook iOS SDK 3.1: "Error: HTTP status code: 400"

I am running the Facebook SDK 3.1 on Xcode 4.5GM with iOS6 simulator. I connect to FB in the iOS settings and successfully FB connect in my app using the new iOS6 FBConnect UI. I have an access token, can see my friends, send app requests, post to…
stipe108
  • 1,640
  • 1
  • 16
  • 20
16
votes
7 answers

Facebook SDK 4.5 IOS 9

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…
Bastien
  • 517
  • 5
  • 9
16
votes
3 answers

FBSDKShareDialog doesn't share Photo without Facebook App installed, IOS

I am using Facebook SDK 4.0,https://developers.facebook.com/docs/sharing/ios#share_dialog I am using FBSDKShareDialog to share Photo.It does share Photo if user has installed Facebook app, But it fails when user hasn't installed FB App. but they say…
Moaz Saeed
  • 1,006
  • 3
  • 10
  • 23
16
votes
2 answers

No FBSession in Facebook iOS SDK 4.x

There is no more class FBSession in new Facebook iOS SDK v4.x. How can I find out whether user is logged in or not now? Thanks in advance.
demon9733
  • 1,054
  • 3
  • 13
  • 35
16
votes
4 answers

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

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.…
mon4goos
  • 1,569
  • 13
  • 24
16
votes
7 answers

Facebook loginViewFetchedUserInfo is called twice

I am using facebook SDK 3.0 in my app. The delegate method is called twice when after logging to facebook. - (void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id)user { //loginThroughFb=TRUE; …
Idrees Ashraf
  • 1,363
  • 21
  • 38