Solved

how can i show facebook updates inside a flash website

Posted on 2010-08-24
6
361 Views
Last Modified: 2012-05-10
is it possible to show facebook satus updates in a web-site that is completely flash? any suggestions on how to do it?
0
Comment
Question by:hallandoats
  • 4
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
level9wizard earned 500 total points
ID: 33521415
You would need to first interface with some serverside language (such as PHP), where the server-side language would do all the API calls to FaceBook, and then have your SWF communicate with that PHP script using dynamic var or have php write to mxml.

Using a simple dynamic flash var approach you could do:
onClipEvent (load) {
  //assuming you have a personal web server and PHP installed locally
  loadVariables("http://localhost/faceBook_API.php", this, "GET");
}
0
 

Author Comment

by:hallandoats
ID: 33537631
can you please explain a little more, I'm kinda new to this
0
 
LVL 11

Assisted Solution

by:level9wizard
level9wizard earned 500 total points
ID: 33541901
hallandoats>>can you please explain a little more, I'm kinda new to this

Since you are new to this, providing code might not be the best place to start, so I'll try and break it down in simple language if I can.

"Out of the box", Flash is a client-side language/application - meaning once it is downloaded (through a web browser for example) the code executes locally (no interaction back to the server), much the way core javascript works.

In order to communicate back to the server (such as to Facebook's API) you will need to connect your flash application to a server side language (such as PHP or ASP).

I think you should do a little Google-ing, there's so much documentation on this and some reading will really help you. For example, here's an article I quickly found that looks promising. It takes a number from Flash, sends it to PHP to get modified, then gets sent back to Flash. Once you learn how to do this, you can easily have that PHP file make a call to Facebook's API (inside PHP):

http://www.actionscript.org/resources/articles/141/1/Introduction-to-Flash-and-PHP/Page1.html
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:hallandoats
ID: 33543791
Thanks for the fast reply, I tried googling but wasn't sure what the to search. Obviously searching flash/facebook status update crap didn't do me any good when I don't know what I'm doing...heh..I will read on what u posted this weekend. Thanks again :)
0
 
LVL 11

Assisted Solution

by:level9wizard
level9wizard earned 500 total points
ID: 33558276
hallandoats>>Obviously searching flash/facebook status update crap didn't do me any good when I don't know what I'm doing

Yea, you'll want to first learn how to get flash talking to a server-side language (like PHP), then you can move to the next level of having that server side language talk to Facebook's API. Try to search for things like:

- Flash and PHP
- Server side Flash
- flash talk to php

(you can substitute PHP for any other server-side language such as ASP).
0
 
LVL 11

Assisted Solution

by:level9wizard
level9wizard earned 500 total points
ID: 33558330
You will also want to take a look at this:
http://code.google.com/p/facebook-actionscript-api/

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question