Wednesday 28 November 2012

Codeigniter facebook API


Login/Signup with facebook is an essential part of a website in these days.Here is the step by step description of integrating Codeigniter facebook api for your web application.
2) Extract the files inside the zip.
3) Move facebook.php, base_facebook.php and fb_ca_chain_bundle.crt to your application/libraries folder.
4) frm_login.php is the view page and you can move it to your application/views folder
5) Now open the home.php and copy the function login() and paste in your controller. You can change the function name and view page name if required.
6) Once you are completed with the above, please create a new app for your website/script from facebook and insert the app id and secret key in your code.
That’s it. Now enjoy facebook login!
If you are developing from your local server, you will need to set a virtual server for your development environment. That is, instead of http://localhost/ you need to load it as http://example.com/ or http://myserver.com/ because facebook will accept the http protocols with domain extensions only and not localhost. (You can set the virtual server from windows/system32/drivers/etc/hosts/).
Hope you are clear about the integration procedure.
If you need any clarifications, please send us an email us at support@innovativewebz.com.

No comments:

Post a Comment