Solved

how can i show facebook updates inside a flash website

Posted on 2010-08-24
6
346 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Tag input html 4 38
Paper tearing animation 6 42
Detecting robots? 5 34
Cannot scroll down on html page 2 26
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now