Actionscript 3 :: Integrate Facebook Api In Its Code?
Jun 3, 2011I have used this code in my index.php to get user facebook first name last name and userid[code]...
i want to know how i can use fname and last name in my actionscript
I have used this code in my index.php to get user facebook first name last name and userid[code]...
i want to know how i can use fname and last name in my actionscript
I have previous experience with AS3, but not so much in web development. now I want to install a game in facebook, but since im very uninformed,i'm having a bad time chossing the best option. I have three alternatives to integrate my flash app in facebook.Adobe actionscript API: Until now, I tried it and worked for me to log in , get friends, and that kinda of basic. Has a ton of problems and bugs, and i decided to switch.
FMBS seems to be the best option, according to most people feedback in forums, but it's going to be deprecated and i don't want to invert effort and time in an option that is going to be dipossed.What do i have left ?, iframe ? Javascript ?
I'm trying to integrate a Flash Professional/AS3 game into Facebook. The swf is hosted on a secure (https) server. The swf has to connect to a SmartFoxPro socket server on another domain.I'm using the Facebook Actionscript API to interface with Facebook. (Should I use PHP, instead? I read an article that recommends using PHP, because the Actionsrcipt API may not be kept up to date.) When I fire up my app, I get a "Security Information" pop-up box saying that the page contains both secure and nonsecure items. I click "yes" to all the display of the nonsecure items.
Then, I get an "XD Proxy blah-blah-blah" popup. This pop-up goes away, and then my app logs in to my SmartFox server.So... What is this "XD Proxy" window? I think it looks unprofessional, and users may think there's an error with the app. Also, can I block or hide the "Security Information" pop-up? Why don't I see this in other FB apps?
How can we integrate facebook social plugin in flash?
View 0 RepliesI'm currently building an application using the Adobe Facebook API and I've run into an issue where for the login method the Facebook login popup displays but when doing a Facebook share/post the popup is blocked.
This code works fine and displays me a Facebook login popup without question (Firefox):
var permissions:Array = ['publish_stream'];
Facebook.login( onFacebookLogin, { perms:permissions.join(',') } );
However, the following code running in the same application throws up a popup blocker (again Firefox):
Facebook.ui( "stream.publish", "popup", params );
Does anyone know of a work around this issue to make the share popup come up just like the login popup?
I am trying to embed a facebook video on my website but it gives "Video Unavailable. this video has either has been removed from facebook or is not visible".video is public to everyone, is not deleted and I can watch it on facebook via other browsers that I am not logged in. I tried both below embed codes, neither is worked.
<object width="500" height="300">
<param name="movie" value="http://www.facebook.com/v/VIDEO_ID"></param>
<param name="allowFullScreen" value="true"></param>[code].....
The goal of my project if to authetificate users who use my flash application through Flash. I sucees it with Flex folowing this tutorial [URL] But I could not do it with flash! When I download [URL]list which swc shoudl I use: mobile/desktop/web ? Then I tried with GraphAPI Examples_1_5.zip and got API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application. ANy sample to authetificate an user in FLASH (not flex) avaible ?
View 1 RepliesI'm trying to determine the practical difference between using the com.facebook.session.WebSession and com.facebook.session.JSSession. The documentation ([URL]) has more around WebSession - but the example I have which is closest to what solution I'm trying to implement uses JSSession and it looks like I could avoid all of the JavaScript pass-through & ExternalInterface calls I'm making. It appears that the benefit of using this new ActionScript Facebook API is to avoid having to make all of the Facebook calls via JavaScript.
View 5 RepliesI have literally spent HOURS trying to solve this mystery... but simply can't seem to get hold of it.
I am using the same code lines (literally!) as the example here (official adobe tutorial) and I get different result.
[Code]...
Everything works fine, i.e. everything till it is time to fire the loggedin event. I get asked to log in and all permissions are asked correctly. After I log myself in to facebook, the loggedin event doesn't fire. Is there any way of solving this problem??
I am using a Flex widget for my facebook application. How can I get the current user's facebook ID?
View 1 Repliesi need to connect to have a button on my website that connects to facebook (if not already logged in) and posts to the users wall.I've only done this from within an iFrame - do i still need AppId etc etc?
View 1 RepliesI have a facebook application where the user choose 4 of his friends and then it creates a video (swf) with the pictures of your friends in it (loaded via xml). So I need to share this video on the user timeline. Everything works fine but the video is not embedded in the post on his timeline, there is only a post with the link to the page in it.The weird thing is, if I post the url directly on my timeline, the video is embedded, but not if the same link is posted via the application.here is my code called by the share button in js :
function postToFeed() {
var obj = {
method: 'feed',[code].........
I've recently used the 'Static HTML' application to add autoplaying flash content to a Facebook Page.Nothing too fancy, no sound, and only a few secs long. Now, Facebook say:-"Apps on Pages must not host media that plays automatically without a user's interaction."
What do they mean by 'Media' exactly? I can understand a ban on autoplaying audio content but does the ban extend to something as harmless as an animated GIF? Or more to the point, does an autoplaying .swf file fall under this?
Lastly, what course of action would Facebook take if I did violate this rule? Would they issue a warning (giving me an opportunity to remove the 'offending' item) or would they just shut down my page without any consultation?
I can't find in the Adobe Facebook API how to log the user out of Facebook. The FacebookSessionUtil (and the related sessions and Facebook classes) all have a .logout() function, which will invalidate the user's current *session* within the swf, but it doesn't log the user out of Facebook.
What am I missing here? How are you supposed to log the user out of Facebook with this API? Since it's part of the TOS for Facebook Connect apps, you'd think this would be available in the API somewhere.
After I upload a photo on a desktop facebook application i need to store it's post id in a database. From the facebook ActionScript SDK documentation:pi() methodpublic static function api(method:String, callback:Function, params:* = null, requestMethod:String = GET):voidMakes a new request on the Facebook Graph API.Parameters [...]callback:Function — Method that will be called when this request is complete The handler must have the signature of callback(result:Object, fail:Object); On success, result will be the object data returned from Facebook. On fail, result will be null and fail will contain information about the error.
So I implemented my callback function as follows:
protected function handleUploadComplete(response:Object, fail:Object):void{
status = (response) ? 'Success' : 'Error';
[code].....
I'm new to Flash and I just noticed that the custom font that I used for my menus is not being displayed on machines that do not have this font, only a default font is shown there.I tried to include the font in the library (Library -> New Font), but it still doesn't workDo I have to start from scratch with the imported font? Or was I supposed to checksomething/add some settings (like "Export for ActionScript" or "Export for runtime sharing"?).
View 10 RepliesIs there a library for SSH in ActionScript 3? If not, how to have Flash integrate with SSH.I have a Flash prototype programmed out, and my client wants to see some minimal integration with an SSH server. What is needed is basically: connectauthenticate send a few basic commands I can't just have these commands be sent out blindly, as I need Flash to be aware of the SSH feedback and let the user know if the authentication, commands, etc were successful.
View 1 Repliestutorials (e.g. ) show how to integrate Flash and MySQL. Also Flash can manipulate and sent this back to serverTo integrate flash and MySQL one can do the following:(1) MySQL -> php -> Flash (e.g. What is the most robust way to set up (1) and (2) to work at scale - as quickly as possible? What are the server loading implications? Is there any other way to do (1) and (2) more effectively?
View 2 RepliesI have to connect my flash application with php+mysql .how can i integrate my php code into flash..?
View 1 RepliesI have a XML file which I am trying to integrate a search feature. I have attached a zipped folder of my working example.In this XML file is a collection of modules: 1.1, 1.2, 1.3 etc...
Each module is broken down further:
1.1has: 1.1.1, 1.1.2, 1.1.3
1.2has: 1.2.1, 1.2.2, 1.2.3, 1.2.4 etc...
I have a search feature that is searching the XML, then outputting the content if found.Now this is working OK for a specific module listed above, for example, in my zipped example, I can get it to search 1.1.1, 1.1.2, 1.1.3 etc...
What I can�t seem to get working is how to search all of the modules sections: eg: 1.1: 1.1.1-1.1.x, 1.2: 1.2.1 � 1.2.x and so on depending on how much content is sorted in my XML.
I've got a multi-element character animated in its own timeline, within its own symbol --- but it's not showing up in the main timeline, or on the stage when I exit the symbol and go back to the Main movie view. How do I get the symbol's animation to integrate into the main scene?
View 2 RepliesI'm building a portfolio website for my design work. The whole website is Flash based. I have a Flash banner that I would like to add to the website but I can't seem to place it on stage. Is there a way to stream the banner? If I do that, how do I place it's location on stage?
View 13 Replieshow different is actionscript 3 compared to actionscript 2 i mean to integrate a datebase using mySQL if so how?
View 1 RepliesHere's what I am trying to do: I am working on a flash site and I want it to start out with a bang so I've made a intro clip in After Effects in 1920x1080. I want this intro to start by you clicking a button. So when you first see the screen you are going to see the paused video (In my case the earth from outer space) and a big red button which you can click to start this video. Since I am working in 1080p I won't be able to use FLV so we are talking about the embeded video function. My problem: I want the video to stop or go to the next frame after playback it only loops as of now.
View 7 RepliesI want to make a Flash or Flex front end for my R code, I want to call an R function from a website (using Flash) what is the best way to go about connecting Flash and R?
View 2 RepliesIs there any way to integrate an flash mp3 player into a html site where an reload wouldn't stop music playing or make it start from beginning. I wouldn't want to use ajax for the rest of the site cause it's not SEO friendly, and also pop-ups are not a good solution cause every browser nowdays blocks them.
View 4 RepliesI'm having trouble conceptually understanding how to integrate flex components -- forms, charts, data grids, etc. -- with an existing web app. There are certain aspects of the web application where I believe it makes more sense to use flex -- however, I DO NOT want to replace the (html/js/java) web-app with a pure flex based app.For example, currently the web app displays user data using html tables and java based charts, I'd like to re-implement this "data display" using flex. Would I have to create a flex "application" for the "data display"?
View 1 RepliesHow can you integrate R and Flex (e.g. web server using rapache)?
View 1 RepliesI want to integrate flash in my iPhone application so is it possible to integrate?
View 4 RepliesTrying to update AsMock mocking framework to v.1.0, and use it with AsUnit 4. But in runtime get a VerifyError (1153, inacceptible override) at the line with [RunWith("asmock.integration.asunit.ASMockRunner")] metatag in the test case class. I use FlashDevelop as an IDE.
View 2 Replies