php - HTML does not load till graph api calls are executed


Can a FB canvas app not load any HTML until the Graph API calls are executed?

I have a canvas app whose html does not load until all the graph API calls are executed. I have calls to 3 graph API functions:user_statuses,user_likes anduser_about_me.


  1. (landing page which leads the user to the app and carries forward the parameters)
  2. Log into Facebook.
  3. You should get a word cloud based on your statuses.
  4. I have a loading gif which asks users to wait till the data is calculated. (it is right before all the other HTML and graph API calls)

I cannot see the loading gif until the Graph API calls are executed.

/** html tag starts here **/

/***GET PARAMS***/

$app_data = json_decode($_GET['app_data']);
if(!empty($var1)){ ?>
   <div><img src="my_img_url"/></div>

/** html ends here **/

People are also looking for solutions to the problem: mysql - Counter increasing in refresh and in reload in php


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.