facebook-ios-sdk

fbDidLogin never called (facebook-ios-sdk)

僤鯓⒐⒋嵵緔 提交于 2019-11-29 13:03:15
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 my problem. I just had the same problem and solved it. You NEED to implement - (BOOL)application:

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

若如初见. 提交于 2019-11-29 12:52:59
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)facebookShare:(UIButton *)sender { [friendPickerController presentModallyFromViewController:self animated:YES

iPad: Cannot load facebook page wall in UIWebview

谁说胖子不能爱 提交于 2019-11-29 12:43:55
Its already too long i am struggling with this issue. After searching a lot I decided to post a question here. What my app does Captures photo Uploads the photo on the wall of the page Displays the facebook page wall in a UIWebview after upload is complete Everything was working as expected 4 days back :) Suddenly something went wrong :( Code NSString *facebookPageURL =@"https://m.facebook.com/pages/<myPageName>/<myPageID>?v=wall" UIWebView *webView = [[UIWebView alloc] initWithFrame:kAppFrame]; [webView setUserInteractionEnabled:NO]; [webView setBackgroundColor:[UIColor clearColor]]; webView

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

狂风中的少年 提交于 2019-11-29 11:28:51
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 > read permissions. So it seems that i cant pass publish or manage permissions with this method. My question

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

这一生的挚爱 提交于 2019-11-29 08:44:48
问题 I have followed many examples and looked at many questions regarding this access token error, but I can't seem to find out why I am getting it or how to fix it. I init Facebook like they do in the 3.1 sdk examples: NSArray* permissions = [[NSArray alloc] initWithObjects:@"publish_stream", @"publish_actions", nil]; self.fb = [[FBSession alloc] initWithPermissions:permissions]; [self.fb openWithCompletionHandler:^(FBSession *session, FBSessionState status, NSError *error) { [self

How to post a photo. iOS Facebook SDK 3.1

无人久伴 提交于 2019-11-29 08:20:35
问题 I needed to publish a picture on my wall. The pic is generated in my iPad app. 回答1: This is the simplest way I've found - (void) postImageToFB:(UIImage*)image { NSData* imageData = UIImageJPEGRepresentation(image, 90); NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"This is my drawing!", @"message", imageData, @"source", nil]; [FBRequestConnection startWithGraphPath:@"me/photos" parameters:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection

Method returning value from asynchronous block with FacebookSDK

拜拜、爱过 提交于 2019-11-29 08:19:20
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, FBSessionState status, NSError *error) { if(FB_ISSESSIONOPENWITHSTATE(status)) { [FBRequestConnection

ios-Facebook SDK 3.0 Error 5 When Posting Status Update

南楼画角 提交于 2019-11-29 07:19:32
问题 I am trying out adding facebook integration in an app using the new (beta) facebook ios sdk 3.0. All I would like to is post a status update to facebook. I used a FBLoginView to login to facebook. I put my app id in the plist as instructed on facebook. I put in some code to post to facebook. (void)viewDidLoad { [super viewDidLoad]; NSArray *perms; perms = [NSArray arrayWithObjects:@"status_update", nil]; FBLoginView *loginview = [[FBLoginView alloc] initWithPermissions:perms]; loginview.frame

issue using FBSDK in swift iOS application

我们两清 提交于 2019-11-29 06:28:34
I am coding an iOS 8 app in swift using the FBSDK to allow users to log in to my app. So far I have successfully implemented the login feature using the FBSDK v3.25 in swift using a Bridging-Header.h file and updating the info.plist accordingly to the instructions given on the FB developers website. Now I want to make an app (or update my current one) to FBSDK v4.01 but when I follow the same process of integrating it into my app I get the following errors: -> FBSDKAppLinkResolver.h /Users/danieloram/Desktop/IOS/SWIFT/FBLoginUsingSDK4/FacebookSDK/FBSDKCoreKit.framework/Headers

How to install facebook sdk for iOS using cocoapods?

亡梦爱人 提交于 2019-11-29 06:11:53
问题 In the facebook's documentation: Here: https://developers.facebook.com/docs/ios/getting-started It's written that we could use: pod \'Facebook-iOS-SDK\' For installing pods in our project. But I added it in the pod file at line 10 and try to run pod install, it shows following error on terminal: [!] Oh no, an error occurred. It appears to have originated from your Podfile at line 10. Search for existing github issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=%2FUsers