I want to add comment on facebook post.. via facebook API
The function that adds the comment is
public function fill($json)
{
if(isset($json['data']))
{
$json = $json['data'];
}
foreach($json as $k => $v ) $this->{$k} = $v;
}
I am passing the data in json format as
{"data":{"id":"153870348034313_347443752010304","message":"test comment"}}
but the response is: Invalid argument supplied for foreach()
You didn’t decode the
JSON: