The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 2 of 2

Thread: Facebook canvas app, using both the PHP and JavaScript SDK

  1. #1

    Facebook canvas app, using both the PHP and JavaScript SDK

    Hello! I'm currently making a Facebook canvas app where users can fight their friends by sending a list of moves and once both players have submitted, they can watch the fight (it's like a more complicated rock, paper, scissors).

    I have everything working so far on the php side:
    authenticating the user
    loading variables between php and flash
    mysql database entries and selecting

    All was looking well and the game is fully functional except for one thing, I can't integrate the javascript sdk into it because I lose the ability for flash to communicate (using POST) to the php file. I realize using the javascript sdk makes the app behave more client side instead of server side, and that's the wall I'm running in to.

    I need the javascript code to send app updates (e.g. "Your friend has challenged you!") and friend requests to the app, which I don't believe you can do through the php code (or it's being depreciated in October so I wanted to be ahead on that).

    Any help on using both php and javascript while maintaining the ability for flash to communicated with my server is greatly appreciated! Thanks!

  2. #2
    Update: I probably need to use ajax so that flash communicates with javascript on the page, which then sends the request to php which returns to javascript and back to flash...

    Any examples you guys/gals may have would be appreciated, until then off to google I go

    For anyone with this problem this: is a good resource with just javascript, no flash object, but it's a great overview!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012