facebook-ios-sdk

Facebook SDK iOS error 2

非 Y 不嫁゛ 提交于 2019-12-24 08:20:59
问题 I'm trying to log into facebook with their API using [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:YES completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { [self sessionStateChanged:session state:state error:error]; }] The problem I'm having is in iOS 6.x when the device has a facebook account linked in the settings app it fails to log in. The error it gives is the seemingly one-size-fits-all error 2 . This is the only case where it fails

Frictionless Requests on iOS - how? [duplicate]

你。 提交于 2019-12-24 04:46:09
问题 This question already has answers here : Facebook IOS SDK Frictionless Requests (4 answers) Closed 6 years ago . How do you enable frictionless requests in the Facebook iOS SDK? I saw Ole Begemann's post that it now "just works", but I get the request dialog every time. 回答1: Frictionless requests can be turned on by setting the "frictionless" parameter of the apprequests dialog to "1". For example; // create a dictionary for our dialog's parameters NSMutableDictionary *params =

Parse SDK on iOS: 'NSInternalInconsistencyException', reason: 'User cannot be saved unless they have been authenticated via logIn or signUp'

孤街醉人 提交于 2019-12-24 03:51:20
问题 I am using the iOS Parse SDK in my iPhone app. When the app first loads the user is able to log in. If the user then logs out and logs back in, my app crashes with the following error: * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'User cannot be saved unless they have been authenticated via logIn or signUp' I use the same code that the Parse documentation says to use to login and logout. (code here: https://parse.com/docs/ios_guide#fbusers/iOS) The

Facebook iOS SDK: presentFeedDialogModallyWithSession crashes

佐手、 提交于 2019-12-24 02:14:30
问题 Using Facebook iOS SDK 3.7, Xcode 4.6, iOS simulator 6.0. Here is my code: NSLog (@"opening session"); [FBSession openActiveSessionWithPublishPermissions: @[@"publish_actions"] defaultAudience: FBSessionDefaultAudienceFriends allowLoginUI: YES completionHandler: nil]; NSLog (@"open active session completed"); if ([FBSession activeSession].isOpen) { NSLog (@"initiating feed dialog"); [FBWebDialogs presentFeedDialogModallyWithSession: nil parameters: nil handler: nil]; } When executed, it

iOS Facebook SDK “user cancelled login” when running app on device?

北战南征 提交于 2019-12-24 01:24:34
问题 I'm using the latest iOS Facebook SDK and I can log in and out perfectly when I am running my app in the simulator (in which case it opens the non-native popup window because the facebook app is not installed), but when I run it on my device I get the native uialertview popup and when I click "ok", the terminal says "user cancelled login" and the popup dismisses but it doesn't log in. Do you have any idea what could be causing this? I have done some research and couldn't find anything. I have

Swift implementation of FBSDKAppInviteDialogDelegate not working

旧街凉风 提交于 2019-12-23 20:10:32
问题 I'm trying to implement the protocol FBSDKAppInviteDialogDelegate on my class but the xcode show me a erro that says "Type MyClass does not conform to protocol 'FBSDKAppInviteDialogDelegate'" Definition of protocol: @protocol FBSDKAppInviteDialogDelegate <NSObject> /*! @abstract Sent to the delegate when the app invite completes without error. @param appInviteDialog The FBSDKAppInviteDialog that completed. @param results The results from the dialog. This may be nil or empty. */ - (void

Swift implementation of FBSDKAppInviteDialogDelegate not working

狂风中的少年 提交于 2019-12-23 19:57:32
问题 I'm trying to implement the protocol FBSDKAppInviteDialogDelegate on my class but the xcode show me a erro that says "Type MyClass does not conform to protocol 'FBSDKAppInviteDialogDelegate'" Definition of protocol: @protocol FBSDKAppInviteDialogDelegate <NSObject> /*! @abstract Sent to the delegate when the app invite completes without error. @param appInviteDialog The FBSDKAppInviteDialog that completed. @param results The results from the dialog. This may be nil or empty. */ - (void

Audio tag in Facebook iOS in-app browser

℡╲_俬逩灬. 提交于 2019-12-23 17:54:26
问题 I have a webpage with an audio tag in it. It works fine in Mobile Safari. However, when I open the link from the Facebook app on iOS, it opens in the in-app browser. Here, the audio refuses to play. It will show that it's playing if the controls are showing but there's no audio. Video seems to work fine but the audio tag does not work. Is there a way to make this work or even to force the link to open in Mobile Safari instead? To try it out, share http://www.w3schools.com/html/tryit.asp

iOS Facebook SDK “An active access token must be used to query information about the current user.”

一世执手 提交于 2019-12-23 12:53:47
问题 I have a token but keep getting this error: "An active access token must be used to query information about the current user." Any help is appreciated :) NSLog(@"TOKEN : %@",[[FBSession activeSession] accessToken]); NSString *picture = [NSString stringWithFormat:@"http://www.prowebdev.org/WooF/API/OpenGraph.php"]; NSString *image = [NSString stringWithFormat:@"http://www.prowebdev.org/WooF/API/upload/356.jpg"]; NSString *imageBool = [NSString stringWithFormat:@"true"]; NSMutableDictionary

FBSDKSharePhoto not sharing link alongside photo using Swift

为君一笑 提交于 2019-12-23 07:57:30
问题 When I try to share a link along with a picture, at the same time, via FBSDKSharePhoto, only the photo gets shared. No link appears. Here is the code I use: let photo : FBSDKSharePhoto = FBSDKSharePhoto() photo.image = self.scaledImage photo.userGenerated = true let content : FBSDKSharePhotoContent = FBSDKSharePhotoContent() content.contentURL = NSURL(string: self.short_string) content.photos = [photo] let button : FBSDKShareButton = FBSDKShareButton() button.shareContent = content And a