Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1776 questions
368
votes
7 answers

Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application

I am trying to get my friend name and ids with Graph API v2.0, but data returns empty: { "data": [ ] } When I was using v1.0, everything was OK with the following request: FBRequest* friendsRequest = [FBRequest…
104
votes
6 answers

How to use Facebook iOS SDK on iOS 10

I am trying to use Xcode 8 to build a app with Facebook login using Swift 3. When I switch back iOS Simulator 9.3, it works. In iOS 10, I receive this error: ""fbauth2:/" The operation couldn’t be completed. (OSStatus error…
trquoccuong
  • 2,696
  • 2
  • 18
  • 25
92
votes
7 answers

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

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…
Greg M. Krsak
  • 2,009
  • 1
  • 17
  • 27
63
votes
25 answers

No such module 'RestKit' with cocoapods and swift

I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift project and a Podfile with: source…
Joped
  • 1,098
  • 1
  • 11
  • 12
62
votes
2 answers

IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log

From the Facebook SDK sample code, when successfully post the open graph object to timeline, you have to click Show on Timeline in the Activity Log on Facebook website. How to ignore these steps and explicit share your OG to timeline?…
47
votes
17 answers

How to make Xcode find file FacebookSDK.h?

It says "FacebookSDK/FacebookSDK.h file not found" Yet I can jump-to-definition on the #import and it takes me to the file. And once I added the #import it now knows what FBFriendPickerDelegate is and it now doesn't have an error on that line. I…
Curtis
  • 2,173
  • 4
  • 33
  • 43
45
votes
8 answers

[Facebook-iOS-SDK 4.0]How to get user email address from FBSDKProfile

I'm upgrading my app to Facebook-iOS-SDK-4.0, but seems like I can't get user email from FBSDKProfile, since it only provide, username, userid, etc.
imcc
  • 879
  • 2
  • 10
  • 15
43
votes
8 answers

The app references non-public selector in id (Facebook SDK iOS)

I was having this warning when submitting my app with Application Loader. The app references non-public selector in MyApp : id This warning can potentially reject my app from Apple AppStore's validation. My app is using Facebook SDK iOS 3.1.1 (also…
Kalzem
  • 6,775
  • 6
  • 48
  • 75
42
votes
16 answers

Facebook iOS8 SDK build module error for FBSDKCoreKit

I am trying to add the Facebook SDK to my iOS 8 Objective-C app in Xcode. I did the install according to the FB-dev instructions. However, I get a "Could not build module 'FBSDKCoreKit'" error when I add the header to my AppDelegate.m file. #import…
star7anne
  • 521
  • 1
  • 4
  • 5
38
votes
8 answers

Facebook share content only shares URL in iOS 9

Share FBSDKShareLinkContent with FBSDKShareDialog works fine in iOS 8 but fails to share imageURL, contentTitle, contentDescription on iOS 9 devices. The app is built with iOS 9 SDK, Xcode 7, Facebook SDK 4.7.0, all actions mentioned in Preparing…
Yevhen Dubinin
  • 4,399
  • 3
  • 29
  • 56
38
votes
5 answers

Facebook SDK 4.0 IOS Swift Log a user out programmatically

In some cases in my application i need to log the user out, but i only have the FBSDKLoginButton instance in my view controller and implementing the FBSDKLoginButtonDelegate using func loginButton(loginButton: FBSDKLoginButton!,…
Mina Kolta
  • 1,521
  • 2
  • 12
  • 22
38
votes
3 answers

ASP.NET Web API and Identity with Facebook login

In the Facebook authentication flow for ASP.NET Identity, the Facebook OAuth dialog appends a code rather than an access token to the redirect_url so that the server can exchange this code for an access token via e.g.:…
37
votes
9 answers

iOS 9 Facebook login simulator -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

I've updated to Xcode 7 and the latest iOS SDK. I've added the appropriate entries in my app's plist: My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting: -canOpenURL: failed for URL: "fbauth2:///" - error:…
Can Poyrazoğlu
  • 29,145
  • 40
  • 152
  • 327
37
votes
7 answers

Facebook SDK 3.1 - Error validating access token

I'm trying to transition my app to the new Facebook SDK 3.1 (with support for iOS6 authentication). I had it working just fine, so I then decided to remove the app from my list of authorized apps on the FB website in order to test that iOS would ask…
tarmes
  • 15,008
  • 8
  • 50
  • 85
34
votes
17 answers

How to customize FBLoginVIew?

In order to connect to facebook in my ios app i'm using FBLoginVIew from Facebook SDK for iOS. It shows a nice FB Login Button, but I want to use my own image and text for the login button. The problem is that I don't see anywhere how to customize…
ozba
  • 6,176
  • 4
  • 30
  • 39
1
2 3
99 100