All Questions
1,296
questions
205
votes
12
answers
269k
views
How to segue programmatically in iOS using Swift
I'm creating an app that uses the Facebook SDK to authenticate users. I'm trying to consolidate the facebook logic in a separate class. Here is the code (stripped for simplicity):
import Foundation
...
63
votes
9
answers
53k
views
facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"
When I click on login with Facebook button, it is opening safari browser and getting closed immediately. Noticed error on the console.
App delegate method:
func application(app: UIApplication, ...
60
votes
5
answers
48k
views
Facebook Graph API GET request - Should contain "fields" parameter (Swift, Facebook SDK v4.5.1)
My iOS app uses Facebook's Graph API Request during sign up to get user information, which worked fine prior to upgrading to Facebook's newest SDK. After upgrading, I'm getting a runtime error stating:...
41
votes
8
answers
18k
views
Why am I getting an error regarding Bolts framework and FacebookSDK when I'm not even using Bolts?
Getting this error
framework not found Bolts for architecture x86_64
Followed Facebook's guide word for word, but the only place I can think of an error with linking happening is in the Build ...
39
votes
9
answers
56k
views
How to open fb and instagram app by tapping on button in Swift
How can I open Facebook and Instagram app by tapping on a button in swift? Some apps redirect to the Facebook app and open a specific page. How can I do the same thing?
I found it:
var url = NSURL(...
32
votes
12
answers
30k
views
Integration new facebook SDK by swift
Today i tried to integrate facebook SDK to my Swift app but in the quick start on facebook guide page looks a bit different than my old code.
How can i convert OBJ-C code below to swift?
- (void)...
30
votes
3
answers
7k
views
FacebookShare causing compiler error after update
I just ran pod update for my app, and now it won't compile, giving these issues from LinkShareContent.swift in FacebookShare.
Cannot assign to property: 'contentDescription' is a get-only property
...
29
votes
10
answers
67k
views
spacing between UITableViewCells
I am creating a ios app in swift and want to add spacing between cells like Facebook (pic bellow).
I am using a custom nib for the posts. I know to use UITableViewController. I figure I would use a ...
27
votes
2
answers
26k
views
SafariViewController: How to grab OAuth token from URL?
Trying to use Facebook OAuth with the SafariViewController. First I open the authURL with SafariViewController, which if the user is logged in to Facebook on Safari, will redirect them and return an ...
26
votes
6
answers
16k
views
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 ...
26
votes
2
answers
58k
views
Make UIView a Circle in Swift [duplicate]
I have tried Googling my problem but cannot seem to find anything anywhere!
Basically I have a UIView which retrieves a Users Facebook Photo once they log into my app. At the moment it is a square, ...
24
votes
2
answers
13k
views
Facebook Logout is not working in new SDK V.4.1.0 in ios?
Friends I want to integrate Facebook in my App, so that I am download new Facebook SDK v.4.1.0, for Facebook login button use the class of FBSDKLoginButton as below code in Swift.
if (...
22
votes
5
answers
22k
views
Linker Error in iOS (duplicate symbols for architecture x86_64)
I keep on getting the following error:
duplicate symbol _llvm.embedded.module in:
/Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKApplicationDelegate.o)
/...
18
votes
6
answers
23k
views
Facebook cocoapods 'sharedApplication' is unavailable: not available on iOS (App Extension)
I have installed the facebook sdk via cocoapods but I get the below error:
'sharedApplication' is unavailable: not available on iOS (App
Extension) - Use view controller based solutions where ...
18
votes
4
answers
14k
views
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: ...