title: Instagram authentication scope param using coldfusion
body: <p>I have an Instagram application written in Coldfusion 8 that basically pulls in media by tags and then allows people to Like / vote on the photos which is all done via the Instagram API. The Liking part is causing me no end of grief though, as I can get the Authentication and Access_Token without a drama, however the Access_Token doesn't appear to have permission to Like by default. There is an optional param for the Authenticate call "scope" which allows you to pass the permissions allowed for the Access_Token but i cannot work out how to pass this via ColdFusion CFHTTP as a POST.</p>
  
  <p>Here is the preparation for the data to be sent over CFHTTP looping over all params as type="FormField". No matter how I try and present the scope options, either JSON format, string with spaces, string with "+" delimiters it seems to have no effect and the Like operation continues to fail due to permission errors. </p>
  
  <pre><code>&lt;cfscript&gt;
      var LOCAL = {};
      LOCAL['config'] = {};
      LOCAL['returnStruct'] = {};
  
      // prep packet required by the main call method
      // the following values are required for EVERY call
      LOCAL['config']['method'] = 'POST';
      LOCAL['config']['format'] = ARGUMENTS['outputType'];
      LOCAL['config']['url'] = VARIABLES.authURL;
  
      // variables required by this method
      LOCAL['config']['params'] = {};
      LOCAL['config']['params']['client_secret'] = ARGUMENTS.client_secret;
      LOCAL['config']['params']['grant_type'] = 'authorization_code';
      LOCAL['config']['params']['redirect_uri'] = ARGUMENTS.redirect_uri;
      LOCAL['config']['params']['code'] = ARGUMENTS.code;
      LOCAL['config']['params']['scope'] = 'likes comments relationships';
  
  &lt;/cfscript&gt;
  </code></pre>