Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
13
votes
5 answers

iOS Facebook SDK: An active access token must be used to query information about the current user

I have followed many examples and looked at many questions regarding this access token error, but I can't seem to find out why I am getting it or how to fix it. I init Facebook like they do in the 3.1 sdk examples: NSArray* permissions =…
G__ROW
  • 133
  • 1
  • 1
  • 5
13
votes
3 answers

ios-Facebook SDK 3.0 Error 5 When Posting Status Update

I am trying out adding facebook integration in an app using the new (beta) facebook ios sdk 3.0. All I would like to is post a status update to facebook. I used a FBLoginView to login to facebook. I put my app id in the plist as instructed on…
benjih555
  • 931
  • 2
  • 10
  • 25
12
votes
7 answers

FB Login using Swift 3 not returning any values and not get back the user to the App after successful login

I'm using iOS 10 Swift 3 to integrate FB Login. I have followed all steps from Facebook documentation. Now the issue is, after successful login it doesn't returning any values and not get back the user to the app. Note: The same works perfectly in…
Ragul
  • 3,176
  • 3
  • 16
  • 32
12
votes
1 answer

How can I remove the new back-to-previous-app iOS 9 button from my app?

For example, when a user logs in to my app with Facebook, I open the Facebook app for auth, and then the Facebook app switches back to my app. But from then on, "Back to Facebook" stays in the top-left.
Loren
  • 13,903
  • 8
  • 48
  • 79
12
votes
3 answers

FBSDKLoginManager: undefined symbols for architecture x86_64 + linker command failed with exit code 1

I just upgraded Facebook iOS SDK to v.4.0.1 and I got these errors: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FBSDKLoginManager", referenced from: objc-class-ref in Controller1.o objc-class-ref in AppDelegate.o …
Luciano
  • 1,208
  • 2
  • 17
  • 36
12
votes
2 answers

Can I determine if app was installed via Facebook Ad?

Is there a way to determine if the currently running app was installed via Facebook ad? I am currently calling [FBAppEvent activateApp] in my app delegate's applicationDidBecomeActive selector. I'm not using any other Facebook SDK features. I would…
Zak J
  • 156
  • 1
  • 8
12
votes
2 answers

What is the right way to use django-allauth with tastypie?

I'm writing a Django app that uses django-allauth for Facebook integration, and uses django-tastypie for a backend for an iOS app. The iOS app will use the native Facebook iOS SDK. I'd like to be able to sign up and verify both Facebook and…
abeinstein
  • 552
  • 4
  • 11
12
votes
2 answers

Facebook iOS SDK 3.2.1 - [NSError fberrorShouldNotifyUser]: unrecognized selector sent to instance

I just upgraded my app from Facebook iOS SDK 3.1 to 3.2.1 and I'm trying to take advantage of the new error handling provided by the new FBError category on NSError. The code is at the bottom. It compiles fine, but when a FB error occurs, I get the…
12
votes
0 answers

How do I ask for less permissions in Facebook SDK 3.1?

I am trying to implement Facebook SDK 3.1 in our app, strictly for the purpose of allowing the user to post about our app on their own wall. We don't want any of the user's information at all. We just want them to enjoy using the app so much that…
Del Brown
  • 928
  • 1
  • 7
  • 19
11
votes
7 answers

Objective c - iOS 10 Facebook login blank screen

In my app there is an option to login with Facebook. On iOS 9.3 it's works OK. When I testing it on iOS 10.0.1, it's shows me a blank screen. I'm using this code to start the login process: - (void)FacbookLoginButtonPressed:(id)sender { [self…
Nir
  • 1,882
  • 4
  • 26
  • 44
11
votes
6 answers

ios Facebook SDK v4.x access token null despite being logged in via FBSDKLoginButton

My facebook access token is null despite the fact that the button shows that I'm logged in. Anyone know why this would be? From RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self->login_button = [[FBSDKLoginButton alloc]…
Brooks
  • 2,082
  • 2
  • 18
  • 26
11
votes
1 answer

FBSession requestNewPublishPermissions how to handle "Skip" user action

I found interesting issue. When i'm requesting new publish permissions, fb sdk shows dialog with the "Skip" button. I'm handling it like this [[[appDelegate facebook] session] requestNewPublishPermissions:permissions …
Tunyk Pavel
  • 2,473
  • 6
  • 31
  • 46
11
votes
3 answers

Facebook & iOS: Share an app ID across multiple apps

I'm having problems implementing this functionality after following Facebook's tutorial: https://developers.facebook.com/docs/howtos/share-appid-across-multiple-apps-ios-sdk/ Basically, I have 2 targets under the same project - one for the free…
Stavash
  • 14,244
  • 5
  • 52
  • 80
11
votes
2 answers

Facebook iOS SDK 3.1 | "You have already authorized YOUR_APP" appears every time user tries to login

I'm currently trying to implement the Facebook-Login-Flow with iOS Facebook SDK 3.1. But there is a little Problem with it. Every time the user logs in with facebook the webview will open up and says "You have already authorized YOUR_APP.." The…
Sebastian Boldt
  • 5,283
  • 9
  • 52
  • 64
11
votes
1 answer

NSInvalidArgumentException thrown from ACAccountStore when calling [FBSession openActiveSessionWithPermissions...] on iOS 6.0 and iOS 6.0.1

With Facebook iOS SDK 3.1.1, I'm performing login using this call - NSArray *permissions = [[NSArray alloc] initWithObjects: @"email", @"user_birthday", @"user_location", nil]; @try { return [FBSession…
Kof
  • 23,893
  • 9
  • 56
  • 81