Migrating from the old Facebook Connect API to the new Facebook Connect API
Old | New |
---|---|
FB.ensureInit(callback) | window.fbAsyncInit = function () {...} |
FB.Connect.requireSession(callback) | FB.getLoginStatus(callback) and FB.login(callback) |
FB.Connect.logout(callback) | FB.logout(callback) |
FB.Connect.createApplication(name, callback) | No equivalent |
FB.Facebook.apiClient.users_getInfo(uids, fields, callback) | FB.Facebook.apiClient.users_getInfo(uids, fields, callback) |
FB.Facebook.apiClient.fql_query(fql, callback) | FB.api({method:'fql.query', ...}) |
FB.Connect.get_loggedInUser() | FB.getLoginStatus(callback) |
FB.Connect.showPermissionDialog(permission, callback, enableProfileSelector, profileSelectorIds) | FB.ui({method: 'permissions.request', ...}) |
FB.init(apiKey, xdReceiverPath, {ifUserConnected, ifUserNotConnected, doNotUseCachedConnectState}) | FB.init({appId, channelUrl, status, cookie, xfbml}) |
FB.Connect.streamPublish(userMessage, attachment, actionLinks, targetId, userMessagePrompt, callback, autoPublish, actorId) | FB.ui({method: 'stream.publish', ...}) |
<meta name="title">, <link rel="image_src">, <link rel="video_src">, etc. | <meta og:title>, <meta og:image>, <meta og:video>, etc. |
Labels: migration guide
0 Comments:
Post a Comment
<< Home