FacebookConnectorOAuth2Adapter chokes on this with the following error:
OAuth access token could not be extracted from: access_token=AAAEsgRJaLK0BAGEXDqP5soEAjz0ztMv8tBx7u3El63LstYQymr4MwwI61BF7tzmOXf1VeNDCSdRDyaUOmtApW9AZBsoRzvyAZBDluVVAZDZD&expires=5184000 (java.lang.Exception)
Looking at the source code it appears that FacebookConnectorOAuth2Adapter expects a different callback, one that seems to be expected as JSON by the look at the regex patterns:
When FaceBook redirects to the Mule application at the end of the OAuth dance, it provides the access token and expiry time like as query parameters:
FacebookConnectorOAuth2Adapter chokes on this with the following error:
org.mule.module.facebook.adapters.FacebookConnectorOAuth2Adapter:316 (null)
Looking at the source code it appears that FacebookConnectorOAuth2Adapter expects a different callback, one that seems to be expected as JSON by the look at the regex patterns:
Changing the patterns to the following allows the adapter to successfully extract the access code and expiration: