facebook,codeigniter,codeigniter-urlRelated issues-Collection of common programming errors


  • Prashant
    php javascript jquery facebook
    I have to call below function call to my php file…if any one have idea please help….function update_hidden_input(saved_tokens, hidden_input) {var token_values = $.map(saved_tokens, function (el) {//alert(el[settings.tokenValue]);return el[settings.tokenValue];});hidden_input.val(token_values.join(settings.tokenDelimiter));//var frienduid =(token_values.join(settings.tokenDelimiter));//alert(frienduid);}

  • SuperDuck
    javascript facebook facebook-like
    I’m looking for a way to fire a JS action when a visitor ‘does’ with the facebook ‘like’ button. There is Event.subscribe(‘edge.create’.., but it fires right after a visitor clicks the like button, giving them no chance to write a comment and ‘share’ on their profile.I need an event which will be fired when someone closes the like box by using the ‘close’ button, or by sharing the page with a comment using the related button, so I can redirect them to the appropriate page when they’re done.Using

  • user1667307
    facebook
    I am using the following code to delete a user :https://graph.facebook.com/TEST_USER_ID?method=delete&access_token=TEST_USER_ACCESS_TOKEN (OR) APP_ACCESS_TOKENHowever it keeps telling me:{“error”: {“message”: “An unexpected error has occurred. Please retry your request later.”,”type”: “OAuthException”,”code”: 2} }

  • kk_nou
    facebook facebook-fql
    I have a problem with my FQL query. I read all the related topic but I can’t find my error. My Facebook App has this permissions: email, user_birthday, user_likes, read_stream. Inside a function I want to get if a user likes my page, but my query returns no result! The same query has been tested in Graph API explorer and I get a result. This is the function:function getUserInfo(accessToken) {FB.api(‘/me’, function (response) {var user_id = response.id;var page_id = “40796308305”; //page id for

  • Hoogstudentengilde De Wesp
    facebook facebook-fql photo
    I wrote a query, trying to all the comments, given on my albums. The query I use is the following :SELECT fromid, user_likes, text, time FROM comment WHERE object_id IN ( SELECT object_id FROM photoWHERE aid IN ( SELECT aid FROM album WHERE owner=me() ) )In my case, when I test it on the developers site, it just returns: {“data”: [] }So I figured my query wasn’t wrong because it returns no error so I asked a friend to try it and he did get all his comments on albums. The test page I used it t

  • Srini S
    sql facebook union facebook-fql
    Could you please anyone can show the UNION operation of two SELECT statements results in FQL. When i was trying to execute FQL query with UNION operation, I’m getting the following error error_msg=Parser error: unexpected ‘UNION’ at position 171., error_code=601}. Thanks in Advance.

  • beryllium
    facebook api
    I’m getting this, i didn’t modify nothing on facebook.php when I run my script the error apears.Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTIONor T_FUNCTION or T_VAR or ‘}’ in/home/csargent/public_html/fanpages/facebook/facebook.php on line 26

  • user714965
    facebook
    I am trying to authenticate my application using Facebook PHP SDK. It is working fine, but for some users it will show the following users{“error”: {“type”: “OAuthException”,”message”: “An unexpected error has occurred. Please retry your request later.”} }It is creating a access token. But still it shows the errors.

  • César Bustíos
    facebook metric
    I am trying to retrieve metrics post_impressions_unique, post_consumptions or anything started with a post but Facebook always return empty array for me. Anyone know what is the problem here?

  • John Kurlak
    javascript facebook sdk connect
    Today, all of my sites that use Facebook Connect are showing an error in the console from all.js:Uncaught SyntaxError: Unexpected token .Is this a Facebook problem or am I the only one experiencing it?

  • Shahed Hossain
    php xml codeigniter domdocument
    In my CodeIgniter 2.x project with PHP 5.3.x I use following function to render Dom Document as XML response. Every things are goes fine. But generated XML parsing failed due to some malformed unexpected text (non-whitespace text outside root element).function renderDOMAsXML(DOMDocument &$dom, $format = true, $status = 200){$dom->formatOutput = $format;$controller = &get_instance();$controller->output->set_status_header($status);$controller->output->set_header(‘Co

  • Chris Till
    codeigniter cron godaddy
    I’m trying to run a cron job for a simple php script in codeigniter, hosted with GoDaddy.the script is a controller like so:http://my-domain.com/facebook/myapp/cron/select_winnersI have setup a cron with the create cron tool as so….$HOME/html/facebook/myapp/index.php/cron/select_winnersWhen i run it in the browser it all works as intended. However as a cron it returns the following error:/bin/sh: -c: line 0: unexpected EOF while looking for matching `”‘/bin/sh: -c: line 1: syntax error: unexpe

  • Alex McCabe
    jquery codeigniter foreach modal-dialog
    I am using CodeIgniter to display a list of items from the database. I want to delete an item based on it’s ID. This is not a problem and works fine without the modal box. My issue is that I am using a jQuery plugin called reveal (http://goo.gl/3lzRN) to add a modal box to confirm deletion. This works for the first item in the list, but the others have the same ID as the first. <a href=”pages/<?php echo $row->id; ?>” class=”delete”><i class=”icon-cancel”></i><span c

  • zer02
    php javascript jquery json codeigniter
    I am trying to implement an search function (auto complete) using jquery,jquery-ui in Codeigniter, but I am getting “JSON Parse unexpected Character error” when typing into the input field.When calling /user/search_userautocomplete/test I do get back some values in JSON.(With warning : The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The char

  • hakre
    php security .htaccess codeigniter
    I have setup an htaccess rule (see below)RewriteRule ^images/(.*) http://www.mysite.com [R=301,L]My intention is that any of the following links will be redirected to site.com the problem is the question mark character (?) as this causes an ‘Disallowed key characters’ error in Codeigniter framework. I could modify the permitted characters in the config file but this is not recommended for security purposes.The links I aim to redirect looks like the following..http://www.site.com/images/flash/mai

  • luso
    codeigniter
    I’m having an unexpected behavior with links to the same page in Codeigniter. Somewhere in the page is a tag.However, links such as<a href=”#xx”></a>are not working. Even if I enter the URL manually: “path/to/page#xx” or “path/to/page/#xx” it goes to the top of the page.Something to do with the fact that there are no filename in the URL? Any clue will be welcome.Thanks!

  • Kimberly Mullins
    php codeigniter error-handling
    what is this error ?Parse error: syntax error, unexpected T_VAR in D:\xampp\htdocs\mehdi\application\libraries\phpass-0.1\PasswordHash.php on line 32code:$iteration_count_log2 = $params[‘phpass_hash_strength’];$portable_hashes = $params[‘phpass_hash_portable’]; var $itoa64; //line 32var $iteration_count_log2;var $portable_hashes;var $random_state;

  • fxuser
    php function codeigniter
    . . . .public $counts_per_page = 15;public function getNames($user_id, $count = $this->counts_per_page){//do stuff}. . . .I am getting an error on second parameter as it doesnt allow me to do this…Parse error: syntax error, unexpected T_VARIABLE inhow can i solve this?Thanks in advance.

  • Kate Thompson
    php codeigniter
    i have in following code error, what is cause? did is true following query?(how is true it?)$this->db->order_by(“id”, “desc”)->like(‘name’, %$value_search%)->get(‘ki_submits’); //line 15error: Parse error: syntax error, unexpected ‘%’ inD:\xampp\htdocs\application\models\model_name.php online 15

  • Nyxynyx
    php codeigniter sendgrid
    I am using the PHP library for Sendgrid (https://github.com/sendgrid/sendgrid-php). Following the instructions, I had to use this line of code:$mail = new SendGrid\Mail();I get the error:Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home/d/public_html/ac/application/controllers/email.php on line 20Parse error: syntax error, unexpected T_STRING in /home/d/public_html/ac/application/controllers/email.php on line 20Is there something wrong with using ‘\’? Seems strange

  • user1851359
    codeigniter codeigniter-2 codeigniter-url codeigniter-routing codeigniter-form-helper
    here is a question that I am not able to find a way to do it. At the home view, I have a php section that will echo out if users input is just signed in when they submit form. But when I am doing this, it will give out a undefined error, because that controller is not yet executed. This is my home view. <?php include(‘header.php’); ?> <?php echo $sign_in_results;?> <?php include(‘forms/forms.php’); ?> <?php include(‘footer.php’); ?>This is my sign in controller, will ge

  • Mr. Sam
    facebook codeigniter codeigniter-url
    i have http://www.idiotminds.com/login-with-facebook-in-codeigniter/ but i have error > A PHP Error was encountered > > Severity: Notice > > Message: Use of undefined constant CURLOPT_IPRESOLVE – assumed > ‘CURLOPT_IPRESOLVE’ > > Filename: facebook/base_facebook.phpand i fix CURLOPT_SSL_VERIFYPEER => false, but not fixedbut i have enable the php_curl**cURL support enabled cURL Information libcurl/7.24.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5**codepublic static $CURL_OP

Web site is in building