Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
5
votes
0 answers

Is Facebook SDK disabling event logging in development by default?

Seems like a pretty simple question that doesn't need stack overflow, but I can't seem to find a straight and clear answer to that. I recently swapped from google analytics to FB analytics, following in a very precise way their setup tutorial. It…
dev_mush
  • 2,136
  • 3
  • 22
  • 38
5
votes
2 answers

Unable to Login as Different User After Logging out of iOS application

So here is my problem. I log in to my application, then log out of my application, but when I try to log in again, I get the screen in the link below. Login Screen As you can see, I don't get the opportunity to login with another user, which is what…
Sampath Duddu
  • 277
  • 1
  • 5
  • 14
5
votes
1 answer

iOS9 Facebook Login canOpenURL error

I am having an issue with Facebook SDK 4.6 using iOS9 and Xcode7. When testing on a device, nothing happens when I click the login button and in the iOS Simulator, I receive an error. 2015-10-01 17:12:32.197 TestProject[32112:797172] -canOpenURL:…
Wraithseeker
  • 1,884
  • 2
  • 19
  • 34
5
votes
1 answer

How do I use the login in Facebook SDK 4.6 for iOS?

I was using this code to FB login: @IBAction func fbloginbtn(sender: AnyObject) { FBSDKLoginManager().logInWithReadPermissions(["public_profile", "email","user_location","user_about_me", "user_photos", "user_website"], handler: {…
Utku Dalmaz
  • 9,780
  • 28
  • 90
  • 130
5
votes
1 answer

Facebook Login: -canopenurl issue with facebook sdk?

I'm trying to integrate Facebook Login in my IOS app. The error -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" is suddenly started coming now. My info.plist has following entries LSApplicationQueriesSchemes
crysis
  • 1,514
  • 1
  • 20
  • 35
5
votes
1 answer

Unable to get the email id of the User when Log-in with Facebook SDK in iOS

I am getting [null] value when I am fetching the user's email-id using below code. Also, I already set the permission to access the email like this. { self.fbLoginButton.readPermissions = @[@"public_profile", @"email", @"user_friends"]; } Also…
5
votes
2 answers

Get Facebook user details with swift and parse

i need to get the Facebook user information details when i login a new user through parse. at present i am logging in the new user below. can't seem to get the user details though. I've seen some code written on objective - c. most of the functions…
5
votes
1 answer

FB 4.0 - FBSession openActiveSessionWithReadPermissions replacement

I was previously using Facebook SDK 3.x for iOS. My code has FBSession openActiveSessionWithReadPermissions in various places, and now that I am using version 4.x I'm not sure what the replacement is I am thinking it is the login methods but I'm not…
CQM
  • 42,592
  • 75
  • 224
  • 366
5
votes
3 answers

How to Log out from Facebook or revoke login using Parse and Swift

I'm trying to completely log my user out of my app. When using PFUser.logout() I successfully log the user out of Parse. But when I come back in the app and click on the login button, I'm redirected to the Facebook screen saying :"You have already…
Simon
  • 127
  • 1
  • 8
5
votes
1 answer

FBSDKShareDialog callback for iOS

What is the callback method for FBSDKShareDialog when it returns back to your app (after the user has finished creating a post)? This is what I have to create the dialog: -(IBAction)post:(id)sender{ FBSDKShareLinkContent *content =…
scientiffic
  • 9,045
  • 18
  • 76
  • 149
5
votes
2 answers

How to enable logging everyting in Facebook iOS SDK for debugging purposes?

I'm trying to debug my iOS app that integrates with Facebook iOS SDK 4.1. I would like to see a verbose log of Facebook's code. Is there a way to do that? Right now I don't see any log from Facebook. Thanks!
user2732722
  • 615
  • 1
  • 10
  • 22
5
votes
2 answers

Sharing fb image and message content within the app not working using FBSDKShareDialog

I am using the following code to share a picture and some message on the fb timeline using FBSDK open graph object and FBSDK open graph content.however the following code does nothing,no dialog is presented nor does it post anything to the…
sujith1406
  • 2,822
  • 6
  • 40
  • 60
5
votes
2 answers

iOS: FBSDKShareDialog custom message

I'm creating the FBSDKShareLinkContent object and feeding it into the FBSDKShareDialog. I'm trying to set up the dialog's default message to something like "my highscore is %d !". sharing itself is working and has an empty message by default. can…
Nika Kasradze
  • 2,834
  • 3
  • 25
  • 48
5
votes
1 answer

Invite friend using new Facebook iOS SDK ( Invitable vs taggable friends )

I am struggling with new Facebook SDK changes, in my app i want to have functionality to send app invite to all my Facebook friends, before this it was possible using graph API and FQL but now using new Facebook SDK i am only getting friends list…
Gaurav
  • 8,227
  • 4
  • 34
  • 55
5
votes
4 answers

Apple rejected app 10.6 because Facebook opens Safari to login

I sent another version of my app, that allow users to login via Facebook. Of course, I use official Facebook iOS SDK. But Apple twice rejected my app with following reason: The app opens a web page in mobile Safari for logging in, then returns the…
Vitaly Baev
  • 331
  • 1
  • 3
  • 8