Welcome Guest, Not a member yet? Register   Sign In
Facebook Starter Kit for Codeigniter
#1

[eluser]envysea[/eluser]
Hello everyone!

I'm in the process of building a small Facebook App using Codeigniter and the Facebook SDK for OAuth Authentication. I was looking around at how a lot of people setup the SDK and CI, and I decided I would throw my two cents at it.

All you have to do is follow the instructions in the README, and you'll have working Facebook Authentication with your Codeigniter Install. It's super straight forward, pretty basic, but it gets the job done -- especially for beginners or people who would like to see a solid way for setting up Facebook with Codeigniter.

Anyways, if you guys have any questions, suggestions, or anything please feel free to contact me at [email protected].

I hope this at least helps one person out there! Thanks!

Demo http://stellarfrequency.com
github https://github.com/ncerminara/Facebook-S...odeigniter
#2

[eluser]AsoStrife[/eluser]
How can I show in my page the username of account ?
#3

[eluser]envysea[/eluser]
Example:
Code:
$user = $this->facebook->api($this->session->userdata('facebook_uid')));
$this->session->set_userdata(
                             array(
                                   'name' => $user['name'],
                                   'first_name' => $user['first_name'],
                                   'last_name' => $user['last_name'],
                                   'link' => $user['link'],
                                   'username' => $user['username']
                                   )
                             );

echo $this->session->userdata('name');
#4

[eluser]Samus[/eluser]
[quote author="envysea" date="1335927820"]Hello everyone!

I'm in the process of building a small Facebook App using Codeigniter and the Facebook SDK for OAuth Authentication. I was looking around at how a lot of people setup the SDK and CI, and I decided I would throw my two cents at it.

All you have to do is follow the instructions in the README, and you'll have working Facebook Authentication with your Codeigniter Install. It's super straight forward, pretty basic, but it gets the job done -- especially for beginners or people who would like to see a solid way for setting up Facebook with Codeigniter.

Anyways, if you guys have any questions, suggestions, or anything please feel free to contact me at [email protected].

I hope this at least helps one person out there! Thanks!

Demo http://stellarfrequency.com
github https://github.com/ncerminara/Facebook-S...odeigniter[/quote]
Thought I knew that name from somewhere.

I've been using your auth system for a while now. Big Grin
#5

[eluser]envysea[/eluser]
@Samus You've made my entire week by saying that! Thanks!
#6

[eluser]marega[/eluser]
Thanks envysea!

Im a bit of a newb here and I wonder how I get access to the users email adress.
I have set permissions. Thats working. Now I need to add the users email to the session.

Code:
$this->session->set_userdata(array('facebook_uid' => $result['facebook_uid'], 'email'=>$result['email'], 'is_logged_in' => TRUE));

I tried to ad the email to the array but that did not work.
Thanks in advance! =D




Theme © iAndrew 2016 - Forum software by © MyBB