h1k3's Forum Posts

  • Ashley,

    The Facebook plugin is lacking a lot of features. I add what I can to the plugin as I learn javascript but in the meantime I'm using the Ajax/redirects to accomplish things like payments and currently working on achievements.

  • Ashley, is thereafter delete score?

  • It's still a long ways off before I need it however facebook issues some Ajax commands as delete? For example, you have a user requesting deletion of their score. A delete request is sent to the graph API with the user token and the score is deleted. Ashley, is it possible to add the delete request at some point?

    developers.facebook.com/docs/scores

    Explains:

    Delete scores for a user

    You can delete the score for a user for your app by issuing an HTTP DELETE request to /USER_ID/scores with a user or app access_token as long as the user has granted the publish_actions permission for your app.

  • Ashley

    Mostly for Facebook integration. For example I want to start implementing Facebook achievements which require a redirect.

  • Ashley

    Happy holidays first off.

    With the official browser plugin, would it be possible for you to add a open pop up similar to open new tab action? I know it's basically the same thing, just adding the window size to the initialization so it should be a relatively quick add. Could this be on the agenda for an early 2013 release please. :)

  • Look up cron jobs on stack overflow. I think that's probably what you're looking for. It's basically a php other other script that is run on a server at specific times. So the basic layout would be create a script to update the reward then create a cron job on your server to run it once every 24 hours. You can search stackoverflow for info on cron jobs. Hope that helps :)

  • AquaBarbus

    My screen resize example seems to work with the zoom feature:

    My screen resize example using Podes Iframes

  • You know what would be a nice addition is the html5 security settings. I don't currently need them but I can see how they might be useful to others using the plugin.

    Sandbox attribute

  • If someone could tell me what I'm doing wrong with the title_frame object size in the main layout I would also greatly appreciate it. It should stay static to the size it is in the layout(there should always be room to the right) I'm calculating something wrong.

  • So I figured out how to resize an app no matter what the screen size is but it has a really bad stuttering effect when you drag the window open/shut. I'm hoping someone might know a way to smooth it out a bit.

    Any help would be appreciated, heres the capx:

    Resize app based on browser size

    Thanks again,

    Lance

    UPDATE 12/19/2012:

    I figured out the problem with item placement and stretching. Also included a bit so when the window drops below the minimum(original design) size it brings up a second layout asking them to change the size. Once the size is at or above minimum it once again switches back to the main window. Feel free to use it everyone to help you with allowing more then 1 screen size.

    Note:

    You need Pode's HTML Iframe plugin for my example to load.

    Link to Pode's Iframe plugin.

  • I don't see it in the manual but I know it's a simple js call. Check the plugin forum to see if someone added this, if not you can always use the calljs plugin to implement it yourself using the info on this page:

    w3schools.com/jsref/jsref_obj_date.asp

  • I understand cocoons big flaw is currently the lack of Ajax calls? You can use a browser redirect to implement the majority of Facebook integration. I had previously set up my game that way so I know it works great. Although its a real hassle.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I believe so, not fluent with cocoons. I heard Ajax is a no on that though so graph API calls won't work. Go to developers.facebook.com, they have mobile specific directions for integrating Facebook sdk.

  • procrastinator,

    My ultimate goal is to add in app payments through the plugin and php. I'm currently redirecting windows to accept payments and it's kind of unwieldy to do. Feel free to ask for any additions. I'll do my best, but my current goal is again, the in app payments through javascript.

  • Facebook 2.0 version 1.1

    Facebook 2.0 Version 1.1

    1)Provides a way to login by redirecting the url in a canvas app 'apps.facebook.com' This allows you to catch new install deny requests as Facebook expects. So if a user decides not to install you can redirect them to another layout/layer pointing them to other games or giving further information on why you request permissions....... This also is a way to login without forcing the user to accept popups.

    2)New expression named status

    Check after plugin initializes. Will equal "connected" if user has logged in and accepted permissions/installed your game(redirect to the title screen knowing user has granted permissions). Will equal "not_authorized" if user has logged into facebook but not authorized your app. (trigger once- Use included Login redirect action to request permissions)

    3)Expressions for:

       User email address,

       User Birthday,

       User Gender,

       User locale,

       User Access token,

    Facebook 2.0 Version 1.1