-
Added
FacebookCallback
page and associated controller to handle callback from Facebook centrally. -
Added
FacebookCheckUser
custom Visualforce component and associated controller to periodically check that the current user has a valid Facebook session, and log them out of the Force.com app if the Facebook session is no longer valid. Usage:<!-- appId - Facebook Application ID --> <!-- userId - ID of currently logged in Facebook User --> <!-- timeout - Timeout, in seconds --> <c:FacebookCheckUser appId="{!appId}" userId="{!me.id}" timeout="60" />
-
Added
FacebookMessage
andFacebookThread
classes - wrap Message and Thread Graph API Objects. -
Added
FacebookInbox
page and associated controller to show how to view Facebook Messages with the Toolkit. Note that there is no mechanism for apps to send Facebook Messages. -
Refactored
FacebookSamplePage
to no longer automatically log the user in. Added a login button, and use of theFacebookCheckUser
custom component. The previous auth-login functionality can be restored by overridingFacebookLoginController.getAutoLogin()
to returnfalse
. -
Added optional
title
attribute to theFacebookProfilePicture
custom component to specify tooltip text for the image. -
Added new
FacebookToolkitPage
, collecting the sample, user connections and inbox pages into a tab panel.
- Secured the Facebook application client secret and user access tokens by encrypting with a key stored as a custom setting.
- Minor fixes plus Authentication Providers support.
- There is a new custom object,
FacebookSession__c
, that associates the Facebook access token with a session cookie. This allows a Force.com Site to authenticate users via Facebook. - The toolkit uses the new native JSON implementation, mitigating issues in earlier versions where JSON was parsed in an Apex utility class, which severely limited the amount of data that could be parsed.