facebook,ios5,sdkRelated issues-Collection of common programming errors


  • Lance
    php facebook facebook-graph-api
    I’m trying to post content to a user’s wall with the help of the graph API and I keep on getting an error message reading: Fatal error: Uncaught OAuthException: An unexpected error has occurred. Please retry your request later.My code is as follows:$facebook = new Facebook(array(‘appId’ => ‘appID’,’secret’ => ‘SECRET’,’cookie’ => true ));$access_token = $facebook->getAccessToken(); $user = $facebook->getUser();if($user != 0) {$facebook->api(‘/me/predict-edit-add:predict’, ‘pos

  • Robbiegod
    plugin-development facebook
    I’m writing a plugin for WordPress that required the Facebook PHP SDK. I’ve run into what I think is a common problem judging from the number of results I’ve found dating back to over a year ago. Unfortunately, I have been unable to find a solution.I’m using WordPress 3.8 and Facebook PHP SDK Master taken from github so this should be the latest version. I’ve actually run this same code outside of WordPress and it successfully ran with no errors.So, i upload my plugin and activate it. I go t

  • Ashique Majeed
    php facebook facebook-graph-api facebook-php-sdk facebook-apps
    I just tried to develop a Facebook application using Facebook PHP SDK. The example code given in Facebook developer site is as below..<?php// Remember to copy files from the SDK’s src/ directory to a// directory in your application on the server, such as php-sdk/require_once(‘php-sdk/facebook.php’);$config = array(‘appId’ => ‘YOUR_APP_ID’,’secret’ => ‘YOUR_APP_SECRET’,’fileUpload’ => true,’allowSignedRequest’ => false // optional but should be set to false for non-canvas apps);$fa

  • Drav’
    php facebook facebook-php-sdk
    I’m getting an error when trying to use Facebook’s PHP SDK to develop a like-gating app. I’ve included facebook.php as advised but it still doesn’t work. Here’s my source code (index.php) calling the SDK, and the only error that I get:<?php require ‘facebook.php’;$facebook = new Facebook(array(‘appId’ => ‘1398375607065621’,’secret’ => ‘xxxxx’,’cookie’ => true ));$signed_request = $facebook->getSignedRequest(); $like_status = $signed_request[“page”][“liked”];if ($like_status) {echo

  • kaiser
    facebook fatal-error calendar
    I get the following error after adding multiple plugins, including All In One Event Calender and BackupWP. Now I can’t access anything from within the admin panel or from the front-end. I can’t get into the Plugins page to de-activate any problem plugin. Can anybody help me get back to a point where my site is usable?Fatal error: Cannot redeclare fb_admin_dialog() (previously declared in /home/jomoxo/public_html/angelinesoatmealoriginals.com/wp-content/plugins/facebook/fb-wp-helpers.php:2) in /h

  • Eugene
    php facebook facebook-graph-api
    I am using FB Connect and the PHP class called Facebook, that is provided by FB. Whenever something goes wrong FB throws Fatal Error and application dies. That’s great for testing but now very nice for production code. I’ve looked through code and can’t find a way to disable that but may be I overlooked something. So, is there any way to disable fatal errors other than looking through their class and removing every line like thisthrow new FacebookApiException($result);

  • Jayson Pimentel
    comments facebook
    Im using facebook comments for wordpress, now i would like to display the recent comment using the widget but its getting an error Fatal error: Cannot use string offset as an array in .. Is there other way to fetch the comments made from the posts and display them?

  • Jefffrey
    php facebook
    I am new to OOP and trying to recall a function from a parent class in Facebook WP plugin, I get the error from the file of the parent classmy code is: class check_fb extends Wdfb_Model { function __construct() {Wdfb_Model::get_wp_user_from_fb();} }//REST OF THE CODEhere is the code for the class http://codepad.org/d7MtD9i7 knowing that it is a class within a WP facebook plugin and works well within that plugingenerally what I am trying to do is define the property $this->fb->api(‘/me’); i

  • Priya jain
    facebook codeigniter
    I just follow same code from hereI’m getting this error frequently today. I’ve googled it but couldn’t figure out exactly what’s the root of the problem. Could be my host? Could be Facebook?Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:20:3f07:face:b00c:0:1: Network is unreachable thrown in ../folder/application/libraries/facebook/base_facebook.php on line 967

  • Kunwar Siddharth Singh
    php facebook symfony2 fosuserbundle fosfacebookbundle
    I’m trying to use FOSFacebookBundle in Symfony 2.3 as it says in https://github.com/FriendsOfSymfony/FOSFacebookBundle/blob/master/Resources/doc/2-integration-with-fosuserbundle.md but I always get the error: Can’t solve Fatal error: Class My\UserBundle\Security\User\Provider\FacebookProvider’ not found in app/cache/de_/ap_DevDebugProjectContainer.phpI have tryed multiple things, but can’t find what it is wrong.My code sample-Security.ymlsecurity: encoders:FOS\UserBundle\Model\UserInterface: sha

  • SpacyRicochet
    ios facebook ios5 facebook-ios-sdk
    I’m trying to allow the user to post a simple Facebook status update, without using OpenGraph. So far, allowing the user to log in and asking for publish_actions permissions, goes well without a hitch. However, when I try to call presentShareDialogWithLink:name:caption:description:picture:clientState:handler: it always returns nil and shows nothing. It doesn’t even appear to call the handler, which leaves at a loss as to why it doesn’t work.What are the reasons that this can fail? If I knew what

  • Hahnemann
    objective-c sockets ios5 timeout keep-alive
    I have the following code written in Objective-C that writes data to a socket. The server is running node.js on top of Ubuntu:NSString *url = @”anIPAddress”; CFReadStreamRef readStream; CFWriteStreamRef writeStream; CFStreamCreatePairWithSocketToHost(NULL, (CFStringRef)url, 9000, &readStream, &writeStream); self.inputStream = (NSInputStream *)readStream; self.outputStream = (NSOutputStream *)writeStream; [self.inputStream setDelegate:self]; [se

  • Kjuly
    iphone objective-c ios ios5 ios6
    I have this bit of code:[self.vManager playersNearLocation:userLocationblock:^(NSSet *players, NSError *error){if(players && [players count]){NSLog(@”Success in getting players”);/* TO DOConvert JSON to Objective C object here*/ }else{NSLog(@”Failed to get players”);}}];I am receiving JSON from the server, how do I convert it to a Dictionary or array object. I dont want to use any external libraries, is there a native way?Thanks

  • iOSiOS
    ios5 xcode4.3 sup mobilink
    I am working with iOS native application in iOS using objective C and SUP as middleware .I am using the same provisioning profile for two fifferent application to run in iPAD.My application was working well before . But now when I try to run it is showing an error like, The remote database identified by remote ID ‘%1’ is already synchronizing or the database connection is unusable: unable to access the lock for that remote ID Error code -10343 What can I do to solve this? when I searched in

  • ABros
    facebook ios5 sdk
    I’m using facebook connect in an iOS app (ARC, running on iOS 5). it was working fine on both simulator and device but since this morning it has stopped working on the device, it does still work on the simulator. On the device i get the fbDinNotLogin method called.Now, I know the differece is simulator uses mobile facebook and my app uses native iOS facebook app, and I also know that you can tweak the facebook.m file to force the app to do the login elsewhere but I don’t want to do that.loading

  • Serge Pashkevich
    ios5 ios4 cordova phonegap-plugins
    I am creating phoneGap plugin for iOS, which draws signature using NativeCode and Pass call back value to JavaScript.I’m able to draw the signature succesfully using natice code but I’m not able to do pass return value of saved signature, to JavaScript.JavaScript code is as followvar MyPlugin = {nativeFunction: function(types, success, fail) {return Cordova.exec(success, fail, “MyPlugin”, “print”, types);} };In “print” function I am calling a UIViewContoller class which draws signature, and on S

  • Littm
    objective-c ios5 phonegap ios4 phonegap-plugins
    This is what I did:1) Installed Cordova version 2.0.02) My XCode Version is 4.3.33) Created a phone gap project by ./create command. 4) in index.html:<script type=”text/javascript”>function nativePluginResultHandler (result) { alert(“SUCCESS: \r\n”+result ); } function nativePluginErrorHandler (error) { alert(“ERROR: \r\n”+error ); } function callNativePlugin( returnSuccess ) { alert(“Invoking..”);HelloPlugin.callNativeFunction( nativePluginResultHandler, nativePluginErrorHandler, return

  • Matt Cardoza
    ios ios5 air-native-extension
    Creating an Adobe AIR Native Extension that uses the following objC code will crash in iOS 5.1NSDictionary *value=[NSDictionary dictionaryWithObjectsAndKeys: @”aSampleValue”,@”aSampleKey”,nil]; NSLog(@”Try objectForKeyedSubscript: %@”, [value objectForKeyedSubscript:@”aSampleKey”]);It will fail with “[__NSCFDictionary objectForKeyedSubscript:]: unrecognized selector”I’ve got it working right now using Method Swizzling to remap NSDictionary objectForKeyedSubscript: to valueForKey: (if it does

  • flexaddicted
    ios ios5 automatic-ref-counting weak strong
    This question already has an answer here:Should IBOutlets be strong or weak under ARC?6 answersI have switched my project to ARC, and I don’t understand if I have to use strong or weak for IBOutlets. Xcode do this: in interface builder, if a create a UILabel for example and I connect it with assistant editor to my ViewController, it create this:@property (nonatomic, strong) UILabel *aLabel;It uses the strong, instead I read a tutorial on RayWenderlich website that say this:But for these two part

  • PeterK
    objective-c ios5
    I have this line of code to pop back to the root menu when clicking the “back” button on the top bar:- (void)viewWillDisappear:(BOOL)animated {[super viewWillDisappear:animated];[self.navigationController popToRootViewControllerAnimated:YES]; }I have had no problem with this until now, i still use IOS 5.1 as target.As i run this code now (XCODE 5) i get the following message:Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted….and it onl

  • M Charles
    android sdk
    My first Android app and I’m trying to integrate with UniMag SDK. I’ve included my logic below. Basically I’m trying to use the UniMag SDK but the sample logic they supply is really complicated for what I need to do. Ultimately I’m just looking to build a web view that my swiper will send card data to via JS. No idea what this error is telling me. Here’s my log cat:02-28 21:30:09.740: E/AndroidRuntime(25624): FATAL EXCEPTION: main02-28 21:30:09.740: E/AndroidRuntime(25624): java.lang.RuntimeExce

  • cheesemacfly
    php sdk paypal
    I need to execute the phpsdk paypal samples on:http://www.fastbreakplay.com/preview/paypal/sample/but I get the following error:Fatal error: Class ‘string’ not found in/home/fastbre/public_html/preview/paypal/sample/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/Model.phpon line 53

  • Aron Cederholm
    java android sdk
    There are no errors in the source (osmand)I used eclipse and sdk emulator 2.2 checkout from googlecode (osmand application) My code : public void onCreate(){ super.onCreate(); routingHelper = new RoutingHelper(OsmandSettings.getApplicationMode(OsmandSettings.getPrefs(OsmandAp­plication.this)), OsmandApplication.this, player); manager = new ResourceManager(this); daynightHelper = new DayNightHelper(this); uiHandler = new Handler(); startApplication(); } These are all errors in logcat : 05-0

  • Dylan Beattie
    .net-4.0 msbuild sdk
    I’m setting up .NET 4.0 support on our CI server. I’ve installed .NET 4.0, and the .NET tools from the Windows 7.1 SDK.On .NET 2.0 and 3.5, that just worked. With .NET 4, when I run the “Windows SDK 7.1 Command Prompt” from the Start menu, it complains about The x86 compilers are not currently installed. x86-x86 Please go to Add/Remove Programs to update your installation. . Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.1 \. Targeting Windows Server 2008 x86 Debu

  • Alex Cohn
    android sdk android-ndk shared-libraries sound-api
    I am trying to use a .so library (http://illiri.com/api.html) inside my android application. I have copied the .so files in libs folder (libs/armeabi, libs/armeabi-v7a, libs/mips, libs/x86), and loading libraries as,System.loadLibrary(“crypto”); System.loadLibrary(“ssl”); System.loadLibrary(“sapi”);But I am getting this error in stack trace.08-26 11:17:24.677: E/dalvikvm(25747): Could not find class ‘com.illiri.sapi.SAPIConnection’, referenced from method com.ey.illiritest.MainActivity.onCreate0

  • Reg
    java android sdk
    I want to create a soundboard, so when you click on button it plays the sound. @Override protected void onCreate(Bundle savedInstanceState) {// TODO Auto-generated method stubsuper.onCreate(savedInstanceState);setContentView(R.layout.akali);Button b = (Button) findViewById(R.id.akaliJokeButton);b.setOnClickListener(new OnClickListener() {public void onClick(View v) {MediaPlayer mp = MediaPlayer.create(Akali.this, R.raw.akalijoke);mp.start();}});}That is my code that I have so far. But I get a no

  • user2507201
    android sdk alfresco sample
    i am testing the sdk samples app from alfresco android sdk under a AVD, i am using alfresco community edition 4.2, when i enter a wrong Hostname i get the message “failed to log in. please check your settings”, but when i enter the correct host name, the app crashes and i get the message “Unfortunately, SDK Samples has stopped.” then it restarts…there is this one time, i entered the correct host name and the app connected to the alfresco server without any problem, but when i tried a second ti

  • Kevin Sleegers
    android sdk augmented-reality metaio
    I’ve been trying to get some AR (Augmented Reality) SDK’s working in a Fragment. However, I can’t seem to get it working.I’ve found some code of someone who has got Metaio (AR Framework) working in a fragment.So I’ve applied that code to my own project, it is working but the code is not programmed to scan a picture. I want to scan a picture mark with it. I copied some code to scan a picture mark from a Sample Project of Metaio, but it doesn’t work.Right now it is failing at (Debug logs after tha

  • Graybeards
    eclipse sdk android-emulator avd android-x86
    i install avd and eclips succesfuly in windows 7 64bit API 15 Android 4.0.3 GPU emulation : yes HAX is ok AND Cpu x86 atom 1024 mb ram accomaltor proxmy fieldeverything is good and activating google paly store(vending.apk) google login services , google services….. in /system/app but when in install every games its stop and show me unfortunatly “game” stop! i capture one of logcat of games to you! i think some runtime erorr hapening how solved?? please say minimal requarment to my emulator

  • alfa64
    java android sdk emulator
    i’ve been 24 hours nonstop trying to sort this out with no luck. At first it worked slow, but worked. Then Eclipse started to have errors connecting with the emulator and then the emulator by itself just shows ANDROID_ forever. ( forever as in two hours) What i’ve tried in this 24 hours:-reinstalling eclipse,sdk,jdk.-deleting .android folder in document and settings.-waiting 2 hours for the emulator to work by itself.-downloading the 2.2 image and the 2.2.3 image, also 1.6, none works.Can you te

Web site is in building