facebook-ios-sdk

Cannot change the height of Login Button in FBSDKLoginKit?

二次信任 提交于 2019-12-03 06:03:43
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. This is what the button looks like when I run the app. This is how I would like the button to look - size

How to Send App request to facebook friends through facebook iOS sdk?

不想你离开。 提交于 2019-12-03 04:42:54
I am using facebook sdk for my my iOS facebook application. I want to send app request to multiple users. I am using following method for that purpose. NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys: @"Get Started",@"name",@"http://www.facebook.com/apps/application.php?id=135775646522275/",@"link", nil], nil]; NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks]; NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"Check out this awesome app I am using.",@"message", @"Check this out", @"notification_text

Facebook iOS SDK and swift: how get user's profile picture

て烟熏妆下的殇ゞ 提交于 2019-12-03 03:41:59
问题 i have integrated Facebook sdk in Xcode 6 (with swift). During the login i request the public_profile permission: FBSession.openActiveSessionWithReadPermissions(["public_profile"], allowLoginUI: true, completionHandler: { ... ... So i request the user's information: FBRequestConnection.startForMeWithCompletionHandler { (connection, user, error) -> Void in ... ... Why the user object doesn't contain the profile picture? How can i get the user profile picture? It's not part of the public

Facebook login always comes back as cancelled. (iOS Swift)

≯℡__Kan透↙ 提交于 2019-12-03 01:41:41
I'm currently trying implement Facebook login using the 4.0 version of the SDK, this also happens with the 3.+ version. When I call logInWithReadPermissions (4.0 version) or openActiveSessionWithReadPermissions (3.+ version). The closure/block is called immediately with isCancelled (4.0 version) and ClosedFailedLogin (3.+ version) before the user can make a selection ( cancel or ok ). I thought it may be a problem with the URL Scheme in my plist settings but I've checked it over and over and everything seems to be right. Just wondering if anyone may have any ideas on solving this problem. My

Facebook iOS SDK 3.1: “Error: HTTP status code: 400”

。_饼干妹妹 提交于 2019-12-02 22:45:19
I am running the Facebook SDK 3.1 on Xcode 4.5GM with iOS6 simulator. I connect to FB in the iOS settings and successfully FB connect in my app using the new iOS6 FBConnect UI. I have an access token, can see my friends, send app requests, post to my wall, etc. However, every time I initiate any sort of FBURLConnection is made, I see this printed to my console: Error: HTTP status code: 400 I went into the FB code and printed the reponse when this error is printed and I get: { body = { error = { code = 100; message = "(#100) The parameter 'attribution' is required for the 'mobile_app_install'

FBSDKLoginManager logInWithReadPermissions?

旧城冷巷雨未停 提交于 2019-12-02 22:32:30
I'm using FBSDKLoginButton to allow to user login using Facebook and using FBSDKLoginButton.readPermissions = @[@"public_profile",@"email",@"user_likes",@"email",@"user_birthday"]; to ask for permissions , but I need one more permission which is publish_actions I should use FBSDKLoginManager with logInWithReadPermissions:@[@"public_profile",@"user_likes",@"user_birthday"] logInWithPublishPermissions:@[@"publish_actions"] but this for some reason affect on my permission "some of my permission are missing check image Code:- FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login

Facebook SDK iOS invite user without FBWebDialogs

邮差的信 提交于 2019-12-02 21:26:29
I want to get list of my friends from Facebook who are not users of my app, and be able to invite them. Using FBWebDialogs I can pick users, but I'm wondering how foursquare did it? Screenshot: There is option of frictionless requests . On Facebook developer site they mentioned in section of Invites and Requests We touched on a scenario where users exchange requests back and forth. If this scenario is typical in your game, it can be a bad user experience to force them through the request dialog every time they want to send a request. The solution for this is frictionless requests. Frictionless

How to invite friends to my application via facebook iOS SDK and Graph API

拥有回忆 提交于 2019-12-02 20:18:12
I'm writing an iPhone application. I want to give the user the option to invite friends to start using my application via Facebook. More specifically I want to present a dialog that will let the user to select specific friends to invite. How can I do this? Thanks. It's simple you can just write the below code for personalised message and also you can easily select the friend's to whom the request should be sent, it's an straight forward and powerful method. [FBWebDialogs presentRequestsDialogModallyWithSession:nil message:NSLocalizedString(@"FBinviteMessage", nil) title:nil parameters:nil

Generate simulator build

你说的曾经没有我的故事 提交于 2019-12-02 19:43:34
I am working on an app that needs data from a Facebook app. Facebook want a release simulator build. I have followed FB's instruction to the letter but when i try to build the simulator package xcodebuild -arch i386 -sdk iphonesimulator7.1 i get the following error: ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) ** BUILD FAILED ** The following build commands failed: Ld build/Release-iphonesimulator/Olabord.app/Olabord normal i386 (1 failure) I suspect that it has to do with cocoa pods but i don't know how to deal with it. I

Facebook SDK 3.1 iOS: Handle login if user remove app from Facebook Settings

无人久伴 提交于 2019-12-02 17:19:57
I want to put some Facebook integration in my app. At this point I've managed to login, post to friends wall, retrieve the list of friends, etc. Everything is OK except for one thing... If the user removes the app from your Facebook settings / Applications and then enters to the iOS app, the code doesn't recognize that the Facebook app was removed from the user settings and assumes that is logged in (this is the problem because if the user tries to post to a friend's wall, the app do nothing). Then, the user closes the iOS app and relaunches it... With this relaunch, the iOS app "is fixed" and