problem about facebook-ios-sdk-Collection of common programming errors


  • Shabib
    ios facebook-graph-api facebook-ios-sdk
    I am trying to post a photo to my apps facebook fan page and to the users wall also. I have been successful to post the photo on the users wall, but failed to post it in the fan pages wall. (The user is not necessarily an admin or page owner, just the regular users. As the fan page has the option of anyone can post to it, it is not mandatory for the user to even like the page first. Right?)After googling a while, I found this answer. According to it, I need an access_token of the fan page and a

  • Enes Tanriöver
    ios phonegap cordova phonegap-plugins facebook-ios-sdk
    I’m trying work phonegap facebook connect plugin facebook SDK 3.1 but its doesnt work!libsystem_kernel.dylib`__pthread_kill: 0x973dca60: movl $524616, %eax 0x973dca65: calll 0x973de4c2 ; _sysenter_trap 0x973dca6a: jae 0x973dca7a ; __pthread_kill + 26 0x973dca6c: calll 0x973dca71 ; __pthread_kill + 17 0x973dca71: popl %edx 0x973dca72: movl 26027(%edx), %edx 0x973dca78: jmpl *%edx 0x973dca7a: ret 0x973dca7b: nop Application Log

  • John
    ios objective-c facebook facebook-graph-api facebook-ios-sdk
    I can’t seem to get my posts to work using the Facebook SDK for iOS. I am using the “startWithGraphPath:parameters:HTTPMethod:completionHandler:” function. I can get the message, place, and picture working but I can’t seem to tag friends. I have tried setting the NSDictionary key and object to parameters[@”tags”] = self.friendsIDs; which is a string of comma separated Facebook User ID’s (per the Facebook reference page: https://developers.facebook.com/docs/reference/api/user/#posts). However thi

  • SerbanLupu
    objective-c facebook facebook-ios-sdk
    I want to integrate Facebook SDK3.0 in my project, but I have some crashes at the initialization part. I tried in two different ways:I am calling [[FBSession initWithAppId] …], but I get GISABRT exception[FBSession initWithAppID:permissions:urlSchemeSuffix:tokenCacheStrategy:]:unrecognized selector sent to instance 0x22c0890 wait_fences: failedto receive reply: 10004003 2012-09-04 17:40:46.353iOSTemplate[236:707] * Terminating app due to uncaught exception’NSInvalidArgumentException’, reason:

  • curtis
    ios6 facebook-ios-sdk
    Hi I’m using the facebook share sheet on SDK 3.1 and it works except when I try to share 2 urls it crashes.NSArray* urls = [NSArray arrayWithObjects:@”http://google.com”, @”http://yahoo.com”, nil]; BOOL displayedNativeDialog = [FBNativeDialogs presentShareDialogModallyFrom:selfinitialText: @”hellooo”images: nilurls: urlshandler: ^(FBNativeDialogResult result, NSError *error) { if (error) {NSLog(@”handler error:%@, %@”, error, [error localizedDescription]); } else { if (result == FBNativeDial

  • bodacious
    facebook-ios-sdk rubymotion cocoapods
    I’m getting the following error when I try to build my Rubymotion app:Undefined symbols for architecture armv7:”_sqlite3_bind_double”, referenced from:-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)”_sqlite3_bind_int”, referenced from:-[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in libPods.a(FBCacheIndex.o)-[FBCacheIndex _writeEntryInDatabase:] in libPods.a(FBCacheIndex.o)-[FBCacheIndex _tr

  • zoul
    ios facebook-ios-sdk
    I have integrated latest facebook sdk for ios 6 and configured it as done for previous ios version but it is giving me error that is listed below:Undefined symbols for architecture i386:”_ACAccountTypeIdentifierFacebook”, referenced from:+[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)”_ACFacebookAppIdKey”, referenced from:-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)”_ACFacebookAudienceEveryone”,

  • gaussblurinc
    facebook linker facebook-ios-sdk
    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 l

  • Lego
    cocoa-touch xcode4.2 facebook-ios-sdk
    I’ve just updated the Facebook iOS SDK in my project from 3.0 to 3.1. The project does not compile anymore. Instead I get the following linker errors:Undefined symbols for architecture i386:”_ACFacebookAppIdKey”, referenced from:-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)”_ACFacebookAudienceEveryone”, referenced from:-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthori

  • Kasihasi
    facebook ios6 facebook-ios-sdk xcode4.6 facebook-iphone-sdk
    After installing the new sdk I cleaned the project and build it. It fails with this message:Undefined symbols for architecture i386:”_SecRandomCopyBytes”, referenced from:+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)”_kSecRandomDefault”, referenced from:+[FBCrypto randomBytes:] in FacebookSDK(FBCrypto.o)-[FBCrypto encrypt:additionalDataToSign:] in FacebookSDK(FBCrypto.o)ld: symbol(s) not found for architecture i386clang: e

  • CodeGeek123
    iphone ios facebook facebook-graph-api facebook-ios-sdk
    I get all these errors and about 18 more when i try to integrate facebook to my application. Undefined symbols for architecture i386: “_ACAccountTypeIdentifierFacebook”, referenced from:+[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o) “_ACFacebookAppIdKey”, referenced from:-[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o) “_ACFacebookAudienceEveryone”, referenced from:-[FBSession authorizeUsingSystemA

  • rjstelling
    ios xcode facebook-ios-sdk
    I’m using Facebook SDK 3.7 in an iOS static library project isolating core functionality for various apps. It’s a nice improvement in the SDK that you no longer have to manually include dependent frameworks. However, the end project that uses the static lib throws Mach-O linker errors when building. Manually adding the frameworks from this link (https://developers.facebook.com/docs/ios/upgrading-from-3.5-to-3.6/) fixes it. Is there some change that can be made (to their build scripts, to pro

  • Phan Hien
    post tags user photo facebook-ios-sdk
    I’m having an issue on uploading photo and tag user’s friend to Facebook user’s wall. It returns unknown errorIf I removed the tags param, it will work perfect.This is the code I use to post photo and tag usersNSMutableArray *chunks = [[NSMutableArray alloc] init];NSMutableDictionary *tagDict=[[NSMutableDictionary alloc]init];for(int i=0; i < appDelegate.listFriend.count ;i++) {NSDictionary *friend = [appDelegate.listFriend objectAtIndex:i];NSString *type = [NSString stringWithFormat:@”%@”,[f

  • Stavash
    ios objective-c facebook-ios-sdk fbnativedialogs
    I’ve been struggling with this issue for a while now and I just can’t seem to reproduce it accurately enough to describe the exact use-case. Essentially, what I’m doing is issuing a request for opening a native iOS 6.0 Facebook share dialog (using the Facebook iOS SDK 3.1.1):if ([[SocialManager sharedManager] isNativeFacebookShareDialogAvailable]) {if (!url) {url = [NSURL URLWithString:@””];}if (!imageUrl) {imageUrl = [NSURL URLWithString:@””];}dispatch_async(backgroundQueue, ^{NSData *imageData

  • Sam
    ios facebook-ios-sdk
    I’m having trouble compiling the HelloFacebookSample app that comes with Facebook SDK 3.0.Firstly, I should say I’m using Xcode 4.0.2, iOS SDK 4.3 and OS X 10.6.8. (I’m struggling to find a way to download Xcode 4.2 without upgrading to Lion or Mountain Lion, which I’m reluctant to do.)When I try to build the sample project, I get the following build errors:1) Unexpected ‘@’ in programint main(int argc, char *argv[]) {@autoreleasepool { // error on this linereturn UIApplicationMain(argc, argv

  • elado
    ios facebook facebook-ios-sdk
    I have two versions of my iPhone app, one is for the appstore and the other an ad-hoc version for internal testing. They have: – Same FB App ID for both (they both communicate with same backend) – Two different bundle IDs (so they can both be installed on device) – Different URL suffixes (empty and ‘adhoc’)They both worked properly with login, but when I changed the iOS Bundle ID on the app page on FB admin tool it obviously stopped working: I got “fb_APP_ID_SUFFIX://authorize#error=unknown%5Fer

  • Joe Rideout
    ios runtime-error facebook-ios-sdk objective-c-category
    I just upgraded my app from Facebook iOS SDK 3.1 to 3.2.1 and I’m trying to take advantage of the new error handling provided by the new FBError category on NSError. The code is at the bottom. It compiles fine, but when a FB error occurs, I get the following at run time:- [NSError fberrorShouldNotifyUser]: unrecognized selector sent to instanceThis seems like a linker error, where the category is not getting linked in from the the FacebookSDK static library. I tried adding both the -ObjC and -al

  • Idan
    iphone ios facebook-graph-api facebook-ios-sdk
    I have my server side code create an event on Facebook, using a Facebook application user I created.Then, I want mobile users of my app, that logs in to my app using FB connect, to be able to publish actions on that even’s wall. I tried doing it using code,curl or graph explorer, but nothing seems to work. I suspect the only option is to publish actions using the user that created the event.When I Post to a link like this:https://graph.facebook.com/EVENT_ID/APP_NAMESPACE:ACTIONWith the object as

  • Daniel Mann
    ios facebook ios6 facebook-ios-sdk
    I’m trying to transition my app to the new Facebook SDK 3.1 (with support for iOS6 authentication).I had it working just fine, so I then decided to remove the app from my list of authorized apps on the FB web site in order to test that iOS would ask for permission again.Now my first call to [FBRequest requestForMe] causes this error:Response: {“error”:{“message”:”Error validating access token: Session does not match current stored session. This may be because the user changed the password since

  • Dany Px
    facebook facebook-graph-api facebook-comments facebook-ios-sdk
    Has anyone tried to use the new Facebook SDK to post a comment to an URL? i tried by using startForPostWithGraphPath like this (code snippet picked from Scrumptious project):id action = [FBGraphObject graphObject]; [action setValue:@”test from iOS app” forKey:@”message”];// Create the request and post the action to my url path. [FBRequestConnection startForPostWithGraphPath:@”XXXXXXXXXXXXXXXXXXX/comments” graphObject:actioncompletionHandler:^(FBRequestConnection *connection,id result,NSError *

  • Sammy
    ios facebook phonegap phonegap-plugins facebook-ios-sdk
    I have a Phonegap app that runs on both iOS and Android. The app has a Facebook login feature which worked until a few days ago. A few of our beta testers have reported an ‘The operation couldn’t be completed com.facebook.sdk error 2’ error. The devices of these testers vary: iPhone 5, iPhone 4s, iPod Touch, iOS 5.1.1 and iOS 6.0.We use the latest Facebook SDK and a Phonegap Facebook login plugin (https://github.com/davejohnson/phonegap-plugin-facebook-connect/). I’ve done some research and foun

  • Rox Dorentus
    objective-c xcode facebook api facebook-ios-sdk
    since this week my iOS App has a problem accessing FB (via iOS FB SDK). Following error occurs: 2013-06-18 15:44:16.756 foo-coffee[2441:907] Error: HTTP status code: 500 2013-06-18 15:44:16.761 foo-coffee[2441:907] Errrror: Error Domain=com.facebook.sdk Code=5 “The operation couldn’t be completed. (com.facebook.sdk error 5.)” UserInfo=0x21051e70 {com.facebook.sdk:ParsedJSONResponseKey={ body = {error = {code = 1;message = “An unknown error has occurred.”;type = OAuthException;}; }; c

  • Mann
    ios facebook-graph-api facebook-ios-sdk
    I am trying to fire a request using graph api with the following path /me/?fields=friends.fields(photos) but I keep getting body = {“error_code” = 1;”error_msg” = “An unknown error occurred”;};code = 500;can somebody please help.

  • Dinesh Raja
    iphone ios6 ios4 facebook-ios-sdk acaccount
    I have installed newly updated facebook SDK 3.5 in my mac. I took the tutorials given in facebook developer website and integrated the facebook SDK in my XCode Project.Facebook SDK LinkTutorial LinkI just tried to run the facebook sample project. But I am getting the error asParse Issue: Unknown Type ACAccountCredentialRenewResult Errorand project is not compiling. I have seen that ACAccountCredentialRenewResult is available from iOS 6 itself. But facebook says the SDK is compatible from iOS 4.3

Originally posted 2013-11-29 12:56:32.