facebook-ios-sdk

How to add test friends to Facebook test users programmatically using Facebook iOS SDK 3.14.1

谁说胖子不能爱 提交于 2021-01-29 19:40:33
问题 We need that all our test users to be friends of each other. Doing that through the App Dashboard manually is a tremendous amount of work depending on the number of test users you need (in our case more than 50 test users). Therefore we are looking for a way to make our Facebook test users friends of each other programmatically. We tried this approach following their website here: https://developers.facebook.com/docs/graph-api/reference/v2.0/test-user/friends The problem is that in order to

Unknown class FBSDKLoginButton in Interface Builder file

偶尔善良 提交于 2020-02-23 10:41:21
问题 I am experiencing a very frustrating build issue with my brand new project. I am trying to integrate Facebook iOS SDK, but for some reason I am getting some bizarre errors. When trying to use FBSDKLoginKit to display an FBSDKLoginButton on a storyboard view. The first hint something is wrong is this "error" when I attempt to #import <FBSDKLoginKit/FBSDKLoginKit.h> (however it only appears as an error in the editor; it still compiles fine): "Could not build module FBSDKLoginKit." Strangely,

FBAudienceNetwork : FBMediaView freeze ui when displaying video

不羁的心 提交于 2020-01-23 13:15:09
问题 When I do this code, the FbMediaView is like loading the ads video on the main thread but it's not freezing when displaying an image. I don't understand why ? let nativeAd = self.adsManager.nextNativeAd() let cell : AdHomeCell? = self.collectionView!.dequeueReusableCellWithReuseIdentifier("AdHomeCell", forIndexPath: indexPath) as? AdHomeCell cell?.createForAd(nativeAd) nativeAd?.registerViewForInteraction(cell!, withViewController: self) return cell I have the latest Facebook SDK (4.8.0) 回答1:

FBAudienceNetwork : FBMediaView freeze ui when displaying video

空扰寡人 提交于 2020-01-23 13:13:05
问题 When I do this code, the FbMediaView is like loading the ads video on the main thread but it's not freezing when displaying an image. I don't understand why ? let nativeAd = self.adsManager.nextNativeAd() let cell : AdHomeCell? = self.collectionView!.dequeueReusableCellWithReuseIdentifier("AdHomeCell", forIndexPath: indexPath) as? AdHomeCell cell?.createForAd(nativeAd) nativeAd?.registerViewForInteraction(cell!, withViewController: self) return cell I have the latest Facebook SDK (4.8.0) 回答1:

Facebook native login is not opening facebook app even if it's installed in device?

扶醉桌前 提交于 2020-01-23 06:42:38
问题 i have followed every step described in the docs of facebook-iso-sdk 4.8.0 for iOS 9, but still couldn't preform app switch on "login-with-facebook" in my app, even if facebook app is already installed. As you can see in screen shot below i have modified info.plist, but still can't get native app switch to work. I have also double checked for typo-mistakes in info.plist value. and i can assure you they are correct. Here is my code :- if (![AppDelegate SharedInstance].login) { [AppDelegate

How to dismiss FBWebDialogs

你说的曾经没有我的故事 提交于 2020-01-21 20:12:29
问题 How can I dismiss an FBWebDialogs programmatically - I have seen through all the documentation and stack overflow questions, and there seems to be no way to do this? That can't be? 回答1: So I found a kind of hacky way to do it, this code will programmatically trigger the close button TouchUpInside thus closing the dialog as if someone had manually pressed the close button - it works by looping through the last window in the app's view hiearachy and then trying to locate the FBDialog's

How to dismiss FBWebDialogs

强颜欢笑 提交于 2020-01-21 20:12:00
问题 How can I dismiss an FBWebDialogs programmatically - I have seen through all the documentation and stack overflow questions, and there seems to be no way to do this? That can't be? 回答1: So I found a kind of hacky way to do it, this code will programmatically trigger the close button TouchUpInside thus closing the dialog as if someone had manually pressed the close button - it works by looping through the last window in the app's view hiearachy and then trying to locate the FBDialog's

Can I use FBGraphObject outside the scope of Facebook SDK?

我的未来我决定 提交于 2020-01-17 02:58:10
问题 The functionality of FBGraphObject is quite useful, accessing and setting the NSMutableDictionary via dot notation is a nice feature to have. More info from here. I have a protocol Duck. @protocol Duck <FBGraphObject> @property (nonatomic, strong) NSNumber *objectID; // id key @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *description; @end // Now I can do this. NSDictionary *anAnimal = @{@"id":@1, @"name":@"donald", @"description":@"Its a duck that

how can i get user information using facebook sdk 4.1 in ios?

主宰稳场 提交于 2020-01-15 06:43:27
问题 I'm using a pre-built login UIButton of Version 2.3 of facebook integration. Problem: Getting null result, when fetching user details. -(void) loginButton:(FBSDKLoginButton *)loginButton didCompleteWithResult:(FBSDKLoginManagerLoginResult *)result error:(NSError *)error { if ([FBSDKAccessToken currentAccessToken]) { FBSDKGraphRequest *request =[[FBSDKGraphRequest alloc]initWithGraphPath:@"me" parameters:nil]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id

facebook does not logout properly in ios app.cannot switch users

大兔子大兔子 提交于 2020-01-13 05:53:33
问题 i am using the facebook login button provided by the fb sdk for implementing the facebook login in my app.When i am logging out the facebook button does change back to login again.but when i click on it,the safari app opens showing "you have alreay authorised the app"click confirm or cancel.Actually i needed the facebook login and password screen here.I cannot switch user until i reset the simulator.how to reset the contents in safari programmatically each time i logout so that the login