facebook-ios-sdk

Hide FBFriendPickerViewController navbar when pushing onto UINavigationController

天大地大妈咪最大 提交于 2019-12-06 04:45:55
问题 Presenting an instance of FBFriendPickerViewController using presentViewController:animated:completion: is pretty straightforward and the class seems like it is meant for that use case. However, I want to push an instance of FBFriendPickerViewController onto an instance of UINavigationController using pushViewController:animated: . Consider the following code as an example: self.fbFriendPickerController = [[FBFriendPickerViewController alloc] init]; self.fbFriendPickerController

Android - Facebook Analytics App Install Event not triggered

限于喜欢 提交于 2019-12-06 04:45:43
问题 Am using Facebook SDK 3.21 for Android and Facebook SDK 3.23 for iOS , and I have an App ID & App Link url. Now my questions are: 1. Is App Install event counts for each fresh install to the same device.? (By fresh install I mean installed once, launched the app & uninstalled it. Again installed and so on) 2. I tried fresh installations for 3 devices; Galaxy S4, Galaxy A7 & Moto X. The App Install event is not getting counted for Galaxy A7 (not listed in filter options). And If I freshly

Facebook Graph API for friends list returns nil on iOS

让人想犯罪 __ 提交于 2019-12-06 04:44:02
I am trying to access my own Facebook friends list through this code and the resulting JSON does not return any data. FBRequest *request = [FBRequest requestWithGraphPath:@"me/friends" parameters:nil HTTPMethod:@"GET"]; I am settings the permissions like this (i am using PARSE) [PFFacebookUtils linkUser:[PFUser currentUser] permissions:@[@"user_friends"] block:^(BOOL succeeded, NSError *error) Am I missing something? Dima Are you using V2 of the API? Facebook has made a big change recently so that this API call now only returns friends who have used the app that is making the request. In other

Upload photo using new iOS Facebook SDK API (3.0)

寵の児 提交于 2019-12-06 03:37:31
问题 How can I upload a photo to facebook from an iOS app using their new API/SDK? I've already tried and I'm not getting anywhere, just keep running in circles. Here is the code I currently have: -(void)dataForFaceboo{ self.postParams = [[NSMutableDictionary alloc] initWithObjectsAndKeys: self.uploadPhoto.image, @"picture", nil]; } -(void)uploadToFacebook{ [self dataForFacebook]; NSLog(@"Going to facebook: %@", self.postParams); // Hide keyboard if showing when button clicked if ([self

How to “like” and “comment” on facebook through Graph API in iPhone?

雨燕双飞 提交于 2019-12-06 01:25:41
问题 I am displaying news feed using graph api. I have queries about below problems. I would like to give "Like" functionality for each news feed post. I would like to give "Comment" functionality for each news feed post. Can someone assist me how to solve this problem using either graph api in iphone. 回答1: Please refer to my answer here: How to comment or like a photo in facebook through FBconnect or Graph API in iPhone SDK? Just post your Access Token to https://graph.facebook.com/ID_OF_THE_POST

'Open this page in “null”' Modal appearing from FacebookSDK login after iOS9 and Swift 2 upgrade

放肆的年华 提交于 2019-12-06 01:25:38
问题 I'm in the process of updating projects to Swift 2 and iOS 9. One of the projects I'm doing relies heavily on Facebooks SDK. I use it to login, get user information, ect... Prior ot the update, once you logged in the Safari would redirect you directly to the app. Now I'm getting a fun little modal displaying the following (See Fig 1 at bottom) I assume this has some connection to the new Info.plist key we add LSApplicationQueriesSchemes with a Item0 as fbauth2 now required by iOS 9. I also

Facebook Login Dialog does not work on iOS6 simulator

浪尽此生 提交于 2019-12-06 01:10:15
问题 I have been converting my application from the old Facebook SDK to the new Facebook SDK 3.1 in order to use the iOS6 native functionality as well as other Facebook functionality, and I am having a problem that happens consistently on the simulator and rarely on the device. When I go to log into Facebook, instead of the app backgrounding and authenticating through Safari or the Facebook app, I get a modal window on top of my app for the login (I believe this started with iOS6, even before

Integrate Facebook SDK inside my iOS Framework

天涯浪子 提交于 2019-12-05 21:16:03
I'm trying to integrate Facebook SDK inside my framework (which I publish to developers) but get a collision when users using my SDK already have Facebook SDK on their app. Is there any way around it? I suggest you to only link Facebook SDK to your Custom Framework, but should not copy Facebook Framework inside your Custom Framework, you can also ship FacebookSDK.framework separately with your Custom Framework. So there will be no collision between two FacebookSDK as the user will only add one FacebookSDK in their project. In this case users also aware of adding both two framework in their

How to fetch user's birthday from Facebook API in iOS using latest Facebook sdk?

∥☆過路亽.° 提交于 2019-12-05 19:30:59
How to fetch user's birthday from Facebook API in iOS using latest Facebook sdk? I have tried to fetch it {@"fields": @"id, name, link, first_name, last_name, picture.type(large), email, birthday"} and have given permission [login logInWithReadPermissions:@[@"public_profile", @"email", @"user_friends",@"user_birthday"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) But not able the fetch birthday. You can't fetch users birthdate only yours you can get and you have to send app in review for approve in facebook developer after than if your app approve than you can set extra

Facebook-iOS-SDK: How to correct build framework and add it to project?

元气小坏坏 提交于 2019-12-05 18:35:55
I develop an app for iPad. At now, i test application on iPad-5.1 Simulator . And for my unhappiness, application falls down. 1) I use FacebookSDK 3.0 2) Compile FacebookSDK into Framework FBiOSSDK 3) Add Framework FBiOSSDK to project 4) See log of Linker 5) Undefined symbols for architecture i386: "_sqlite3_open_v2" and many-many "_sqlite3_*" symbols. Maybe i set wrong options to facebook-sdk project when build it to framework? Can anybody help? After search, i find a solution: "Add to project libsqlite3.0.dylib" But Linker said: "ignoring file /path/libsqlite3.dylib, missing required