Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
16
votes
6 answers

ios6 facebook integration login always FBSessionStateClosedLoginFailed never opens

this question is very similar to Facebook SDK for iOS , on iOS 4.0 device, but as I cannot make comments there, I open a new question. I think the questions are not the same: When trying to update the facebook integration of my app to facebook 3.1 I…
robscure
  • 901
  • 2
  • 8
  • 11
16
votes
4 answers

How can I convert FBProfilePictureView to an UIImage?

Everything is working fine with FBProfilePictureView but I need to get that picture from FBProfilePictureView and turn it into an UIImage. How should I do it? I tried using…
Anes Hasic
  • 424
  • 4
  • 15
15
votes
8 answers

Xcode 10 FBSDK 'SDKLoggingBehavior

I have updated to Xcode 10 and and am unable to compile my code. I get the following error from the Facebook SDK (FacebookCore). Argument type 'SDKLoggingBehavior?' does not conform to expected type 'Sequence' On line return Set(behaviors) I…
MattBlack
  • 3,616
  • 7
  • 32
  • 58
15
votes
4 answers

Getting random "facebookErrDomain error 10000"

I am using the latest facebook IOS SDK, and I am getting random "facebookErrDomain error 10000", when using the requestWithGraphPath. I can trigger the request from the UI and sometimes it runs fine, sometimes it gives me the error. Has anyone ran…
machunter
  • 967
  • 1
  • 11
  • 27
15
votes
5 answers

Integrating Facebook with iOS

I get all these errors and about 18 more when i try to integrate facebook to my application. Undefined symbols for architecture i386: "_ACAccountTypeIdentifierFacebook", referenced from: +[FBSession renewSystemAuthorization] in…
CodeGeek123
  • 4,341
  • 8
  • 50
  • 79
15
votes
1 answer

Handle invalid accessToken with FBSession openActiveSessionWithReadPermissions in Facebook iOS 3.1.1 SDK

Before anything, I have read both this and this questions to solve the problem below and before asking. My problem is that when the accessToken gets expired (either because the expiration date passes, or manually by deleting the app from my…
ozzotto
  • 1,146
  • 3
  • 13
  • 30
14
votes
5 answers

Facebook Batch Photo Upload iOS

I am having some trouble trying to get the Facebook iOS SDK to batch upload photos. Currently I can upload them one by one, but I would like to batch the requests if possible. I have read this post over and over along with the fb batch docs. Here is…
iOSDevSF
  • 1,169
  • 1
  • 13
  • 24
14
votes
3 answers

Implicit declaration of function 'FBSDK_NOT_DESIGNATED_INITIALIZER' is invalid in C99 Expected ')'

I'm using Facebook SDK for iOS 4.6.0 and just today above error encountered after updating cocoapods to 0.38.2. I'm not sure this error has anything to do with cocoapods. Error screenshot:
14
votes
9 answers

IOS Facebook SDK: login doesn't return email despite permissions granted

I'm trying to get information through the facebook sdk but so far I'm getting only the id and the name of the user, although I'm sure there is an email available, as it is my account. I've been looking at several answer here but none of them solved…
Kalianey
  • 2,738
  • 6
  • 25
  • 43
14
votes
1 answer

Transfer app from one Facebook developer account to another Facebook developer account

In my iOS app, it have the feature of Facebook login and other Facebook sharing feature. So to do that I created my app on the https://developers.facebook.com under my own Facebook account. But now my client wants to transfer that app to his…
Rahul Bansal
  • 1,382
  • 15
  • 22
14
votes
4 answers

Posting Photo to facebook fan page via iOS app by regular non-admin users

I am trying to post a photo to my apps facebook fan page and to the users wall also. I have been successful to post the photo on the users wall, but failed to post it in the fan pages wall. (The user is not necessarily an admin or page owner, just…
Shabib
  • 1,697
  • 4
  • 20
  • 39
13
votes
2 answers

exc_bad_access in Facebook sdk login Xcode 8 beta

recently I started adding my application IOS 10 features while I encountered a weird bug: When authenticating with facebook SDK via browser as soon as I click the confirmation button in facebook itself at the embeded browser, the app…
Liran Revivo
  • 1,143
  • 3
  • 15
  • 20
13
votes
1 answer

How to change Facebook iOS SDK's done button color when login?

My app use white UITabBarItem text color and orange UINavigationBar BarTintColor, when click the Login button added from Facebook SDK, it will popup a webview for login. but the topbar background color always light gray, if I change the…
yellow
  • 702
  • 1
  • 10
  • 24
13
votes
2 answers

iOS :How to get Facebook Album Photo's Picker

Is Facebook iOS SDK provide any default (Facebook) album Photo's picker like UIImagePickerController does? I heard of this so searched for it from long but couldn't find anything. Please let me know if someone have any thoughts on this. If its not,…
Hemang
  • 26,840
  • 19
  • 119
  • 186
13
votes
7 answers

Inconsistent crash while posting to facebook using FBNativeDialogs on iOS6.0

I've been struggling with this issue for a while now and I just can't seem to reproduce it accurately enough to describe the exact use-case. Essentially, what I'm doing is issuing a request for opening a native iOS 6.0 Facebook share dialog (using…
Stavash
  • 14,244
  • 5
  • 52
  • 80