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.
type = "Facebook"
clientid = "MyClientId"
secretkey = "MySecretKey"
result = "res"
redirecturi = "https://testsite.localtest.me/cf16/cfoauth/cfoauth_facebook.cfm">
<cfloginuser name="#res.other.username#" password="#res.access_token#" roles="user">
------------------------------- The response is-----------------
message Invalid OAuth access token.
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.
I just tried logging in to forums.adobe.com using my facebook login and got errors. They need to fix this. I upgrade to CF 2016 for this functionality.
BTW. I am getting the exact same info in my struct.
Does anyone look at these posts or reply to them?
Yes. I suppose this is not a common feature so no one immediately had anything to suggest. In the past I had stripped OAuth functionality out of this library and it has served me well: monkehTweets/com/coldfumonkeh at master · coldfumonkeh/monkehTweets · GitHub
Using a widget for this sort of scares me TBH as 3rd party implementations change all of the time. Having some modicum of control and not relying on a black box for security would be my preference.
Any update on this? I am getting the same error
I could not get it to work. Must try with the most recent version of CF Aether pre release version that I have downloaded recently and see how it performs. I have been able to do a ASP.net core2.0 site with social media logins & own db security login etc in possibly less than a couple of days.