What is the simplest way to add Facebook Connect to a PHP web site?

I wrote my own library to work with Facebook Connect as I found the one provided to be very lacking I can't provide the code as it is company code, but here's a breakdown of what I needed to do. Hopefully you can use it and fill in the blanks easily yourself In your application settings, configure the "Connect" tab. The "Connect URL" in my case is the root folder where my xd_receiver.

Htm file is. Also, under "Advanced" I marked my app as a Web Application Put your xd_receiver. Htm file in the root folder specified above.

There is a ton of documentation on xd_receiver. Htm out there. This is what facebook hits when the user logs in.It will write cookies to their browser which your application can read in later to do authentication The cookies Facebook sets are in the format of _ where APIKEY is your apps API key and is the name of the cookie.

You'll need the _session_key cookie to make further API calls. If this cookie is not set, you need to show the login button as desscribed in steps 4 - 6. Otherwise skip to step 7 You need to load in the Facebook javascript file on your page that you will have the FB login button http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php To show the FB login button, use: The Facebook JS will automatically render a facebook login button for you.

It will trigger the "facebook_onlogin" method that you shall define once the user is logged in so you can do something after they login Right below the above markup, you need to call the FB init javascript to have it render the button: FB. Init('YOUR API KEY HERE', 'ABSOLUTE PATH TO YOUR XD_RECEIVER. HTM FILE HERE') Use the session_key as set in the cookie to make any API calls.

How to make API calls is well documented Hope this helps.

I wrote my own library to work with Facebook Connect as I found the one provided to be very lacking. I can't provide the code as it is company code, but here's a breakdown of what I needed to do. Hopefully you can use it and fill in the blanks easily yourself.In your application settings, configure the "Connect" tab.

The "Connect URL" in my case is the root folder where my xd_receiver. Htm file is. Also, under "Advanced" I marked my app as a Web Application.

Put your xd_receiver. Htm file in the root folder specified above. There is a ton of documentation on xd_receiver.

Htm out there. This is what facebook hits when the user logs in.It will write cookies to their browser which your application can read in later to do authentication. The cookies Facebook sets are in the format of _ where APIKEY is your apps API key and is the name of the cookie.

You'll need the _session_key cookie to make further API calls. If this cookie is not set, you need to show the login button as desscribed in steps 4 - 6. Otherwise skip to step 7.

You need to load in the Facebook javascript file on your page that you will have the FB login button. ==> http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php To show the FB login button, use: The Facebook JS will automatically render a facebook login button for you. It will trigger the "facebook_onlogin" method that you shall define once the user is logged in so you can do something after they login.

Right below the above markup, you need to call the FB init javascript to have it render the button: FB. Init('YOUR API KEY HERE', 'ABSOLUTE PATH TO YOUR XD_RECEIVER. HTM FILE HERE'); Use the session_key as set in the cookie to make any API calls.

How to make API calls is well documented. Hope this helps.

I have recently added a friend notification feature to Cogenuity using the facebook connect technology. First, you need to create the facebook object in your php code. I am assuming that you have already done the facebook application registration goodness.

I found a lot of the parts to facebook connect not to work but what did work was this. $user = $facebook->require_login(); I found that the FQL parts worked pretty good. $query = "select uid1 from friend where uid2 = {$user}"; $results = $facebook->api_client->fql_query($query); I used this FQL query which may serve your needs.

$query = "SELECT name, pic_square, status, about_me FROM user WHERE uid = {$uid}"; $results = $facebook->api_client->fql_query($query); As does the notification_send method. $facebook->api_client->notifications_send($notifyTarget, $intro, 'user_to_user'); I hope this helps.

Here is a pretty detailed tutorial. Note that I have not tried this but I have used other code from pakt and its been pretty helpful.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions