Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
32
votes
9 answers

com.facebook.sdk error 2 on iOS

I have a Phonegap app that runs on both iOS and Android. The app has a Facebook login feature which worked until a few days ago. A few of our beta testers have reported an 'The operation couldn't be completed com.facebook.sdk error 2' error. The…
saltandpepper
  • 998
  • 2
  • 12
  • 32
31
votes
5 answers

FacebookSDK and Bolts conflicting each other (duplicate symbols) on build

Not sure what is the problem.. 91 symbols found duplicated for armv7 Am on a Swift project targeting iOS 7.1. Both frameworks are of the latest versions. Tried cleaning project and removing derived data., but to no avail. duplicate symbol…
Ryne Cheow
  • 667
  • 2
  • 8
  • 13
28
votes
10 answers

Facebook iOS SDK and swift: how get user's profile picture

i have integrated Facebook sdk in Xcode 6 (with swift). During the login i request the public_profile permission: FBSession.openActiveSessionWithReadPermissions(["public_profile"], allowLoginUI: true, completionHandler: { ... ... So i request the…
Tom
  • 4,007
  • 24
  • 69
  • 105
26
votes
6 answers

Why am I getting com.facebook.sdk.login error 308?

I am using Xcode 7.0, testing on iOS 9.0.2 and using Facebook SDK 4.7.0. When I am logging in a user, most of the time everything works as it should, however sometimes I keep getting this error and I have no idea why! The operation couldn’t be…
Swinny89
  • 7,273
  • 3
  • 32
  • 52
26
votes
15 answers

com.facebook.sdk.core error 8

This is more informative than anything. I couldn't for the life of me find anything on error code 8 when trying to access the login prompt (aka safari) when debugging my ios app. After I hit the log into facebook button in my app it would attempt to…
blackops
  • 2,205
  • 2
  • 18
  • 22
26
votes
11 answers

FBSDKLoginManager logInWithPublishPermissions always returns isCancelled=YES

I am having trouble figuring out how to log a user into my app. [FBSDKAccessToken currentAccessToken] is nil, so I am calling: [[[FBSDKLoginManager alloc] init] logInWithPublishPermissions:@[@"publish_actions"] handler:…]; as per the included…
devios1
  • 36,899
  • 45
  • 162
  • 260
24
votes
2 answers

toUIntMax() and toIntMax() removed from Swift 4

What has replaced the method toUIntMax() and the method toIntMax() in Swift 4 ? The error occurred within the FacebookCore framework. Any help would be appreciated
techcoderx
  • 602
  • 1
  • 7
  • 21
24
votes
6 answers

Facebook authorization fails on iOS6 when switching FB account on device

I'm using die Facebook SDK 3.1.1 to implement FB Connect in my iOS application. This works fine in the simple case with either the new FB integration (logged in on iOS) or falling back to the normal authorization via web view (I do not have the…
Kathrin Holweger
  • 241
  • 1
  • 3
  • 5
24
votes
8 answers

How to invite friends to my application via facebook iOS SDK and Graph API

I'm writing an iPhone application. I want to give the user the option to invite friends to start using my application via Facebook. More specifically I want to present a dialog that will let the user to select specific friends to invite. How can I…
zeevblu
  • 1,059
  • 2
  • 11
  • 26
22
votes
5 answers

Like button in iOS application

Does anybody know how to place Facebook "like" button into iOS application? I've tried the method described in this blog post. But I do not really like this method, because its ugly Login dialog. And, what is more important, it makes user login…
iKiR
  • 860
  • 2
  • 8
  • 20
21
votes
12 answers

Cannot change the height of Login Button in FBSDKLoginKit?

I am using FBSDKLoginKit in iOS with Swift. Up until recently it has been working perfectly, however I now cannot override the height of my button in the Storyboard? The height of the button is now much smaller for some reason. I have tried setting…
Ben Gilroy
  • 413
  • 4
  • 7
21
votes
4 answers

Cocoapods use_frameworks! import issue

I want to use some Swift pods in my Objective-C app, so I need to use frameworks instead of static libraries. But enabling use_frameworks! in my Podfile causes tones of #import errors. My Podfile: platform :ios, '8.0' use_frameworks! pod…
Ponf
  • 1,190
  • 1
  • 12
  • 28
21
votes
5 answers

Facebook SDK iOS invite user without FBWebDialogs

I want to get list of my friends from Facebook who are not users of my app, and be able to invite them. Using FBWebDialogs I can pick users, but I'm wondering how foursquare did it? Screenshot:
dormitkon
  • 2,526
  • 4
  • 39
  • 60
20
votes
1 answer

FBSDKLoginManager with FBSDKLoginBehaviorWeb failing with "Not Logged In" error

Something must have changed recently on Facebook's servers regarding how they process login requests because this used to be working perfectly and suddenly stopped. (We are using FBSDKLoginManager.loginBehavior = FBSDKLoginBehaviorWeb because of how…
devios1
  • 36,899
  • 45
  • 162
  • 260
20
votes
2 answers

How to install facebook sdk for iOS using cocoapods?

In the facebook's documentation: Here: https://developers.facebook.com/docs/ios/getting-started It's written that we could use: pod \'Facebook-iOS-SDK\' For installing pods in our project. But I added it in the pod file at line 10 and try to run…
Prajeet Shrestha
  • 7,978
  • 3
  • 34
  • 63