Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
7
votes
1 answer

iOS web/native app Facebook Login Popup - FAILS?

I am trying to build a web app that will allow a user to login Facebook. Everything works in Firefox/Chrome/Safari (on the phone/tablet and on OSX). When the App runs on the tablet (Native UIWebview and Web-app) it loads the first page perfectly.…
6
votes
3 answers

Facebook login was disabled and now it throws errors

We have Android and iOS apps with integrated Facebook login. Recently Facebook disabled our app because "During Login, your app is crashing or hanging excessively". The problem however is not in our app's source code, but somewhere in our FB app…
6
votes
0 answers

FBSDKLog: Unable to obtain a key window

When I start my application I get the following log: FBSDKLog: Unable to obtain a key window, marking
themenace
  • 2,601
  • 2
  • 20
  • 33
6
votes
2 answers

Where is the FBSDKSettings.setAutoLogAppEventsEnabled(true) method?

I can't find the FBSDKSettings class in the newest Facebook SDK version which is on CocoaPods. Can you help?
SeverinCH3047
  • 121
  • 1
  • 6
6
votes
1 answer

How to comment or like a photo in facebook through FBconnect or Graph API in iPhone SDK?

I am developing a iPhone application in which I want to Comment or Like a Photo on Facebook. For Facebook integration I am using FBConnect and Graph API. I am getting friends Photos on my wall in my application, now I want to Like or Comment on…
Apekshit
  • 767
  • 2
  • 13
  • 27
6
votes
3 answers

Facebook Login doesn't doesn't dismiss Login Dialog after login

Using LoginManager from the Facebook iOS SDK to login like so: let loginManager = LoginManager() loginManager.logIn([.publicProfile, .email], viewController: self) { (loginResult) in The Login Dialog opens facebook.com through Safari, which has a…
6
votes
1 answer

FBSDKCoreKit.framework/FBSDKCoreKit: no matching architecture in universal wrapper

I'm trying to setup the core Facebook SDK into my project. My project is Swift based, yet the SDK is ObjectiveC. I copied both Bolts.framework and FBSDKCoreKit.Framework into my project. I setup a bridging file which works perfectly. Then I added…
Fizzix
  • 23,679
  • 38
  • 110
  • 176
6
votes
2 answers

Type 'Any?' has no subscript members

I am trying to retrieve email id after fb login in my app. However I am getting an error when i try to get the value from result. The error is:Type 'Any?' has no subscript members. func fetchProfile() { print("Fetch Profile") let parameters…
Vyshakh
  • 632
  • 1
  • 11
  • 29
6
votes
0 answers

Facebook login crash in iOS 10 when build is installed from testflight on Bitcode ON

I am using Xcode 7.3.1(Swift) and using the latest FB iOS SDK v4.15.1 EDIT Same scenario happened also on FB iOS SDK v4.14.0 EDIT OVER I am facing a weird issue in iOS 10 device whenever I am doing facebook login in my app and when the call back…
Rajan Maheshwari
  • 14,465
  • 6
  • 64
  • 98
6
votes
4 answers

Facebook native login is not opening facebook app even if it's installed in device?

i have followed every step described in the docs of facebook-iso-sdk 4.8.0 for iOS 9, but still couldn't preform app switch on "login-with-facebook" in my app, even if facebook app is already installed. As you can see in screen shot below i have…
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
6
votes
1 answer

IOS-Facebook Blank white screen after app is authorized

I am upgrading from Parse v1.6.4 to the latest version and also i am upgrading facebook ios sdk to v4.7. The problem is after the app is authorized,it shows a blank white screen and if i click "done",it closes the safari and in the log it shows…
Alex
  • 63
  • 1
  • 6
6
votes
1 answer

What is FacebookDisplayName used for?

We are currently changing the name of an app that is using the Facebook SDK for sign-in (and nothing else really), which means that for non-updated users the name of the Facebook app will not match the value of FacebookDisplayName. During my testing…
Stefan Fisk
  • 1,563
  • 13
  • 19
6
votes
2 answers

Facebook Login integration into Parse.com App

I am trying to implement a Facebook login option in my App. I followed all the instructions on the Parse website and on the Facebook developer page. I added the frameworks, modified the plist file and added the proper code but when I launch the App…
Diego
  • 366
  • 3
  • 18
6
votes
2 answers

Unknown class FBSDKLoginButton in Interface Builder file

I am experiencing a very frustrating build issue with my brand new project. I am trying to integrate Facebook iOS SDK, but for some reason I am getting some bizarre errors. When trying to use FBSDKLoginKit to display an FBSDKLoginButton on a…
devios1
  • 36,899
  • 45
  • 162
  • 260
6
votes
2 answers

Facebook - when does the SDK refresh the auth token?

According to the Facebook docs, mobile SDKs generate long lived tokens which are refreshed once per day when the person using your app makes a request to the Facebook servers. For the javascript SDK, short-lived tokens are generated and are…