facebook-ios-sdk

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

↘锁芯ラ 提交于 2019-12-02 17:10: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_profile? I get the following information: 2015-01-25 01:25:18.858 Test[767:23804] { "first_name" = xxx;

Why am I getting com.facebook.sdk.login error 308?

核能气质少年 提交于 2019-12-02 17:09:40
I am using Xcode 7.0, testing on iOS 9.0.2 and using Facebook SDK 4.7.0. When I am logging in a user, most of the time everything works as it should, however sometimes I keep getting this error and I have no idea why! The operation couldn’t be completed. (com.facebook.sdk.login error 308.) After researching I have seen that some people are getting the error when logging in with parse.com's FBUtils and the official FBSDK at the same time, however I am only using FBSDK in my project. So my question is, why am I getting this error and how do I get rid of it? Edit - Adding Code Here is my login

How to define a “GeoPoint” property in Facebook SDK for iOS

蓝咒 提交于 2019-12-02 15:08:27
问题 I'm trying to geo-tag an Open Graph story by creating an Open Graph object that inherits from the predefined "place" object. However, I can't figure out how to define the GeoPoint property "place:location" in iOS! There is an answer to a similar question here: https://stackoverflow.com/a/19386730/824515 which I have tried without success. Now, I'm trying to break down the problem by setting up a "place" object directly, but it doesn't help. I get this error message: error = { code = 100;

New iOS App struggling with Facebook Graph api v2.0

夙愿已清 提交于 2019-12-02 06:31:15
I'm new to app development, and I've been building a social iOS app that requires sending Facebook invites to join the app. Yesterday's release of Facebook Graph API 2.0 seems to have much stricter requirements on how to invite those not already part of the game. I'm trying to activate me/invitable_friends but I keep getting the same message: { "error": { "message": "(#15) This method is only accessible to Games.", "type": "OAuthException", "code": 15 } Their documentation mentions needing to be a Canvas app, so I added placeholder URL's as Canvas pages. Not sure if that's sufficient.

Not all the comments visible when pulling a post using Facebook graph API iphone

a 夏天 提交于 2019-12-02 05:39:43
问题 I searched through all the posts about Facebook graph API and didn't find anything about it. Here's the issue. I'm working on the iPhone app for one company. And for the news section in this app, i'm pulling all the posts and comments from the wall of this company's Facebook page using Facebook graph API. The way i do this is: first i pull all the posts by sending request: [facebook requestWithGraphPath:@"company name/feed" andDelegate:self]; And I receive the NSDictionary with all posts and

Integrating Facebook SDK for older versions of Xcode to Support both iOS 5 and iOS 6

邮差的信 提交于 2019-12-02 05:24:37
问题 I am still using XCode 4.3.2 and iOS 5.1 base SDK. What I want to achieve is to integrate Facebook API for iOS 5.0+ devices. Just basic features such as posting on behalf and getting basic user information. I am assuming that which ever Facebook SDK works on iOS 5, will work on iOS 6, but I am not sure about that. As a rookie on Facebook Integration, can anybody shed some light on this issue. ( Since I am working on the project, upgrading the XCode and the iOS SDK is not an option) Which iOS

Facebook SDK share always returns sharerDidCancel [duplicate]

限于喜欢 提交于 2019-12-02 02:16:13
This question already has an answer here: FBSDKShareDialog cancels when it should post 4 answers I'm trying to share a post with the Facebook SDK, but sharerDidCancel is always called, either if I share or cancel the post. Here is my code - (void)shareFacebook { FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; content.contentURL = [NSURL URLWithString:@"http://www.google.com"]; [FBSDKShareDialog showFromViewController:view withContent:content delegate:self]; } - (void)sharer:(id<FBSDKSharing>)sharer didCompleteWithResults :(NSDictionary*)results { NSLog(@"FB: SHARE

ios facebook sdk v3.11 share dialog post button disabled

妖精的绣舞 提交于 2019-12-02 01:52:48
I was following the tutorial for facebook sdk for ios, specially using open graph to attach an image and tag friends (which social framework can't do directly). So I was following this tutorial and this sample app, FBOGSampleSD. https://developers.facebook.com/docs/ios/open-graph#sharedialog However my post button in the share dialog is always disabled. (grey out) Has anyone encountered this before? I am working with Xcode 5 and testing on ios7 device. Regards, Jin I think I figure this out. Your share button might be disabled because you didn't finish the Facebook app configuration, or it

How to get the list of friend without opening FBFriendPickerViewController iOS

ぐ巨炮叔叔 提交于 2019-12-01 21:05:12
I am using Facebook sdk 3.2 for iOS, There are various sample project available for iOS But my problem is how can i get the list of friends without opening FBFriendPickerViewController. In fact i want all my friends facebook id and there Any help will be appreciated. Thanks in Advance DharaParekh Try this: get friend list using **[FBRequest requestForMyFriends];** **FBRequest* friendsRequest = [FBRequest requestForMyFriends];** [friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection,NSDictionary* result,NSError *error) { NSArray* friends = [result objectForKey:@"data"]; .

Will Facebook iOS SDK 3.0 not work on iOS 3.x?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 21:01:56
The Facebook iOS SDK 3.0 Beta says "These new features work with iOS 4.0 and later." Does that mean that it won't work on iOS 3.x? Does that mean that if I have an app that supports iOS 3.x, I cannot use Facebook iOS SDK 3.0? Correct. Facebook iOS SDK 3.0 will not work with iOS 3.x. We felt that the productivity enhancements (e.g. blocks) in iOS 4.x were simply too useful. The SDK is open source, and we plan to maintain the history, which includes the existing code that does work with 3.x. In this way there is still an option for applications that need to continue to support older versions of