facebook-ios-sdk

FBSDKLoginManager: undefined symbols for architecture x86_64 + linker command failed with exit code 1

*爱你&永不变心* 提交于 2019-12-05 00:45:24
I just upgraded Facebook iOS SDK to v.4.0.1 and I got these errors: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FBSDKLoginManager", referenced from: objc-class-ref in Controller1.o objc-class-ref in AppDelegate.o objc-class-ref in Controller2.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I already tried to change linkers: with -all_load I get the same error, while with -force_load it becomes "ld: file not found: -fobjc-arc". Any solutions? I ran into the same problem. If you're adding Facebook

Facebook doesn't accept custom Open Graph properties

泪湿孤枕 提交于 2019-12-05 00:02:56
问题 I'm trying to use Facebook iOS SDK 3.5 for publishing an Open Graph action. My action is: take a photo , and photo has an additional required string property named filter . I am creating my graph object (all values are valid and working): NSMutableDictionary<FBOpenGraphObject> *object = [FBGraphObject openGraphObjectForPostWithType:@"tonerapp:photo" title:@"photo" image:imageData url:nil description:title]; Then I add my filter: object[@"tonerapp:filter"] = filterName; I try to post the

Share screenshot on Facebook

旧巷老猫 提交于 2019-12-04 18:13:15
I am using the following code to take a screenshot on my iPhone and save it to the photo album. What I would like is a share button to automatically send this screenshot and to Facebook. Does anyone have any ideas how to implement? - (UIImage*)captureView:(UIView *)view { CGRect rect = [[UIScreen mainScreen] bounds]; UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); [view.layer renderInContext:context]; UIImage *img = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return img; } - (void)saveScreenshotToPhotosAlbum:(UIView *

Implicit declaration of function 'FBSDK_NOT_DESIGNATED_INITIALIZER' is invalid in C99 Expected ')'

此生再无相见时 提交于 2019-12-04 16:37:06
问题 I'm using Facebook SDK for iOS 4.6.0 and just today above error encountered after updating cocoapods to 0.38.2. I'm not sure this error has anything to do with cocoapods. Error screenshot: 回答1: I had the same issue. The problem appeared because, I was connecting both " ParseFacebookUtils " (which was loading " Facebook-iOS-SDK " (which is the deprecated version) and " FBSDKCoreKit " separately. " Facebook-iOS-SDK " and " FBSDKCoreKit " both have " FBSDKMacros.h " which has different

Fetching basic information (id, first_name) from Facebook by using Social Framework - source code and screenshots attached

非 Y 不嫁゛ 提交于 2019-12-04 15:58:16
For what would be a word game later I am trying to fetch very basic information about a player by using Social framework: id first_name gender location (i.e. nothing sensitive like email and I don't use Facebook iOS SDK). So in Xcode 5.0.2 I create a blank single view app for iPhone and add Social.framework to the Build phases tab. Then I add the following code to the ViewController.m : #import "ViewController.h" #import <Social/Social.h> #import <Accounts/Accounts.h> #define FB_APP_ID @"432298283565593" //#define FB_APP_ID @"262571703638" @interface ViewController () @property (strong,

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

本秂侑毒 提交于 2019-12-04 15:46:34
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 screen is shown each time. Please note that when i clear the website data of safari manually it shows the

Handle invalid accessToken with FBSession openActiveSessionWithReadPermissions in Facebook iOS 3.1.1 SDK

安稳与你 提交于 2019-12-04 15:45:51
Before anything, I have read both this and this questions to solve the problem below and before asking. My problem is that when the accessToken gets expired (either because the expiration date passes, or manually by deleting the app from my Facebook's App Center) the following code: if ([[FBSession activeSession] isOpen]) { //do something } else { [FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:YES completionHandler:^(FBSession *session, FBSessionState status, NSError *error) { if(FB_ISSESSIONOPENWITHSTATE(status)) { //do something } } }]; } gets in the else block with

Can I use Facebook auth server side flow on an iPhone app and still have client side interactions?

ぃ、小莉子 提交于 2019-12-04 11:10:41
I have a website that uses Facebook authentication for logging in users. It uses the oAuth 2.0 server side flow for authentication and it all works fine. I am now developing an iPhone application for the same website and want to allow users to sign in to the website via the iPhone application using FB authentication.The Facebook iOS SDK provides mechanisms to do the authentication using the client side flow, where in my iPhone app gets the access token. Now to authenticate the user with my server, and also make the access token available to my server, I thought of sending this access token to

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

陌路散爱 提交于 2019-12-04 07:52:37
问题 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

FBSDKShareDialog callback for iOS

倾然丶 夕夏残阳落幕 提交于 2019-12-04 07:42:31
What is the callback method for FBSDKShareDialog when it returns back to your app (after the user has finished creating a post)? This is what I have to create the dialog: -(IBAction)post:(id)sender{ FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; content.contentURL = [NSURL URLWithString:self.spinShareURL]; content.contentDescription=@"#spin"; self.fromFacebook = true; [FBSDKShareDialog showFromViewController:self withContent:content delegate:nil]; } I read somewhere that there is a callback -(void)dialogDidComplete:(FBSDKShareDialog *)dialog{ } But this didn't work for