kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Please help about how to use GraphAPI_Mobile_1_5.swc #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi everyone,

I have issues about loading wall in facebook by using GraphAPI_Mobile_1_5.swc. 

1 . I tried to log in facebook :

FacebookMobile.init(MY_AP_ID,handleinit,null);

protected function handleinit(response:Object, fail:Object):void 
{

   if (response) {
   }else{
    FacebookMobile.login(handleLogin,stage,permissions,new     StageWebView);
   }

}
protected function handleLogin(response:Object, fail:Object):void 
{
   if(response){
     //load a apointed wall
     FacebookMobile.api("/mtvindia/posts",handleHomePageLoad);
  }else{
      trace("error");
  }

}

The issues are:

1. When i run debug i see fail :"Invalid OAuth access token." at function 
"handleinit"(i dont know how to set access token in function init) but the  
login form still open.

2. After i enter my facebook account in a login form ,i want to load apointed 
wall, but i just get nothing even it doesnt run function "handleLogin" ,so i 
cannot catch error...

Please help.

Thanks.
June Tran.

Original issue reported on code.google.com by lengocph...@gmail.com on 24 Mar 2011 at 1:48

Attachments:

GoogleCodeExporter commented 9 years ago
Try taking the null parameter out of your FacebookMobile.init call (it isn't 
required). The only reason why you'd want to pass an access token is if you 
already had one previously.

Original comment by rovertn...@gmail.com on 31 Mar 2011 at 3:18