Questions tagged [facebook-ios-sdk]

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

Facebook SDK 4.x for iOS.

1778 questions
9
votes
1 answer

IOS Facebook SDK 4.01: Should I be using FBSDKAccessToken.currentAccessToken() to check if user is logged in?

I getting trying to get familiar with FB's newest IOS SDK (4.0.1). I've integrated it into an IOS8 Swift project and using the FBSDKLoginButton to log users in and out. I want the application to skip showing the Login view controller if the user has…
Nick
  • 19,198
  • 51
  • 185
  • 312
9
votes
2 answers

Upgrade from Facebook iOS SDK 3.2.1 to 3.5 gave me an error with FBCrypto

After installing the new sdk I cleaned the project and build it. It fails with this message: Undefined symbols for architecture i386: "_SecRandomCopyBytes", referenced from: +[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o) …
Kasihasi
  • 1,062
  • 1
  • 8
  • 20
9
votes
2 answers

presentRequestsDialogModallyWithSession does not work, but gives good result

When I use the webdialog for a friendrequest, everything is going fine, except no request or anything is made. The code: NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: …
Ruud Visser
  • 121
  • 1
  • 4
8
votes
3 answers

Adding App Events in iOS app produces undeclared identifier 'AppEvent'

I am trying to add facebook app events, and I installed FacebookSDK. Then I have next code: import FacebookCore static func logViewContentEvent(contentType : String, contentData : String, contentId : String, currency : String, price : Double) { …
Whirlwind
  • 14,286
  • 11
  • 68
  • 157
8
votes
2 answers

Xcode 11.1 seems to break com.apple.commcenter.coretelephony.xpc

I have upgraded to Xcode 11.1 on Mojave and now the Rewarded Ad example project from FacebookSDK complains that com.apple.commcenter.coretelephony.xpc is not working correctly. PodFile # Uncomment the next line to define a global platform for your…
8
votes
1 answer

Facebook API - where to instantiate and how to properly implement handleOpenURL

I'm working through the Facebook API for my iPhone app, and have two questions: All documentation/examples seem to put everything in the appDelegate: instantiating the Facebook object and authorizing in appDidFinishLaunching, and overriding the…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
8
votes
9 answers

Facebook API - How to cancel Graph Request

I occasionally need to cancel a FaceBook graph request, but there seems to be no cancel or similar method in their API to do so. At the moment, crashes sometimes occur as the delegate I assigned to the request has been deallocated. Is there any way…
CastToInteger
  • 521
  • 7
  • 17
8
votes
4 answers

How to get photos of a facebook album in iPhone SDK?

I am developing a iPhone application which get facebook album with this URL https://graph.facebook.com/me/albums?access_token=2227470867|2.ZJr73vaEvFeN4fI_A70RFw__.3600.1297090800-100000566543036|WmgxdwULBgKXl8J7ksGIA1tyGik Now i want to get photos…
Apekshit
  • 767
  • 2
  • 13
  • 27
8
votes
5 answers

How to move to the next page in Facebook JSON response using iOS SDK?

In Facebook iOS SDK, I can ask for queries like this: [_facebook requestWithGraphPath:@"me/feed" andDelegate:self]; But often Facebook will give a limited JSON response with a URL to be used to request to move to earlier dates, for example. So in…
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
8
votes
1 answer

How to "like" and "comment" on facebook through Graph API in iPhone?

I am displaying news feed using graph api. I have queries about below problems. I would like to give "Like" functionality for each news feed post. I would like to give "Comment" functionality for each news feed post. Can someone assist me how to…
Apekshit
  • 767
  • 2
  • 13
  • 27
8
votes
2 answers

How to install Facebook Pixel and track a conversion in an app using Cordova?

How do you set the Facebook Pixel using an app that is made on Cordova. I need to track conversions in the app so I can better target the ads made in Facebook Ads. Normally it will be easy to do this task in an HTML page by copy pasting it and…
8
votes
3 answers

Handler does not get called after Facebook Browser Login redirects to Application

I am using Facebook SDK v4.8.0 for iOS in my application for login with Facebook. (iPhone OS version 9.3) Following is some related code for integration: AppDelegate.swift func application(application: UIApplication, didFinishLaunchingWithOptions…
viral
  • 4,168
  • 5
  • 43
  • 68
8
votes
1 answer

Alamorafire + SwiftyJson + FacebookSDK

I use FBSDK with Xcode 7.2.1 to retrieve user profile information and use SwiftyJson to handle and manipulate json data. After changing values / removing some i want to make a post request to my api with the JSON data. But i am stucked with the…
artuc
  • 913
  • 11
  • 20
8
votes
4 answers

Facebook App invites notification not working in ios

I had implemented Facebook App invites in Demo Application. It worked fine but did not get notification. I have added all detail in my question, now can anyone tell me what is the issue in my code and what should I do to resolve this. I have …
8
votes
1 answer

Replacement for FBFriendPickerViewController for Facebook iOS SDK 4

According to Facebook v4 changelog, all FB*ViewController were deprecated and we should build our own table view controller to show friends list. Now, before I put myself working on it, does anyone knows an alternative for…
estemendoza
  • 3,023
  • 5
  • 31
  • 51