AnthonyLins / facebook-actionscript-api

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

facebook actionscript-api - login result empty #396

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.

/////   CALL API/ME -> OBJECT
    Facebook.api("/me", api_getMeHandler);

    /////   GET INFORMATION
    function api_getMeHandler(result:Object,fail:Object):void
    {

        /////////////////////////////////////////////
        /////   SUCCESS
        if(result)
        {
            // LOAD INFORMATION
            fbFullName = result.name;
            fbFirstName = result.first_name;
            fbLastName = result.last_name;
            fbEmail = result.email;
            fbUid = fbSession.uid;

            output.text = fbSession.accessToken;
        }
        /////////////////////////////////////////////

        ////////////////////////////////////////////////
        /////   WENN NICHT EINGELOGGT / NICHT AKZEPTIERT
        else
        {
            /////////////////////////
            /////   ERROR
                        /////////////////////////
        }
        ////////////////////////////////////////////////
         }

}

Hello.

I hope anyone can help me.

I have produced a lot of facebook-apps with the facebook actionscript-api.
But now the login for facebook is wrong.... i cant get any information (result) 
or an access token...

Are they any changes?? Or a new version? I can´t find something!

Sorry for my bad english!

I still hope anyone can help me.

sincerely yours

Original issue reported on code.google.com by kr...@redtree.de on 14 Dec 2011 at 3:37

GoogleCodeExporter commented 8 years ago
Using the last API's version it works for me.

Original comment by marcocal...@gmail.com on 14 Dec 2011 at 4:38

GoogleCodeExporter commented 8 years ago
Hey!

Thanks for your comment!

But the latest version is GraphApi 1.8.1, right?
I´m using this version...

Perhaps can you show me yours login script?

sincerely yours

Original comment by kr...@redtree.de on 14 Dec 2011 at 4:51

GoogleCodeExporter commented 8 years ago
Need help please :(

Original comment by kr...@redtree.de on 16 Dec 2011 at 8:48

GoogleCodeExporter commented 8 years ago
check the way you embedded your swf

embedSWF("<YOUR_SWF_NAME>.swf", "flashContent", "100%", "100%", "10.0", 
flashvars, {name:"flashContent"});

{name:"flashContent"} it seems that this part is mandatory now

check also that you use "scope" instead of "perms"
Facebook.login(loginHandler, {scope: "read_stream,publish_stream"});

this worked for me

Original comment by DavidGa...@googlemail.com on 16 Dec 2011 at 2:44

GoogleCodeExporter commented 8 years ago
Hey!

Thank you very much for your comment!!!

Now i get a permission (scope) request!
But the last problem is that i dont become a accestoken with:

var fbSession:FacebookSession = Facebook.getSession();

So i get no info (username, last_name, first_name...) of the user...

Perhaps you have a solution for this too? :D

sincerely yours

Original comment by kr...@redtree.de on 16 Dec 2011 at 3:42

GoogleCodeExporter commented 8 years ago
Hi,

When i clear the browser history, cookies, etc.. the first time my app try to 
login, dont get any result or callback. when i refresh the browser everythings 
work fine, any help?

Here is my code

Facebook.init( Config.FACEBOOK_APP_ID, onInit );

        }

        protected function onInit( _result:Object, _fail:Object):void
        {                       
            if ( _result )
            {
                Debug.log( "facebook login success" );
                onLogin( );
            }
            else
            {
                Debug.log( "facebook login failed on init, try login" );

                var opts:Object = { scope: "publish_stream" };
                Facebook.login( onLoginEx, opts );
            }
        }

Original comment by key...@gmail.com on 16 Dec 2011 at 11:36