In flash application , write this below code to pass a message
var lconn:LocalConnection = new LocalConnection;
lconn.send(ldrInfo.parameters.fb_local_connection, "callFBJS", "testalert", [msg]);
as well as ,we create a script on a file which loads swf
function testalert(msgarr)
{
publishUserStory(msgarr);
}
function publishUserStory(msg)
{ var message = msg;
var attachment = {'name': message,
'media': [{'type':'image','src':'http:','href':'http:'}]�};
Facebook.streamPublish('',attachment); }
Note:- If we using Iframe ,then replace
Facebook.streamPublish('',attachment);
with
FB.Connect.streamPublish('',attachment);
.
|
My Blog Title
|