Yeah that is what I thought, but I am at a loss to see where the data is in
ColdFusion. Here is the full PHP code in question.

 

if ($method == 'GET' && $_GET['hub_mode'] == 'subscribe' &&       

    $_GET['hub_verify_token'] == VERIFY_TOKEN) {

  echo $_GET['hub_challenge'];

} else if ($method == 'POST') {                                   

  $updates = json_decode(file_get_contents("php://input"), true); 

  // Replace with your own code here to handle the update 

  // Note the request must complete within 15 seconds.

  // Otherwise Facebook server will consider it a timeout and 

  // resend the push notification again.

  error_log('updates = ' . print_r($updates, true));              

}

 

Now I am assuming that this is either in the header request or somewhere
that I am not familiar with, as the url and form are empty, I am assuming
the header for some reason.

 

So would GetHttpRequestData() be what I am looking for in ColdFusion?

 

 

Regards,

Andrew Scott

 <http://www.andyscott.id.au/> http://www.andyscott.id.au/

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf
Of MrBuzzy
Sent: Monday, 15 August 2011 6:18 PM
To: [email protected]
Cc: <[email protected]>
Subject: Re: [cfaussie] Anyone who knows PHP well, how is this done in CF?

 

I don't know PHP but I'll have a whack :)

 

Anyone know what "php://input" is?

 

It looks like you're reading a file, URL or similar (?).

 

So ...

 

<cffile action='read' file='c:\whatever.txt' variable='fileContent'>

 

<cfset stSomething = DeserializeJSON(fileContent)> 

 

Jah?



-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to