Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7544131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:36:23+00:00 2026-05-30T08:36:23+00:00

Iam developing a php facebook application that will display the facebook score of the

  • 0

Iam developing a php facebook application that will display the facebook score of the facebook user depends on the count of friends, videos, subscribires, uploaded photos, his/her status comments, liked pages and links.
As you know we haveto take this data from different api url so, i wrote a php code like this

 if($user){

   try {
        // Proceed knowing you have a logged in user who's authenticated.
        $user_profile = $facebook->api('/me');
        } catch (FacebookApiException $e) {
        echo "err0";
        $user = null;
      }

      try{
        $user_freinds = $facebook->api('/me/friends');
        } catch (FacebookApiException $e) {
        echo "err1";
        $user = null;
      }

        try{
            $user_subscribers = $facebook->api('/me/subscribers');
            } catch (FacebookApiException $e) {
        echo "err2";
        $user = null;
      }

        try{ 
        $user_links = $facebook->api('/me/links');
        } catch (FacebookApiException $e) {
        echo "err3";
        $user = null;
      }

        try{
            $user_foto = $facebook->api('/me/albums');
            } catch (FacebookApiException $e) {
        echo "err4";
        $user = null;
      }
        try{
        $user_likes = $facebook->api('/me/likes');
        } catch (FacebookApiException $e) {
        echo "err5";
        $user = null;
      }
        try{
        $user_videos = $facebook->api('/me/videos/uploaded');
        } catch (FacebookApiException $e) {
        echo "err6";
        $user = null;
      }
        try{
        $user_statues = $facebook->api('/me/statuses');
        } catch (FacebookApiException $e) {
        echo "err7";
        $user = null;
      }

   } 

but unfortunatley this made my application working more slow , there is any recommendation from you to make it run more quick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:36:24+00:00Added an answer on May 30, 2026 at 8:36 am

    You are calling the API many times in a row. This might take a while and you certainly are not able to speed up the calls. Here are a few tips for you:

    • Only request all infos on the first time a user enters your app and show a loading icon or something similar to let him know somethings going on
    • Cache the data you obtained from Facebook and use cached version instead of querying API on every page/visit
    • Use Batch Requests to “access significant amounts of data in a single go”
    • Optimize the Graph API data fetch using ETags
    • Use the Real Time Updates feature
    • And/Or: let the user decide which data should be requested
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing the application by Facebook PHP SDK. If a user uninstalls this
I am developing a Canvas application in Facebook in php. When the user allows
I am developing an PHP/Mysql application whereby if the user enter a certain value,
I am developing a facebook PHP application. I want to set my own terms
I am developing a Facebook Iframe application using PHP which opens an RSS feed
I am developing a Facebook page tab that will hold a competition. So firstly
I am developing an iPhone application that deals with Facebook. I am using the
I am developing a facebook application using php-sdk. i want to take some extended
I am developing an app that will use the profile picture of user. I
I am developing a PHP application that uses SQLite as database management system, MySQL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.