CFOAuth type="facebook" returns error
Hi,
I created a file called cfoauth_facebook.cfm with the following code.
The Facebook developer app with clientid, secret key etc has been setup correctly. But when the following code is executed, i only get a error in the response variable called res.
<cflogin>
<cfoauth
type = "Facebook"
clientid = "MyClientId"
secretkey = "MySecretKey"
result = "res"
scope="email"
redirecturi = "https://testsite.localtest.me/cf16/cfoauth/cfoauth_facebook.cfm">
<cfdump var="#res#">
<cftry>
<cfloginuser name="#res.other.username#" password="#res.access_token#" roles="user">
<cfcatch type="any">
</cfcatch>
</cftry>
</cflogin>
<cfabort>
------------------------------- The response is-----------------
struct
access_token n":"EAALbDZBHSZBNUBAIVhtNLCydBu1A3pYIoTpkofVKQHXTrZCM2E2gYLOpOknRM74ZAw5YZCmZBtyNHkZCXnfqV4XWga2zzWvwMKjET9ZAUKt7hXO0PmX0AM8Hz012oKV4aIXf2ZAfqVA2gYWMg3HeDRkImXJLEilF8v48Gr8cq6wGHJZB7I7WuK9RIO","token_type":"bearer",
gender undefined
id undefined
locale undefined
name undefined
other
struct
error
struct
code 190
fbtrace_id AdyVnuYjDD2
message Invalid OAuth access token.
type OAuthException
state undefined
There is absolutely no valid reference for the CFOAuth implementation in ColdFusion 2016. Can you please share some sample?. I hope it is not a new bug in CF2016 due to Facebook changing its API version etc.
