[Facebook for Websites] - Update 1-29-2016

0 favourites
From the Asset Store
Toxigine fleet
$5.60 USD
30% off
29 top down spaceships, 6 color variations and extra lighteffects
  • ive also noticed that its really confuseing on how you get the fb users frends app user list i see its requesting from scores this dosnt make since since what if the users friends have opened the app but dont have a score and i am just trying to get the app users friends to display there photos

  • btw your scoring is all messed up

  • you need to change your FriendsPlaying function to something like this

         Acts.prototype.FriendsPlaying = function (n)

         {

              FB.api('/' + Init_App_ID + '/scores', 'GET', {}, function(response) {

              

                   var arr = response["data"];

                   

                   if (!arr)

                   {

                        console.error("Hi-scores request failed: " + response);

                        return;

                   }

                   

                   arr.sort(function(a, b) {

                        // descending order

                        return b["score"] - a["score"];

                   });

                   

                   var i = 0, len = Math.min(arr.length, n);

                   fbfriendlength = arr.length;

                   for ( ; i < len; i++)

                   {

                    current_friend_score = arr["score"];

                     current_friend_name = arr["user"]["name"];

                    current_friend_id   = arr["user"]["id"];

                     

                        fbGameFriendsScore = arr["score"];

                        fbGameFriendsName = arr["user"]["name"];

                        fbGameFriendsID = arr["user"]["id"];

                        fbRank = i + 1;

                        fbRuntime.trigger(cr.plugins_.FBComplete.prototype.cnds.OnHiscore, fbInst);

                   }

                   //fbRuntime.trigger(cr.plugins_.FBComplete.prototype.cnds.OnHiscore, fbInst);

                   if (!response || response.error) {

                    fbGameFriendsScore = "failed";

                        fbGameFriendsName = "failed";

                        fbGameFriendsID = "failed";

                        fbRank = "failed";

                  } else {

                    fbGameFriendsScore = "failed";

                        fbGameFriendsName = "failed";

                        fbGameFriendsID = "failed";

                        fbRank = "failed";

                  }

              });

              

         };

  • your

    GetCurrentGameFriend function is pointless

  • It's possible to get the profile picture of friends?

  • Guampa, yes it is, but I'm busy at the moment(trying to buy a couple of restaurants......OMG paperwork) So someone else eldods above if I'm not mistaken has asked if I would mind if they continue on development. So I'm sure that functionality will be built before too long. In the mean time send me a private message and maybe I can find a way in a couple hours for you to pull the user pic. I'm guessing it won't be too difficult with the current plugin.

  • hey

    is there something new about "Upload Photo by URL"?

    i would love using this...

  • taltal, nope nothing new. You need to have a picture URL for it to work. So use php to upload your screenshot then call the upload with the temporary file name URL.

  • , how can i add php to c2?

  • , hello Sir

    would you give me an example for inviting friends?

    sorry for my bad english.

  • im a bit confused , i come to a hostgator page not found here ??

    do u have a how to on facebook complete ?

    why do u use facebook original plugin on face appstore ??

    Dan    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Awesome stuff, thanks! I needed the "accessToken" value, I'm puzzled why it still isn't in the official plugin yet...

  • I needed the "accessToken" value, I'm puzzled why it still isn't in the official plugin yet...

    Did it work for you? Haven't been able to make it work yet <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Using the login via popup ? popup gets blocked isnt it?

    Trying to use login user into your app, but seems like redirect_uri is required. And if used it takes to another url.

    Is there a workaround?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • taltal, nope nothing new. You need to have a picture URL for it to work. So use php to upload your screenshot then call the upload with the temporary file name URL.

    I've use the plugin to make my games hosted on clay.io, but I have another error messages such as :

    API Error Code: 191

    API Error Description: The specified URL is not owned by the application

    Error Message: Invalid redirect_uri: Given URL is not allowed by the Application configuration.

    Can u help me, please.

    P.S : i'm using clay.io to host my game.

Jump to:
Active Users
There are 3 visitors browsing this topic (0 users and 3 guests)