h1k3's Recent Forum Activity

  • space Ape,

    As proof of concept I purchased $1 worth of gems from my store a few days ago. So as you can see, it's definitely possible. :)

    <img src="https://dl.dropbox.com/u/77974757/creditstaken.PNG" border="0" />

  • space Ape

    Anytime :)

  • Try Construct 3

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

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

    I have uploaded my current FB store as well.

    FB Store

    No extra plugins or external calls(just don't click the buttons to avoid external problems). Just the core login that I use. I included a bit of text in the specials menu, so when you log in and go to the specials menu, it should show you the user name.

  • engberg,

    I uploaded a copy of my current base relics game file. You would need to change the pertinent info for your game but I know this capx is up to date as I'm currently using this exact build:

    Relics Of Yore Main Login

    As you will see I use the direct method for login and it works fluidly with the Facebook plugin here(you don't need to log in using the javascript popup way)

    This should get you up to speed if you want to do it this way.

  • That looks like my fb store on your page there. :) so I'm guessing you are trying to get fb credits to work? engberg, send me a private message, it's easier than checking to see if there are any thread updates. My guess is I have been uploading different versions to Dropbox without realizing it and you caught an unfinished one. I looked and it loads up fine on your site, requests permissions and throws up the access token.

  • Not a god lol. Just super patient. You do need a server with php, yes. As far as a plugin I only needed the browser plugin. Everything else needed to be php. I put my first attempt up in the tutorial section. It works but by no means is a finished product. Even now I need to finish the error handler section in the php code and tell my construct 2 project how to look for the error and handle accordingly. I would be willing to help you set it up for your project but it was a bit time consuming so I would probably ask for a few bucks in return to cover the time spent.

    The info you need is here:

    developers.facebook.com/docs/reference/dialogs/pay

    And here:

    developers.facebook.com/docs/payments/callback

    And here:

    developers.facebook.com/docs/payments/build

    And of course the construct2 manual browser section:

    scirra.com/manual/110/browser

    That's the info I used to implement it. It seems like a lot but it really isn't hard to do if you commit to learning one of those sections at a time. First setup credits for the app, then work on the callback section, the build the pay dialog, then commit to learning the browser plugin reference section, particularly browser.url browser,queryparam, and browser.hash.

  • Credits and sign up are currently the only thing I have complete on my game. I must say like they've been saying. It's a royal pain to integrate. I ended up going the direct URL route. So I have the browser redirect to the pay dialog then this redirects to a php script that updates the users 'gems' and also add a receipt in the MySQL database for troubleshooting reference. After this it redirects back to the program and shows them a receipt with their Facebook transaction number and my MySQL reference number. If there's a third party plugin out there I'd recommend using it over trying it yourself. If you want to see it in action send me a pm. I cam set you up as a credits tester on my game. lockegames.com/relicsofyore/

  • Your Ajax request is tagged justgetmessage but your on complete is looking for a tag of complete. The Ajax tag and the little quotes for complete, error, progress should all match. That would be my guess on how to fix it.

  • It is possible to make an offline app for Facebook using the desktop/native toggle in account settings. You need to handle the login differently though. More info:

    Facebook desktop login info

    I'm using this method of login for my app as well. It works seamlessly with javascript so once. You're logged in you can use the Facebook plugin actions/conditions/expressions. I would build you an example but I'm not quite sure how to capture the UR once the website changes to Facebook.

  • Well that wouldn't help :(

  • Does the .exe option actually compile the HTML into executable form? I probably answered it myself but figured I'd ask to make sure. If so then add some copyright protection. Have a registration section of the game. Have them fill in their receipt code and send it off to a database. Before each registration completes have it Ajax the database to see if the code already exists. That might help?

  • It just brings me to an app page? Not sure if there's a play button(I don't speak the native language). The page looks nice.

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
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies