Can Facebook's Javascript SDK work together with the older Facebook API?

Converting the JavaScript API is relatively easy. I am not sure how much your server side will be affected though. Here are the basic methods that you would probably need: Check if user is logged in right now.FB.

GetLoginStatus(function(response) { if (response. Session) { // logged in and connected user, someone you know } else { // no user session available, someone you don't know } }); //Callback fired when user logs out/logs in.FB.Event. Subscribe('auth.

SessionChange', function(response) { // do something with response. Session }); //To force login (on login btn click). FB.

Login(function(response) { if (response. Session) { // user successfully logged in fb_after_connect(); } else { // user cancelled login } }); //Post to feed. FB.

Api('/me/feed', 'post', { body: "message" }, function(response) { if (!response || response. Error) { alert('Error occured'); } else { alert('Post ID: ' + response); } }) If you don't want to convert to the new API then you can embed like button as iframe. Sooner or later you would have to convert your project anyway so might as well do it now.

Converting the JavaScript API is relatively easy. I am not sure how much your server side will be affected though. Here are the basic methods that you would probably need: //Check if user is logged in right now.FB.

GetLoginStatus(function(response) { if (response. Session) { // logged in and connected user, someone you know } else { // no user session available, someone you don't know } }); //Callback fired when user logs out/logs in.FB.Event. Subscribe('auth.

SessionChange', function(response) { // do something with response. Session }); //To force login (on login btn click). FB.

Login(function(response) { if (response. Session) { // user successfully logged in fb_after_connect(); } else { // user cancelled login } }); //Post to feed. FB.

Api('/me/feed', 'post', { body: "message" }, function(response) { if (!response || response. Error) { alert('Error occured'); } else { alert('Post ID: ' + response); } }); If you don't want to convert to the new API then you can embed like button as iframe. Sooner or later you would have to convert your project anyway so might as well do it now.

I see. Maybe part of the work will be to find all the old code and remove them as well... but I guess it will be either the initialization or the code doing the work, which will be converted to using the new SDK. Thanks.

– å‹•é? Œèƒ½é‡? Oct 12 '10 at 20:12.

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