Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
6
votes
2 answers

Facebook iOS seems lost session when return to app after clicking Okay to You have already authorized app

I have upgraded my app from Facebook SDK 2 to 3.1. I have a Post button on the RecordsScreen. If the user is not login to Facebook, the login page will appear and if the user is login already, another nib will be loaded to prompt the user to enter…
aobs
  • 1,063
  • 1
  • 11
  • 23
6
votes
2 answers

openActiveSessionWithReadPermissions does not log in automatically

I have recently started using Facebook SDK 3.1, and am encountering some problems with logging in using openActiveSessionWithReadPermissions. Actually, loggin in works perfectly, if there is a cached token available, it logs in without presenting…
Jake Mogwai
  • 96
  • 1
  • 1
  • 5
6
votes
3 answers

Facebook iOS SDK Logout

I'm using the official and updated Facebook iOS SDK. We're developing an application on an iPad that is used inside a physical store using an in-house distribution profile. Where customers can login to their Facebook account on an iPad that's…
basvk
  • 4,437
  • 3
  • 29
  • 49
6
votes
1 answer

Including deprecated Facebook header folder gives error

I am using this link. But I am really stuck here, and i am getting 20 errors of duplicity and redefinition. It happens when I replaced facebookSDK/FacebookSDK.h to Facebook.h . Before that as said in the tutorial I include a folder "Deprecated…
YogiAR
  • 2,207
  • 23
  • 44
6
votes
4 answers

Error when using [FBSession openActiveSessionWithPublishPermissions: ..]

I'm updating an app to use the latest Facebook SDK in order to gain access to the iOS6 native Facebook support. It currently uses a pretty old version of the Facebook SDK. The app requires the "publish_actions" permission from Facebook for the only…
TomSwift
  • 39,369
  • 12
  • 121
  • 149
6
votes
1 answer

Facebook SDK 3.1 - Error: HTTP status code: 400

I am getting the following error ("Error: HTTP status code: 400") now that I have updated to facebook SDK 3.1 as of yesterday, 10/9. But everything is completely functional as far as connecting with facebook, I just see this error message every…
jac300
  • 5,182
  • 14
  • 54
  • 89
6
votes
2 answers

Facebook SDK - iOS6 login popup cannot be dismissed

In my iPhone app, I want the user to be able to share a link on Facebook. When they click "share", I use the following code to login to Facebook using the new SDK 3.1, then use FBRequestConnection in the completion handler (a simple…
Romain
  • 2,318
  • 1
  • 23
  • 31
6
votes
1 answer

Facebook Login Dialog does not work on iOS6 simulator

I have been converting my application from the old Facebook SDK to the new Facebook SDK 3.1 in order to use the iOS6 native functionality as well as other Facebook functionality, and I am having a problem that happens consistently on the simulator…
Peter Nolen
  • 111
  • 3
6
votes
1 answer

Facebook iOS SDK: Cannot specify an album using FBRequest's requestForUploadPhoto:

I have a local photo in my iPhone app, and I want to upload it to a specific album on Facebook dedicated to my app. Problem: My app name ends with the word 'Photos', so the default Facebook album is APP_NAME Photos Photos - obviously a…
toblerpwn
  • 5,415
  • 8
  • 38
  • 46
6
votes
8 answers

'FBSession: No AppID provided

I just updated my app with the new Facebook 3.0 SDK for iOS. Prior to this I was using the SDK that utilized FBSessionDelegate and FBRequestDelegate. In that SDK, we had to place this code in the applicationDidFinishLaunching: facebook = [[Facebook…
Kwame
  • 1,115
  • 2
  • 21
  • 38
6
votes
6 answers

Check if logged in on ios facebook sdk 3.0

I am using iOS facebook SDK 3.0. How can i check if the user is already logged in? I tried the line below but it does not work properly. It sometimes returns NO although I am logged in. Any suggestions? if (FBSession.activeSession.isOpen == YES) { …
gsach
  • 5,715
  • 7
  • 27
  • 42
6
votes
2 answers

Migrating existing access tokens to Facebook iOS SDK 3.0

I just overhauled my codebase to use the new facebook-ios-sdk 3.0 (from the previous version, 2.x or whatnot). Everything worked great, until I realized I hadn't accounted for users who had already granted the app permission/logged in with the…
6
votes
2 answers

Can't get the Facebook publish_action permission on iOS

I've spent hours on this and can't get it to work. Basically I just want a button in my app that will 'Like' itself on Facebook. I've created the app on dev Facebook and have an associated App Page. In my code I request these…
Darren
  • 10,182
  • 20
  • 95
  • 162
6
votes
1 answer

Getting user information from Facebook using graph API

I want to get basic user information from Facebook, but having some problem in the following code -(void)checkForAccessToken:(NSString *)urlString { NSError *error; NSRegularExpression *regex = [NSRegularExpression…
5
votes
4 answers

Creating an FB Open Graph Object via iPhone SDK

I'm working on a music player for iPhone and I'd like users to be able to post songs to their Timelines. I have Facebook Connect working and I've registered Open Graph objects and actions with Facebook, but I can't figure out how to create/post an…
Ryan
  • 3,853
  • 4
  • 28
  • 32