facebook-ios-sdk

How to manage production and development credentials using Facebook iOS SDK

此生再无相见时 提交于 2019-12-18 09:36:25
问题 Symptoms My app is using Facebook to let users log in. It works fine while debugging from XCode and testing through AdHoc deployment, in order to have external testers we submitted our app for review but it seems that Facebook is complaining during the OAuth Process "App Not Setup: The developers of this app have not setup this app properly for Facebook Login". Hypothesis The FacebookDisplayName and FacebookAppId present in the Custom iOS target properties in the info section of my target in

fbconnect API response in iPhone

南笙酒味 提交于 2019-12-18 07:35:06
问题 I am calling the FaceBook API like this: -(IBAction)testBtnAct:(id)sender{ [facebookObj requestWithGraphPath:@"me" andDelegate:self]; } -(IBAction)test1BtnAct:(id)sender{ [facebookObj requestWithGraphPath:@"me/friends" andDelegate:self]; } - (void)request:(FBRequest *)request didLoad:(id)result { NSLog(@"request didLoad..%@",result); }; The issue is that if I am clicking the both button(testBtnAct and test1BtnAct) and then output comes into - (void)request:(FBRequest *)request didLoad:(id

fbDidLogin never called (facebook-ios-sdk)

こ雲淡風輕ζ 提交于 2019-12-18 07:14:42
问题 I'm using a pop up Facebook dialog for the user login and the publishing of a post on his/her stream NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: apiKey, @"api_key", nil]; [facebook dialog:@"stream.publish" andParams:params andDelegate:self]; It works, but when the user logs in the fbDidLogin method is never called. Why? In this way I can't request the user name and the access token is always null. EDIT With the october facebook api I have in part resolved

How to share multiple post on friend's wall in objective C

守給你的承諾、 提交于 2019-12-18 07:12:50
问题 I'm using facebook sdk to post on friend's wall. I am able to post it but when i select multiple friends in FBWebDialog instead of posting two friends simultaneously for each friend a separate dialog box is shown. How to post on multiple friend's wall . -(void)showFriendsList { friendPickerController = [[FBFriendPickerViewController alloc] init]; friendPickerController.title = @"Pick Friends"; friendPickerController.delegate = self; [friendPickerController loadData]; } -(IBAction

Publish or manage permissions are not permited to to be requested with read permissions FACEBOOK SDK

天大地大妈咪最大 提交于 2019-12-18 06:56:53
问题 I am currently trying to implement Facebook Login and Registration Flow to our Application. But there is a little Problem. I've got the permissions from our Web-Api and if i try to pass them to the openActiveSessionWithReadPermissions Method of the Facebook SDK an error with the following message occurs : > Terminating app due to uncaught exception > 'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: > Publish or manage permissions are not permited to to be requested with >

Publish or manage permissions are not permited to to be requested with read permissions FACEBOOK SDK

时光怂恿深爱的人放手 提交于 2019-12-18 06:56:21
问题 I am currently trying to implement Facebook Login and Registration Flow to our Application. But there is a little Problem. I've got the permissions from our Web-Api and if i try to pass them to the openActiveSessionWithReadPermissions Method of the Facebook SDK an error with the following message occurs : > Terminating app due to uncaught exception > 'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: > Publish or manage permissions are not permited to to be requested with >

Method returning value from asynchronous block with FacebookSDK

荒凉一梦 提交于 2019-12-18 05:15:05
问题 What I am trying to do is a Facebook wrapper for the Facebook iOS SDK. Basically the idea is that my ViewController should do nothing but showing ex. my friends that will be acquired with a simple call like self.friends = [FacebookWrapper myFriends]; [self.tableView reloadData]; My wrapper myFriends method should look like this + (NSArray *)myFriends { __block NSArray *friends = nil; [FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:YES completionHandler:^(FBSession *session,

NSInvalidArgumentException thrown from ACAccountStore when calling [FBSession openActiveSessionWithPermissions…] on iOS 6.0 and iOS 6.0.1

孤人 提交于 2019-12-18 04:02:51
问题 With Facebook iOS SDK 3.1.1, I'm performing login using this call - NSArray *permissions = [[NSArray alloc] initWithObjects: @"email", @"user_birthday", @"user_location", nil]; @try { return [FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:allowLoginUI completionHandler:^(FBSession *session, FBSessionState state, NSError *error) { [self sessionStateChanged:session state:state error:error]; }]; } @catch { ... } There are rare cases when this method throws

Facebook API - How to cancel Graph Request

ぃ、小莉子 提交于 2019-12-18 03:38:17
问题 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 to cancel a graph request once submitted please? 回答1: I'm assuming you're talking about the facebook-ios-sdk project, and the lack of a cancel method in Facebook.h. I noticed this as well, and eventually decided to add my own cancel method. Just to

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

眉间皱痕 提交于 2019-12-18 02:55:07
问题 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 problem. Goal: I want to create a new album, store its ID in NSUserDefaults , and (after some validation at runtime) use it for all future photos being uploaded from the app. Where I'm at: I can make the new album via Open Graph, using my desired name and