h1k3's Recent Forum Activity

  • Hi everyone,

    As to the nature of what I'm asking please reply by message. Children visit this site and it's all about protecting them. :)

    With that being said I would like you to visit my app and swear it up. I'm coding in an inappropriate wording filter to my create a player page. I have quite a few words blocked and would like to know if I'm missing any. So please go and swear it up and private message me back with any unblocked words you find. Heres the app(you'll need to turn off secure browsing in facebook account, I don't have an ssl yet)

    My app link

    Thanks a bunch

    Lance

  • Can anyone figure out what I'm doing wrong here? I can get the auth token to display , then I try and split the ajax.lastdata to just get the token(not sure if it works. Then I submit another query to grab the third party id but I'm not getting any lastdata results. Here's my capx. Any help would be greatly appreciated.

    Facebook capx

    Thanks again,

    Lance

  • Ashley,

    The above comment was the correct way to get the accesstoken in case you want to add it in a future build. I just added an expression and variable for the above and it works fine. :) Now to figure out the third party field thing.

  • Would it be the following?

    varname = response["authResponse"]["accessToken"];

    and if so what exactly does the log line do?

  • I seem to have deleted my old facebook plugin from my desktop and I can't remember how I got the third_pary_id that facebook has. Says I need the access token which is where I'm currently having a brain meltdown. Here's where I think it goes in the current plugin:

    FB.getLoginStatus(function(response) {

                        if (response["authResponse"])

                        {

                             fbUserID = response["authResponse"]["userID"];

                             log("User ID = " + fbUserID);

                             onFBLogin();

                        }

                   });

    And here is what I think goes into it somehow:

    if (response.authResponse) {

                   $('#AccessToken').val(response.authResponse.accessToken);

                } else {

                   // do something...maybe show a login prompt

                }

    How do I add this in so I can make field calls to the graph api? I think I can mange the expression part I just need help plugging in the access token so I can assign i to a var.

    Any help would be greatly appreciated :)

    Lance

  • bump :)

  • Ashley,

    Every time you upgrade the Facebook plugin I have to go add in the user birthday, email, and game app I.d. Is it possible to add these expressions to the next build, please. Pretty please with cheese on top. :)

  • Thanks much Pode :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley,

    Ok, thanks. So I don't need to put the ? in the url?

  • Ashley

    Ajax question. How do I use the data field in the post ajax expression? I can't find any documentation on it. I'm guessing it's easier than adding all the parameters into the address field but I'm not sure how to fill it in. If I want to post to example.com//example.php with parameters foo=1 and bar=2 How do I fill it in using both the address bar and data field below?

  • Ashley, sweet so it sounds like that ought to work fine. I wanted to modulize my game. I figured it would cut the complexity out of the game as I'm trying to make and rpg. Guess the side benefit is that I can make multiple ajax calls. :)

  • Hi all,

    Quick question, if I have an app with an iframed app both with an ajax command will it screw each command up or will it just take longer to process?

    What I'm thinking of doing is splitting my game up into the main window or the control window and and iframe. When the user clicks on the map command it pulls up the map subapp. Or the chat subapp. But I'm curious how the ajax would handle it if I did that. the subapp would pull the userid from the iframe urlbar and start its own processing. The main app would be ajaxing mysql for vital stats while the map would be ajaxing the map info.

    Would I be getting errors with that or just slower response times?

    Thanks,

    Lance

h1k3's avatar

h1k3

Member since 1 Apr, 2012

Twitter
h1k3 has 3 followers

Connect with h1k3

Trophy Case

  • 12-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies