facebook-ios-sdk

iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

六月ゝ 毕业季﹏ 提交于 2019-11-26 20:41:34
I've updated to Xcode 7 and the latest iOS SDK. I've added the appropriate entries in my app's plist: My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting: -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" And login is not working. I've seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I've also seen Facebook SDK 4.5 IOS 9 but it's answer doesn't solve my problem. Why am I getting this error on simulator and not on device even though I've done the checklist at https:/

How to make Xcode find file FacebookSDK.h?

爷,独闯天下 提交于 2019-11-26 18:08:26
问题 It says "FacebookSDK/FacebookSDK.h file not found" Yet I can jump-to-definition on the #import and it takes me to the file. And once I added the #import it now knows what FBFriendPickerDelegate is and it now doesn't have an error on that line. I have the facebookSDK.framework in my project and in the right folder. It's SDK 3.1. I tried adding search paths to /FacebookSDK and /FacebookSDK.framework and /FacebookSDK/Versions/A/Headers etc. I also tried #import "FacebookSDK.framework/Versions/A

No such module 'RestKit' with cocoapods and swift

随声附和 提交于 2019-11-26 18:02:06
问题 I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift project and a Podfile with: source 'https://github.com/CocoaPods/Specs.git' use_frameworks! target 'test-fb-swift4' do pod "FBSDKCoreKit" pod 'SwiftyJSON', '~> 2.1' pod 'RestKit', :inhibit_warnings => true end target 'test-fb-swift4Tests' do end After creating that file I run pod install and reopen xcode with the test-fb

FBSDKLoginManager logInWithPublishPermissions always returns isCancelled=YES

ⅰ亾dé卋堺 提交于 2019-11-26 17:46:03
问题 I am having trouble figuring out how to log a user into my app. [FBSDKAccessToken currentAccessToken] is nil, so I am calling: [[[FBSDKLoginManager alloc] init] logInWithPublishPermissions:@[@"publish_actions"] handler:…]; as per the included sample project. This switches to the Facebook app, but the message says "You have already authorized App Name .". I click OK and it goes back into the app, but grantedPermissions and declinedPermissions are both nil on the result, and isCancelled is YES

IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log

落花浮王杯 提交于 2019-11-26 16:48:57
问题 From the Facebook SDK sample code, when successfully post the open graph object to timeline, you have to click Show on Timeline in the Activity Log on Facebook website. How to ignore these steps and explicit share your OG to timeline? ---------------------------------------- The Answer Below: ---------------------------------------- Just add one more code to your FBOpenGraphAction Object: id<FBOpenGraphAction> action = (id<FBOpenGraphAction>) [FBGraphObject graphObject]; [action setObject: @

How can I convert FBProfilePictureView to an UIImage?

蓝咒 提交于 2019-11-26 16:26:25
问题 Everything is working fine with FBProfilePictureView but I need to get that picture from FBProfilePictureView and turn it into an UIImage. How should I do it? I tried using this: UIGraphicsBeginImageContext(self.profilePictureView.frame.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); self.TestPictureOutlet.image = viewImage; But this doesnt work for my solution. 回答1:

“apprequests” dialog reports success, recipients receive nothing

久未见 提交于 2019-11-26 16:15:56
问题 Using the Facebook iOS SDK I can display a dialog with apprequests and send it. Delegate method -dialogDidComplete: gets called, but the recipient(s) receive no notification or request of any kind. If they have the app authorized, Facebook.app (for iOS) will display a number of pending requests next to the app bookmark, but notification jewel doesn't get updated and notification is nowhere to be found and Facebook.app doesn't display any push notifications. I have followed Facebook's own

How to retrieve Facebook response using Facebook iOS SDK

半腔热情 提交于 2019-11-26 15:29:26
问题 I am using the Facebook iOS SDK for iPhone. I initialize the Facebook instance facebook = [[Facebook alloc] initWithAppId:kAppId]; And then I do login: [facebook authorize:permissions delegate:self]; After I logged in to Facebook I am doing the following to get the user profile information: [facebook requestWithGraphPath:@"me" andDelegate:self]; NSMutableData *response = [fbRequest responseText]; unsigned char *firstBuffer = [response mutableBytes]; NSLog(@"Got Facebook Profile: : \"%s\"\n",

How to customize FBLoginVIew?

耗尽温柔 提交于 2019-11-26 15:09:41
问题 In order to connect to facebook in my ios app i'm using FBLoginVIew from Facebook SDK for iOS. It shows a nice FB Login Button, but I want to use my own image and text for the login button. The problem is that I don't see anywhere how to customize that. I've managed to change the login button background image by overriding the images in FacebookSDKResources.bundle/FBLoginView/images, but I couldn't find where to change the login button text and position, so it's stays "Log in"... Solution,

Facebook iOS8 SDK build module error for FBSDKCoreKit

送分小仙女□ 提交于 2019-11-26 11:58:44
问题 I am trying to add the Facebook SDK to my iOS 8 Objective-C app in Xcode. I did the install according to the FB-dev instructions. However, I get a \"Could not build module \'FBSDKCoreKit\'\" error when I add the header to my AppDelegate.m file. #import \"AppDelegate.h\" #import <FBSDKCoreKit/FBSDKCoreKit.h> Based on what I read elsewhere I have already cleaned the build and re-installed Xcode. I also re-installed the Facebook SDK installer and tried to add it to a blank project (in case there