Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Getting Error 100 - Invalid Parameter from facebook.auth.getSession
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andrew Laffoon  
View profile  
 More options Aug 22 2007, 10:53 pm
From: Andrew Laffoon <andrew.laff...@gmail.com>
Date: Thu, 23 Aug 2007 02:53:05 -0000
Local: Wed, Aug 22 2007 10:53 pm
Subject: Getting Error 100 - Invalid Parameter from facebook.auth.getSession
Hi All,

I downloaded the sample ManualFacebookTest.mxml, and it does not work
for me.  I tried using my own api_key and secret, and I even tried the
supplied sample api_key and secret.  Still, it does not work.  I am
able to get the correct auth_token from the response, but it still
fails.  Does anybody have any idea how to fix this?

Thanks,

Andrew
at Mixbook dot com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Laffoon  
View profile  
 More options Aug 23 2007, 12:02 pm
From: Andrew Laffoon <andrew.laff...@gmail.com>
Date: Thu, 23 Aug 2007 16:02:33 -0000
Local: Thurs, Aug 23 2007 12:02 pm
Subject: Re: Getting Error 100 - Invalid Parameter from facebook.auth.getSession
Guys,

This error was a result of my auth_token methodology.  I was using the
auth_token from the Auth.createToken() method, but I should have been
using the auth_token that gets posted to my callback URL after the
login screen.

It is not a bug.

Andrew

On Aug 22, 7:53 pm, Andrew Laffoon <andrew.laff...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wunderpants  
View profile  
 More options Oct 9 2007, 10:55 am
From: wunderpants <mike.mu...@gmail.com>
Date: Tue, 09 Oct 2007 07:55:28 -0700
Local: Tues, Oct 9 2007 10:55 am
Subject: Re: Getting Error 100 - Invalid Parameter from facebook.auth.getSession
Any solutions to this? I keep getting this error too and I'm copying/
pasting my APIKey and Secret directly into the sample code.

On Aug 23, 12:02 pm, Andrew Laffoon <andrew.laff...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ric Moore  
View profile  
 More options Oct 9 2007, 11:45 am
From: "Ric Moore" <bedroom...@gmail.com>
Date: Tue, 9 Oct 2007 16:45:38 +0100
Local: Tues, Oct 9 2007 11:45 am
Subject: Re: Getting Error 100 - Invalid Parameter from facebook.auth.getSession
Here's some help. I've written a few classes to log you in
automatically. It shows how to authenticate a session and u can roll
from there.
You will need the API installed and call FacebookApp as your main
class (I use Flex 2 SDK and FDT to do my coding).

Run the main class. The flash window will launch. This will then
automatically take you to facebook in your browser. If you are not
logged it Facebook will prompt u to do so. After logging in it'll jump
you back to you callback url as specified in your Facebook Application
setting in Facebook.

You might require the swf you have made to be running on a web server. i.e.
http://localhost/facebookApp/index.html

Make sure u set your api_key and secret in the FacebookConfig class.

Regards,

Ric Moore

-------------------------------------------------------------------------

package com.bedroomlab.facebookApp {

        import flash.display.Sprite;
        import com.bedroomlab.facebook.GenericFacebookAuthentication;
        import com.bedroomlab.facebook.inviteFriends.InviteFriends;
        import flash.events.Event;
        import com.adobe.webapis.facebook.FacebookService;
        import flash.display.LoaderInfo;

        public class FacebookApp extends Sprite  {
                private var facebookSession:GenericFacebookAuthentication
                private var facebookService:FacebookService;

                public function FacebookApp() {
                        trace("MakeOverApp.MakeOverApp()");
                        var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
                        trace("paramObj.auth_token: "+paramObj.auth_token);
                        facebookSession = new GenericFacebookAuthentication(
                                                                                FacebookAppConfig.API_KEY,
                                                                                FacebookAppConfig.SECRET_KEY,
                                                                                paramObj.auth_token);
                        facebookSession.addEventListener(Event.COMPLETE, init);
                }

                private function init(e:Event):void {
                        facebookService = facebookSession.facebookService;

/* TYPE YOUR OWN CODE IN FROM HERE */
                }
        }

}

-------------------------------------------------------------------------

package com.bedroomlab.facebook {

        import flash.net.navigateToURL;
        import flash.net.URLRequest;
        import flash.events.EventDispatcher;
        import com.adobe.webapis.facebook.FacebookService;
        import com.adobe.webapis.facebook.events.FacebookResultEvent;
        import com.adobe.webapis.facebook.AuthSession;
        import flash.events.Event;

        public class GenericFacebookAuthentication extends EventDispatcher {

                private var _facebookService:FacebookService;

                public function GenericFacebookAuthentication(api_key:String,
secret_key:String, auth_token:String=null) {
                        // create service
                        _facebookService = new FacebookService(api_key);
                        _facebookService.secret = secret_key;

                        // check to see if the user has logged in (this must be passed in
from a _root var
                        if (auth_token != null) {
                                // user has logged in, get the session key
                                getSession(auth_token);
                        }
                        else {
                                // user not logged in, fetch a token for
                                _facebookService.addEventListener(FacebookResultEvent.AUTH_CREATE_TOKEN,
redirectToLogin);
                                facebookService.auth.createToken();
                        }
                }

                private function redirectToLogin(e:FacebookResultEvent):void {
                        _facebookService.auth_token = String(e.data);
                        navigateToURL(new
URLRequest(_facebookService.getLoginURL(_facebookService.auth_token)));
                }

                private function getSession(session_key:String):void {
                        _facebookService.addEventListener(FacebookResultEvent.AUTH_GET_SESSION,
finishAuthenticating);
                        _facebookService.auth.getSession(session_key);
                }

                private function finishAuthenticating(e:FacebookResultEvent):void {
                        var authSession:AuthSession = AuthSession(e.data);
                        _facebookService.session_key = authSession.session_key;
                        dispatchComplete();
                }

                public function get facebookService():FacebookService {
                        return _facebookService;
                }

                private function dispatchComplete():void {
                        dispatchEvent(new Event(Event.COMPLETE));
                }
        }

}

-------------------------------------------------------------------------

package com.bedroomlab.facebookApp {

        public class FacebookAppConfig {
                public static var API_KEY:String = "XXX";
                public static var SECRET_KEY:String = "XXX";

        }

}

On 09/10/2007, wunderpants <mike.mu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sami  
View profile  
 More options Oct 22 2007, 4:18 pm
From: sami <sami....@gmail.com>
Date: Mon, 22 Oct 2007 20:18:17 -0000
Local: Mon, Oct 22 2007 4:18 pm
Subject: Re: Getting Error 100 - Invalid Parameter from facebook.auth.getSession
I am having the same problem

I *am* using the auth_token passed to me from the facebook login url -
how do you pass it in to the facebook object? Like this?

fb = facebook.Facebook('abcdefghik', 'xxxabcdefghik', 'zzzabcdefghik')

(all values assumed of course) - Does any argument need to be a name/
value pair?

Thanks

Sami

On Oct 9, 7:55 pm, wunderpants <mike.mu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sami  
View profile  
 More options Oct 22 2007, 4:19 pm
From: sami <sami....@gmail.com>
Date: Mon, 22 Oct 2007 20:19:08 -0000
Local: Mon, Oct 22 2007 4:19 pm
Subject: Re: Getting Error 100 - Invalid Parameter from facebook.auth.getSession
sorry, I should have specified, I am using pyfacebook

On Oct 23, 1:18 am, sami <sami....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »