-1

I get facebook friend list using graph API. i got answer json array. that array value store in one variable Looks like

   $json_output=($result['summary']['total_count']);
   echo  "$json_output";

this code belongs to facebook.php File .. this variable how to call in my index.html file my html code friend list counter looks like code

  <div class="follow">
  <div class="col-md-6 two">
  <span>36</span>
  <p>Fiends Countrer</p>
  </div>
  </div>

How to call php echo variable in this html code ? thanks in advance? i have already not Working ?

arasu
  • 35
  • 1
  • 6

1 Answers1

0

You have to change the index.html to a php file (index.php), then you can output the variable using the echo

<?php echo $json_output; ?>