Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello!
I got task in my university.
I have to create IFrame in facebook, check who is logged in facebook, read data and save in DB.
I'm newbie in PHP, I have never used facebook api and php.

1.When I start create account, needs to filling some fields interesting just 2:
App Domain: (What should I write here if I don't have domain? currently I have Denwer and using localhost:81)
App on Facebook: (What must I fill here in next 2 fields: Canvas and Secure canvas?)

2.I guessed to create button, when I click execute function, where:

PHP
$facebook = new Facebook(array('appId' => '2222....', 'secret' => '4444..'));
$user = $facebook->getUser();


I guess getUser gives data about my profile that logged now. If yes, I don't know how get data from this variable and save to DB.

Please help me.Thanks a lot

PS Also interesting, how can I get data about user if i have just eMail?
Posted
Updated 12-Dec-12 10:45am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900