开发者

Error while loading the default page on Facebook App

开发者 https://www.devze.com 2023-03-22 16:46 出处:网络
Hello everyone, i am new to codeigniter and Facebook App.I went through one tutorial for the Facebook App with codeigniter.I did all the settings and everything but when i load the application, it thr

Hello everyone,

i am new to codeigniter and Facebook App. I went through one tutorial for the Facebook App with codeigniter. I did all the settings and everything but when i load the application, it throws me this error "An Error Was Encountered.

The action you have requested is not allowed.".

I am using the default welcome.php page which have the echo statement.

 class Welcome extends 开发者_StackOverflow中文版CI_Controller {

function __construct(){
    parent::__construct();
}

   function index(){
    echo 'checking';
   }
}

Thanks for helping in advance..


i figured out the problem. The problem was with the Cross Site Request Forgery settings in config file. when $config['csrf_protection'] was enabled, i was not able to access the app. But when i setted the $config['csrf_protection']=FALSE. it started working.


Two things that can be your problems, your FB app configuration and your permission setting either in htaccess or file permission

0

精彩评论

暂无评论...
验证码 换一张
取 消