isValidOauthAccesstoken

Checks if the OAuth access token is still valid.

isValidOauthAccesstoken(token,type); → returns boolean

This function requires Adobe ColdFusion 11 and up.  Not supported on Lucee, etc.

Argument Reference

token string
Required

The access token to check.

type string
Required

The type of the OAuth server (facebook/google).

Examples
Sample code invoking the isValidOauthAccesstoken function

isValidOauthAccesstoken("any_token_value","facebook") 

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub