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 8462651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:13:31+00:00 2026-06-10T14:13:31+00:00

As I am new to facebook games is there any third party API for

  • 0

As I am new to facebook games is there any third party API for flash games.
Actually I used mochi highscore API but I don’t want to login through mochi. Direct submission through facebook id. Let me know any third party API or suggest any tutorials.

regards,
chandu

  • 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-06-10T14:13:33+00:00Added an answer on June 10, 2026 at 2:13 pm

    It is fairly easy to post a score to the highscores in Facebook, check out the following code. All you need is a userID which you get from facebook when you log the user in and the value that you use in your game as a score like experience, points or whatever.

    // post experience as score
    $experience = 1000; // get this from your database 
    $contents = file_get_contents("https://graph.facebook.com/oauth/access_token?client_id=".FACEBOOK_APP_ID."&client_secret=".FACEBOOK_SECRET_KEY."&grant_type=client_credentials");
    
    $exploded = explode("=",$contents);
    
    $accessToken = $exploded[1];
    $score_URL = 'https://graph.facebook.com/' . $userFacebookID . '/scores';
    $score_result = https_post($score_URL,
      'score=' . $experience
      . '&access_token=' . $accessToken
    );
    

    https_post function looks like this :

    function https_post($uri, $postdata) 
    {
        $ch = curl_init($uri);
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
        $result = curl_exec($ch);
        curl_close($ch);
    
        return $result;
    }
    

    You can put this in your index.php after you get the facebook user ID and their score will be sent every time they come to the game.

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to configure the new Facebook Javascript API with my website, but
how to develop new facebook application (login , add photos ) using the api
I'm new to facebook development and coding in general. I know there are currently
Hi i am new in using facebook api i want to get the friends
StackOverflow'ers, I realize the new @mentions is a very new feature to facebook, but
Howdy. I've been tasked with making a Facebook game, but I'm new to Facebook
I'm doing some work with the new Facebook js library, http://github.com/facebook/connect-js . There's one
I'm totally new to PHP and MySQL but I'm implementing the Facebook PHP SDK
I've been attempting to implement the new Facebook open graph features with my flash
I have the following code: $facebook = new Facebook(array( 'appId' => ID, 'secret' =>

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.