facebook-ios-sdk

Upload photo using new iOS Facebook SDK API (3.0)

耗尽温柔 提交于 2019-12-04 07:16:54
How can I upload a photo to facebook from an iOS app using their new API/SDK? I've already tried and I'm not getting anywhere, just keep running in circles. Here is the code I currently have: -(void)dataForFaceboo{ self.postParams = [[NSMutableDictionary alloc] initWithObjectsAndKeys: self.uploadPhoto.image, @"picture", nil]; } -(void)uploadToFacebook{ [self dataForFacebook]; NSLog(@"Going to facebook: %@", self.postParams); // Hide keyboard if showing when button clicked if ([self.photoCaption isFirstResponder]) { [self.photoCaption resignFirstResponder]; } // Add user message parameter if

FBSDKCoreKit.framework/FBSDKCoreKit: no matching architecture in universal wrapper

坚强是说给别人听的谎言 提交于 2019-12-04 05:29:46
I'm trying to setup the core Facebook SDK into my project. My project is Swift based, yet the SDK is ObjectiveC. I copied both Bolts.framework and FBSDKCoreKit.Framework into my project. I setup a bridging file which works perfectly. Then I added the following to my AppDelegate.swift file: import FBSDKCoreKit func applicationDidBecomeActive(_ application: UIApplication) { FBSDKAppEvents.activateApp() } func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { FBSDKApplicationDelegate.sharedInstance().application

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

那年仲夏 提交于 2019-12-04 05:03:49
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 solve this problem using either graph api in iphone. audience Please refer to my answer here: How to comment or like a photo in facebook through FBconnect or Graph API in iPhone SDK? Just post your Access Token to https://graph.facebook.com/ID_OF_THE_POST/likes or your Access Token and the Message as a parameter to https://graph.facebook.com/ID_OF_THE

'Open this page in “null”' Modal appearing from FacebookSDK login after iOS9 and Swift 2 upgrade

心不动则不痛 提交于 2019-12-04 04:04:29
I'm in the process of updating projects to Swift 2 and iOS 9. One of the projects I'm doing relies heavily on Facebooks SDK. I use it to login, get user information, ect... Prior ot the update, once you logged in the Safari would redirect you directly to the app. Now I'm getting a fun little modal displaying the following (See Fig 1 at bottom) I assume this has some connection to the new Info.plist key we add LSApplicationQueriesSchemes with a Item0 as fbauth2 now required by iOS 9. I also noticed I'm getting a stack trace with my app saying: failed for URL: "fbauth2:///" - error: "(null)" I

Disable Single Sign On (SSO) in Facebook IOS SDK

[亡魂溺海] 提交于 2019-12-03 22:47:49
问题 We've built an iOS app that uses the Facebook SDK. Unfortunately, our client has asked that we disable backgrounding in the app and this means that the Facebook single-sign on (SSO) scheme doesn't work for us (as our app now starts from scratch when it is launched after the login/authorisation in the Facebook app). So the question is: can we disable SSO in the Facebook iOS SDK such that it behaves like it did in older SDK versions with the Facebook login/ authorization happening within an in

How to get list of all Facebook Friends when using Parse?

人盡茶涼 提交于 2019-12-03 21:47:48
Following is the output when getFBfriends() is run in the code inside viewDidAppear below: Output: Result Dict: { data = ( ); summary = { "total_count" = 711; }; } Found 0 friends The "total_count = 711" is correct but there is not data about the friends. What I am I missing here? Think the permissions are correct. Code: class SignUpViewController: UIViewController { @IBOutlet weak var btn_signIn: UIButton! @IBAction func action_btnSignIn(sender: AnyObject) { var permissions = ["public_profile", "user_friends"] println("in action_btnSignIn() of SignUpViewController") var fbloginView

How to post to a friend's wall in facebook iOS SDK 3.1?

ⅰ亾dé卋堺 提交于 2019-12-03 21:05:57
I have the SDK 3.1 working for iOS 6 for posting status updates and I have the facebook user id of the person who I want to post on their wall. I just want it to say "hi." to just one person's wall. I can target their feed with "/[id]/feed" but then I have to supply a graph object? if I use startForPostWithGraphPath() anyways. I figured it out! First of course implement FBFriendPickerDelegate per here, unless you already have their friend ID somehow. http://developers.facebook.com/docs/howtos/filter-devices-friend-selector-using-ios-sdk/ Then the important part, how to post to friend's wall: -

After disabling offline_access and removing the app from app settings I no longer get an extended access token

♀尐吖头ヾ 提交于 2019-12-03 20:25:29
** Looks like this was a bug that Facebook has since fixed. I disabled offline_access so that I could get extended access tokens without asking for the offline_access permission. While testing, it seemed to work fine at first. I got a token that expired in 60 days. Then I removed the app from facebook's app settings so I could test. As soon as I removed it, I started getting tokens that expire in 2 hours. Is this a bug? Or maybe this is a security thing like as soon as the app is removed, a flag is set not allowing extended tokens? Someone from Facebook please help me. Edit : I forgot to

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

…衆ロ難τιáo~ 提交于 2019-12-03 16:46:07
问题 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 following at run time: - [NSError fberrorShouldNotifyUser]: unrecognized selector sent to instance This seems like a linker error, where the category is not getting linked in from the the FacebookSDK static library. I tried adding both the -ObjC

Cannot change the height of Login Button in FBSDKLoginKit?

偶尔善良 提交于 2019-12-03 15:44:16
问题 I am using FBSDKLoginKit in iOS with Swift. Up until recently it has been working perfectly, however I now cannot override the height of my button in the Storyboard? The height of the button is now much smaller for some reason. I have tried setting height constraints for the button, putting the button in a stack view and set to fill proportionally and even override the button height in the SDK with no luck. If I change the button to a normal UIButton the layout constraints work perfectly.