Facebook Game Application Flash CS6 AS3.0 - facebook

I'm planning on creative a Facebook app for a college project but I'm unsure as to how to go about specifics.
I have been working within flash (animation, general AS3.0 coding) for close to three years so I'm pretty comfortable working within this program. I have looked up a lot of information about using the Facebook SDK for ActionScript etc. but I'm really not sure what I'm doing in relation to this.
Is it possible to create an entire game within Flash CS6 and then add any necessary PHP additions (for posting to timelines etc.) afterwards?
Sorry for not having a clue but any help would be extremely welcome!

You can get some examples from
http://code.google.com/p/facebook-actionscript-api/
Thanks
Dhiraj

If you just want to post data from the game to Facebook - for example, a simple "I scored [score] points!" message on the user's wall - then you should not need to write any code outside of your Flash game, other than making sure that the page it's on is set up correctly (with Facebook tags and JavaScript, etc.).
I found this post helpful in showing the basics of using the AS3 API to log in and pull data from Facebook into Flash: http://permadi.com/blog/2011/02/using-facebook-graph-api-in-flash-as3-1-5/.

Related

Launching Facebook Instant Game from web

I am looking for a way to launch Facebook Instant Games in the native mobile app from an external site. I have managed to launch the game in the desktop site simply by extracting from the built-in play button href's (e.g. https://www.facebook.com/instantgames/play/id_here). However I am having difficulty finding a way to launch the Messenger games from anywhere external.
Not sure if this is possible and far from my best Stack Overflow question, but the docs are helpless, so any help would be greatly appreciated, and also not to be crucified for the question as I don't have much more information to provide unfortunately.
As long as you have a page associated with your Instant Game you can use an m.me deeplink (e.g. m.me/everwinggame?game=everwing).
The format of these links is m.me/{page id}?game={game namespace}.
There's more information here, but appreciate the feedback on our documentation. Thanks!

How to share "Starling" game in a facebook feed

I want to share a part of the game that I made on facebook like it can be done in Angrybirds.
but the problem is that the game was written in starling and
I am getting this error "application is not correctly embeded"
and my question are
can I use starling without hardware acceleration same how?
if same know of a way to tell Facebook to embed the swf in direct mode?
Here it end Angrybirds example just past it on facebook
https://angrybirds-facebook.appspot.com/embed?levelId=9-1&levelName=Surf+and+Turf-1&score=56530
I came across this issue on a project earlier in the year and unfortunately there's no current way to use Stage3D inside the Facebook timeline ('feed gaming' as opposed to a standard Facebook app), because the embedding that Facebook applies uses wmode:"opaque", and there's no option to change that through the FBML meta properties. More details here on what you can specify: https://developers.facebook.com/docs/games/feed-gaming/
In the case of Angry Birds, they use a stripped down version of their app (with just one level, I believe) for the timeline feed version, which doesn't use Starling or Stage3D.
And to answer your other question, you can use Starling with a software rendered fallback (where compatible graphics hardware isn't available), but it unfortunately will still go through Stage3D (as described here: http://www.bytearray.org/?p=3443), and if used without wmode:"direct" it will still fail with the error 3702: Context3D not available.
The workaround, then, if you need it to run in the Facebook timeline, is to either rebuild your application to use conventional display objects, and no Stage3D content, or to make a cut-back second version, which doesn't use Stage3D but links out to your fullblown version, inside a conventional Facebook app. Sorry for the bad news; I feel your pain.
can I use starling without hardware acceleration same how?
No, it's a Stage-3D based engine so it will use hardware acceleration
if same know of a way to tell Facebook to embed the swf in direct mode?
You should change your HTML wrapper file (where your flash is embeded), add a new param "wmode = direct" an it will work perfectly.
The place where you should change your wmode param depends on what IDE you work with. With FlashDevelop or Flash Builder you just add
wmode: "direct"
to the params array

Send iPhone Users A Daily Quote

I have a daily quote that I post on my wordpress blog each and every day. I want to make an iOS app for my subscribers so that they can get the daily quote on their mobile devices and also be able to save their favorites, etc.
Originally, my plan was to use the RSS feed of the wordpress blog. However, I don't really like the way this would work. I would rather be able to send the quote directly from my computer (or iPhone) and have it be "pushed" to my users. Right now my blog has over 450 posts. I want my users to have access to all past posts, and it seems like a slow way of going to have my RSS feed set to show that many posts.
I don't have any experience in this sort of thing. All my developer experience is in game dev and I could really use some help figuring this out. Any suggestions would be appreciated.
There's a sample project for getting and reading and RSS feed. That would be a good place to start. Once you understand the basics of iOS programming and design, then you could considering using the APNS (Apple Push Notification Services). That feature (fairly complex) allows you to push your quote on screen. But if you quote is too long, that might not make any sense.
But your first step is to get your feet wet and get up to speed with iOS development. Give yourself a few weeks for that at least.

Connecting to the internet with flash iOS development

I was reading that certain API's are not available when making iPhone apps with flash, such as accessing the camera. Is it possible to still get information from the web and display it in the app using the flash method? The overall plan is to have it pull data from an SQL database using XML, and I was just wondering if that was possible still with flash. Thank you very much for your answers.
I heard the same thing about it not being able to connect to the internet, among many other restraints, when developing apps through Flash. It held me back for the first 3 months after Apples 'accept' of the platform.
But now after I've had some time to test things out on my own, I found out that the following is possible (so far):
Getting xml and pictures from the web (so why not SQL)
saving cookies
Saving pictures to the cameraroll.
getting geoLocation data (didn't get the google maps api to work YET tho)
And these are only the features i have tried so far (in development-phase, not submittet to Apple)
I'm surprised that no one else has answered your question by now.
Hope this helps gets you spirit up for developing apps with flash :)

Display Gamecenter leaderboard on website

Is there currently a way to read GameCenter leaderboard data from the Web?
I'm looking for a read only way to display a leaderboard on a companion website. I do not need to post scores or otherwise manipulate the leaderboard off the device.
I have a feeling the answer is going to be no and I'll need to use OpenFeint's because they have a JSON API available.
I have been trying to find an answer to this as well.
I came across an interesting article Game Center via Openfeint
that discusses using Openfeint and Gamecenter together by using the new Openfeint SDK
Then using their JSON API publish results to the supporting website. I cant see any other way around it and feel this is what we need to do. Not the nicest, but you do end up with a game that sits in both communities.
Hope it helps.
If you are the author of the app and your web host provides PHP and MySQL you could roll your own server-side script to process score submissions and another script to generate a dynamic HTML page to display the scores in any way you like. Many web hosts offer PHP and MySQL for free.
There is no ready made solution that I am aware of.
To be honest I don't think there is much to gain from doing this, since players already have access to the leaderboard from within the game, and visitors to a website might not care about high-scores of a game they haven't played. Thats just my opinion.