h1k3's Recent Forum Activity

  • Nice,

    Tokens expire after a predefined time app. 2 hours. You should try adding the trade in token system as an action next.

  • I saw the thread. I had done the same a while back then noticed the developers asked us not to adjust the official plugins so I had them take it down. I had put all the basics in there for reference but could never seem to get the access token without putting the app secret in. How did you get the token if you don't mind my asking? I can't download the file from my iPad to see. :(

  • I'm finishing up my Facebook credits store for my app and hit a small stumbling block. I have my store iframed in my game page which works great. The problem is the credits system is supposed to redirect the browser window. However in the iframe window it forces an additional login with Facebook before directing the user to buy the product. So I need to open a brand new window to avoid this. So is it possible when using the browser plugin open new window to set the window size ie pop up? Or I can opt to close the main app before opening the brand new window which will eventually redirect back to the game. Can the browser plugin close be called without forcing a user to grant permission to close? I haven't tried so I honestly have no idea and its my only stumbling block at the moment. I can successfully accept payment and it updates the MySQL correctly. I just need to handle the browser redirect problem. So any ideas on which way would be best. My flow right now is this

    User clicks buy 1 gem.

    Browser redirects to Facebook buy

    After purchase Facebook redirects to MySQL update script.

    After update redirects to screen showing user Oder information for their reference,

    On click this window will close if I can set to pop up or redirect to game site if I can close the main game app before opening the second Facebook credits window(2 windows option, no pop up)

    Just need some ideas on the last step, any help would be greatly appreciated.

    Lance

  • nice catch :)

  • I've never tried using the data field so not sure. I've always placed everything right in the url tag ie "http://www.website.com/?variable1=one&variable2=two" So not sure bud, have you tried it this way?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • They are known for throttling content at Facebook and you look like you have it set to post a new highscore every time the score passes facebook saved score. Maybe set the score to update every milestone(ie every 100 score points. I don't think you need to include the facebook ready in that condition statement either, if they have logged in then the sdk is assumed ready. Make sure your app is categorized as a game as well on the game app page. In order for highscore and achievements to work properly the app must be set to game. Anyways, those are just a couple thoughts, not sure if they solve the problem but I tried. :) PS don't forget to change your app secret now.

  • Just opened it up, first make sure to request a new app secret on your facebook developer app page soon. You left it in your capx which could allow for less decent people to mes with your app.

  • guido

    Photo instructions using graph api

    It looks like its doable using the ajax plugin once you have a user access token and the correct permissions.

  • Yes it's possible but not easy. Why do you want to import images into your app?

  • There is a condition in the ajax plugin called on complete. Instead of waiting a second use this condition.

    on complete -> fetch data. If ajax takes more than a second you wont get the info your way.

  • Heres how I deal with the url info:

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

  • I'm on my iPad at the moment but I'm assuming one of those links is a capx? If so when I turn my pc on ill take a peek. Facebook is always changing so your best bet is to sign up for their developer blog email updates. For example early in December they are changing some stuff around, the again in January. It's about once a month I believe. First change that affected me was how they handle credits. In December imvrequired to show credit pricing in the users set local currency. My code already takes that into account but if it hadn't I'd have credits disabled shortly after the date. They have a pretty lengthy terms of use and privacy rules. So check those out too. For the most part when it comes to the games not a whole lot changes and rules are pretty easy to understand. Fb games are kind of my passion at the moment so feel free to pm me to chat up Facebook topics.

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