<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Facebook ActionScript API HOWTO</title>
	<atom:link href="http://pbking.com/blog/?feed=rss2&#038;p=21" rel="self" type="application/rss+xml" />
	<link>http://pbking.com/blog/?p=21</link>
	<description>Thoughts of a Flash Geek</description>
	<lastBuildDate>Sat, 14 Aug 2010 11:48:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: vijay</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=2#comment-22398</link>
		<dc:creator>vijay</dc:creator>
		<pubDate>Fri, 26 Mar 2010 14:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-22398</guid>
		<description>I have issue regarding facebook actionscript api.
 i am not able to get response from facebook.com at the time of login.


i want to allow publish permission after login.

can anybody have any idea?</description>
		<content:encoded><![CDATA[<p>I have issue regarding facebook actionscript api.<br />
 i am not able to get response from facebook.com at the time of login.</p>
<p>i want to allow publish permission after login.</p>
<p>can anybody have any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gujarathi</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=2#comment-21917</link>
		<dc:creator>gujarathi</dc:creator>
		<pubDate>Wed, 10 Mar 2010 05:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-21917</guid>
		<description>Hi,
    I am facing a problem in following code. I want my application and login screen should open in same browser window. Using this code It always opens in new window. Will anybody please tell me how to achieve it?
Again the code in if/else block in the function Init() never gets executed. It directly goes to session.login() and opens new window.

Please help me.

public function Init():void
{
    session = new FacebookSessionUtil(&quot;MY_API_KEY&quot;,&quot;MY_SECRET_KEY&quot;,loaderInfo);
    session.addEventListener(FacebookEvent.CONNECT, handle_Connect);
    fbook=session.facebook;
    trace(&quot;initial login&quot;);
    if(loaderInfo.parameters.fb_sig_added == true)
    {
        session.verifySession();
    } 
    else if(loaderInfo.parameters.fb_sig_added == false)
    {
        navigateToURL(new URLRequest(&quot;http://www.facebook.com/login.php?api_key=&quot; +loaderInfo.parameters.fb_sig_api_key), &quot;_top&quot;);
    }
    else{  
          session.login();
          onConfirmLogin();
        } 
}

public function handle_Connect(event:FacebookEvent):void
{
    trace(&quot;handle_Connect&quot;);
        var call1:FacebookCall = fbook.post(new GetInfo([fbook.uid],[GetInfoFieldValues.ALL_VALUES]));
        call1.addEventListener(FacebookEvent.COMPLETE,handle_getinfoComplete);
}
public function onConfirmLogin():void
{
    trace(&quot;onConfirmLogin&quot;);
    session.validateLogin();
}
public function handle_getinfoComplete(event:FacebookEvent):void
{
    trace(&quot;handle_getinfoComplete&quot;);
    user=(event.data as GetInfoData).userCollection.getItemAt(0) as FacebookUser;
    if( user == null )
    {
        trace(&quot;handle_getinfoComplete,onConfirmLogin&quot;);
        onConfirmLogin();
    }
    else
    {
        trace(&quot;hi&quot;,user.first_name+&quot; &quot;+user.last_name);
        
        StartGame();
    }
    
}</description>
		<content:encoded><![CDATA[<p>Hi,<br />
    I am facing a problem in following code. I want my application and login screen should open in same browser window. Using this code It always opens in new window. Will anybody please tell me how to achieve it?<br />
Again the code in if/else block in the function Init() never gets executed. It directly goes to session.login() and opens new window.</p>
<p>Please help me.</p>
<p>public function Init():void<br />
{<br />
    session = new FacebookSessionUtil(&#8220;MY_API_KEY&#8221;,&#8221;MY_SECRET_KEY&#8221;,loaderInfo);<br />
    session.addEventListener(FacebookEvent.CONNECT, handle_Connect);<br />
    fbook=session.facebook;<br />
    trace(&#8220;initial login&#8221;);<br />
    if(loaderInfo.parameters.fb_sig_added == true)<br />
    {<br />
        session.verifySession();<br />
    }<br />
    else if(loaderInfo.parameters.fb_sig_added == false)<br />
    {<br />
        navigateToURL(new URLRequest(&#8220;http://www.facebook.com/login.php?api_key=&#8221; +loaderInfo.parameters.fb_sig_api_key), &#8220;_top&#8221;);<br />
    }<br />
    else{<br />
          session.login();<br />
          onConfirmLogin();<br />
        }<br />
}</p>
<p>public function handle_Connect(event:FacebookEvent):void<br />
{<br />
    trace(&#8220;handle_Connect&#8221;);<br />
        var call1:FacebookCall = fbook.post(new GetInfo([fbook.uid],[GetInfoFieldValues.ALL_VALUES]));<br />
        call1.addEventListener(FacebookEvent.COMPLETE,handle_getinfoComplete);<br />
}<br />
public function onConfirmLogin():void<br />
{<br />
    trace(&#8220;onConfirmLogin&#8221;);<br />
    session.validateLogin();<br />
}<br />
public function handle_getinfoComplete(event:FacebookEvent):void<br />
{<br />
    trace(&#8220;handle_getinfoComplete&#8221;);<br />
    user=(event.data as GetInfoData).userCollection.getItemAt(0) as FacebookUser;<br />
    if( user == null )<br />
    {<br />
        trace(&#8220;handle_getinfoComplete,onConfirmLogin&#8221;);<br />
        onConfirmLogin();<br />
    }<br />
    else<br />
    {<br />
        trace(&#8220;hi&#8221;,user.first_name+&#8221; &#8220;+user.last_name);</p>
<p>        StartGame();<br />
    }</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mob sіkaner</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=2#comment-20379</link>
		<dc:creator>Mob sіkaner</dc:creator>
		<pubDate>Sat, 09 Jan 2010 19:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-20379</guid>
		<description>Появилась новая интересная фича, называется &lt;a href=http://dnevnik.bigmir.net/article/945091&lt;/a&gt; с помощью камеры мобильного &lt;b&gt;просветить одежду&lt;/b&gt;! 
Читал о подобных разработках ранее. 
 
Сегодня нашол интересное приложение для телефона. &lt;a href=&quot;http://dnevnik.bigmir.net/article/945091&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&gt;&lt;/a&gt; загружаешь на аппарат с камерой, наводишь на девушку всинтетической одежды и получаете девушку без одежды. 
 
Революционная программа для  мобильного телефона. 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945111&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&lt;/a&gt; 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945111&quot; rel=&quot;nofollow&quot;&gt;просветить одежду&lt;/a&gt; 
Посмотри что они скрывают под своей синтетической одеждой.!!! 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945113&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&lt;/a&gt; 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945113&quot; rel=&quot;nofollow&quot;&gt;просветить одежду&lt;/a&gt; 
то доступно всем, нужно иметь только телефон с камерой.!!! 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945112&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&lt;/a&gt; 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945112&quot; rel=&quot;nofollow&quot;&gt;просветить одежду&lt;/a&gt; 
 
 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945117&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&lt;/a&gt; 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945117&quot; rel=&quot;nofollow&quot;&gt;просветить одежду&lt;/url 
 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945112&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&lt;&lt;/a&gt; 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945112&quot; rel=&quot;nofollow&quot;&gt;просветить одежду&lt;/a&gt; 
А вот еще у них как бонус идет мобильный рентген, это тоже клевая штука. Показывает весь скелет человека))) 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945113&quot; rel=&quot;nofollow&quot;&gt;мобильный сканер&lt;/a&gt; 
&lt;a href=&quot;http://dnevnik.bigmir.net/article/945113&quot; rel=&quot;nofollow&quot;&gt;просветить одежду&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Появилась новая интересная фича, называется &lt;a href=http://dnevnik.bigmir.net/article/945091 с помощью камеры мобильного <b>просветить одежду</b>!<br />
Читал о подобных разработках ранее. </p>
<p>Сегодня нашол интересное приложение для телефона. <a href="http://dnevnik.bigmir.net/article/945091" rel="nofollow">мобильный сканер&gt;</a> загружаешь на аппарат с камерой, наводишь на девушку всинтетической одежды и получаете девушку без одежды. </p>
<p>Революционная программа для  мобильного телефона.<br />
<a href="http://dnevnik.bigmir.net/article/945111" rel="nofollow">мобильный сканер</a><br />
<a href="http://dnevnik.bigmir.net/article/945111" rel="nofollow">просветить одежду</a><br />
Посмотри что они скрывают под своей синтетической одеждой.!!!<br />
<a href="http://dnevnik.bigmir.net/article/945113" rel="nofollow">мобильный сканер</a><br />
<a href="http://dnevnik.bigmir.net/article/945113" rel="nofollow">просветить одежду</a><br />
то доступно всем, нужно иметь только телефон с камерой.!!!<br />
<a href="http://dnevnik.bigmir.net/article/945112" rel="nofollow">мобильный сканер</a><br />
<a href="http://dnevnik.bigmir.net/article/945112" rel="nofollow">просветить одежду</a> </p>
<p><a href="http://dnevnik.bigmir.net/article/945117" rel="nofollow">мобильный сканер</a><br />
<a href="http://dnevnik.bigmir.net/article/945117" rel="nofollow">просветить одежду&lt;/url </p>
<p></a><a href="http://dnevnik.bigmir.net/article/945112" rel="nofollow">мобильный сканер&lt;</a><br />
<a href="http://dnevnik.bigmir.net/article/945112" rel="nofollow">просветить одежду</a><br />
А вот еще у них как бонус идет мобильный рентген, это тоже клевая штука. Показывает весь скелет человека)))<br />
<a href="http://dnevnik.bigmir.net/article/945113" rel="nofollow">мобильный сканер</a><br />
<a href="http://dnevnik.bigmir.net/article/945113" rel="nofollow">просветить одежду</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murugesan</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-20164</link>
		<dc:creator>murugesan</dc:creator>
		<pubDate>Wed, 30 Dec 2009 15:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-20164</guid>
		<description>I want to get all friends user id , and album in flex . can any one help me?</description>
		<content:encoded><![CDATA[<p>I want to get all friends user id , and album in flex . can any one help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murugesan munusamy</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-20113</link>
		<dc:creator>murugesan munusamy</dc:creator>
		<pubDate>Mon, 28 Dec 2009 08:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-20113</guid>
		<description>Hi All,

I am not able to download the source file of the face_book_API_example_project.zip.
Please let me know the problem or where can i get this source.

Not Found

The requested URL /projects/facebook-api/example/Facebook_API_Example_Project.zip was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I am not able to download the source file of the face_book_API_example_project.zip.<br />
Please let me know the problem or where can i get this source.</p>
<p>Not Found</p>
<p>The requested URL /projects/facebook-api/example/Facebook_API_Example_Project.zip was not found on this server.</p>
<p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicbervehorce</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-19856</link>
		<dc:creator>nicbervehorce</dc:creator>
		<pubDate>Fri, 18 Dec 2009 10:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-19856</guid>
		<description>Hi guys,
My PC worked not correctly, too much mistakes and buggs. Please, help me to fix buggs on my computer. 
My operation system is Win Vista.
With best regards,
nicbervehorce</description>
		<content:encoded><![CDATA[<p>Hi guys,<br />
My PC worked not correctly, too much mistakes and buggs. Please, help me to fix buggs on my computer.<br />
My operation system is Win Vista.<br />
With best regards,<br />
nicbervehorce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philipp</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-17391</link>
		<dc:creator>Philipp</dc:creator>
		<pubDate>Sat, 17 Oct 2009 02:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-17391</guid>
		<description>Hi, I don&#039;t know if you are still looking at this blog post. In case you are: I found your tutorial very helpful and I have one more thing that I need a bit of help with. My Flash Facebook app is working great and now I just want it to talk to my server in order to keep track of the user&#039;s state in my DB, for example when the user gets a new digital item, I want to record that for posterity in the DB. 

In order to make sure that people do not mess with the system by sending all sorts of weird calls to my server, I want to share the user&#039;s authenticated Facebook session with my server and then use it and my API_KEY to determine the correct user using a server-side Facebook API. 

My problem is that I don&#039;t know how to share the session data with the server when I am in Flash. When I made HTML/javascript based Facebook apps, the session data was passed seamlessly to the server when I POSTed to the server using AJAX calls. I would like to get this sort of behavior with Flash. I use the following code to make my requests:

public static function SendData(url:String, variables:URLVariables, callBack){
           
                var request:URLRequest = new URLRequest(url);
                request.method = URLRequestMethod.POST;
                request.data = variables;
                var loader:URLLoader = new URLLoader();
                loader.dataFormat = URLLoaderDataFormat.VARIABLES;
                loader.addEventListener(Event.COMPLETE, callBack);
                loader.load(request); 
}

Can I pass something in? Any help would be much appreciated.

Thanks!!!</description>
		<content:encoded><![CDATA[<p>Hi, I don&#8217;t know if you are still looking at this blog post. In case you are: I found your tutorial very helpful and I have one more thing that I need a bit of help with. My Flash Facebook app is working great and now I just want it to talk to my server in order to keep track of the user&#8217;s state in my DB, for example when the user gets a new digital item, I want to record that for posterity in the DB. </p>
<p>In order to make sure that people do not mess with the system by sending all sorts of weird calls to my server, I want to share the user&#8217;s authenticated Facebook session with my server and then use it and my API_KEY to determine the correct user using a server-side Facebook API. </p>
<p>My problem is that I don&#8217;t know how to share the session data with the server when I am in Flash. When I made HTML/javascript based Facebook apps, the session data was passed seamlessly to the server when I POSTed to the server using AJAX calls. I would like to get this sort of behavior with Flash. I use the following code to make my requests:</p>
<p>public static function SendData(url:String, variables:URLVariables, callBack){</p>
<p>                var request:URLRequest = new URLRequest(url);<br />
                request.method = URLRequestMethod.POST;<br />
                request.data = variables;<br />
                var loader:URLLoader = new URLLoader();<br />
                loader.dataFormat = URLLoaderDataFormat.VARIABLES;<br />
                loader.addEventListener(Event.COMPLETE, callBack);<br />
                loader.load(request);<br />
}</p>
<p>Can I pass something in? Any help would be much appreciated.</p>
<p>Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: createdream</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-12701</link>
		<dc:creator>createdream</dc:creator>
		<pubDate>Mon, 08 Jun 2009 09:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-12701</guid>
		<description>Is it possible to have source code of this application because I want to make an application facebook with Flash and I don&#039;t arrive to have source like this.

Please help !

Thanks</description>
		<content:encoded><![CDATA[<p>Is it possible to have source code of this application because I want to make an application facebook with Flash and I don&#8217;t arrive to have source like this.</p>
<p>Please help !</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis L.</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-11443</link>
		<dc:creator>Luis L.</dc:creator>
		<pubDate>Tue, 05 May 2009 16:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-11443</guid>
		<description>Hi, I really need to get out of this problem, because I don’t understand…..I’m using the method “startWidgetSession” but using the session secret passed when i use the fbml:swf tag. But then when I get connected my app returns me the error 104 “Incorrect signature”?? Why??
And when I use the secret key parameter in the startWidgetSession function, everything goes nice!…and theres no problem….</description>
		<content:encoded><![CDATA[<p>Hi, I really need to get out of this problem, because I don’t understand…..I’m using the method “startWidgetSession” but using the session secret passed when i use the fbml:swf tag. But then when I get connected my app returns me the error 104 “Incorrect signature”?? Why??<br />
And when I use the secret key parameter in the startWidgetSession function, everything goes nice!…and theres no problem….</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruisdittips</title>
		<link>http://pbking.com/blog/?p=21&#038;cpage=1#comment-9254</link>
		<dc:creator>ruisdittips</dc:creator>
		<pubDate>Fri, 20 Mar 2009 13:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://pbking.com/blog/?p=21#comment-9254</guid>
		<description>very  intresting</description>
		<content:encoded><![CDATA[<p>very  intresting</p>
]]></content:encoded>
	</item>
</channel>
</rss>
