He visto un montón de muestras donde la clave API está codificado dentro, a menos que usted está construyendo un escritorio que no hay necesidad de hacer esto. Facebook es la clave API y la clave de sesión en la URL iframe. Su aplicación debe recuperar las claves de la url, esta makre el código más portable.
Variables Url:
fb_sig_api_key
fb_sig_session_key
fb_sig_ss
ACTUALIZACIÓN - 9/10/10
Con los nuevos cambios para enfrentar App libro, asegúrese de que usted vaya a la configuración avanzada y comprobar los parámetros de sesión de lona.
En mi experiencia he encontrado que el uso de la biblioteca cliente JavaScript para Facebook y la API de interfaz externa de flash es mucho más sensible que la biblioteca de Adobe Facebook AS3. A veces, el evento no dispara. La única vez que usted debe usar la biblioteca adobe es cuando usted tiene que subir fotos, y lo hace mediante el intercambio de los datos de sesión que utiliza el cliente de JavaScript.
Ejemplo de compartir una sesión:
fb= new Facebook();
var session:WebSession;
session=new WebSession(Application.application.parameters.fbsigapikey,
Application.application.parameters.fbsigss,
Application.application.parameters.fbsigsessionkey);
session.addEventListener(FacebookEvent.CONNECT, function():void{
var bytes:ByteArray = jpegencoder.encode(lastpumpyourselfbm.bitmapData);
var call:UploadPhoto = new UploadPhoto(bytes);
fb.post(call);
});
fb.startSession(session);
session.verifySession();
Note : We were tasked with creating a site that would pull in content from a&g blog, Flickr, and YouTube allowing seamless cross linking between the different sections and do it all 4 weeks. This meant writing a middle layer communications api that would query the wordpress database(standard feed from wordpress were not sufficient), Flickr and YouTube that would return simple formatted XML to be used by Flash. Content Association was done by using common naming scheme for tags accross all frameworks. This design choice gave us a decentralized way of managing content.
Allen & Gerritsen
As you view the video below remember that videos are streamed from YouTube and Images are streamed from Flickr
Note : We were tasked with creating a site that would pull in content from a&g blog, Flickr, and YouTube allowing seamless cross linking between the different sections and do it all 4 weeks. This meant writing a middle layer communications api that would query the wordpress database(standard feed from wordpress were not sufficient), Flickr and YouTube that would return simple formatted XML to be used by Flash. Content Association was done by using common naming scheme for tags accross all frameworks. This design choice gave us a decentralized way of managing content.
Allen & Gerritsen
As you view the video below remember that videos are streamed from YouTube and Images are streamed from Flickr