This project is read-only.

Object reference not set to an instance of an object.

Sep 9, 2007 at 11:41 PM
http://apps.facebook.com/nscslfall/

You should be seeing a page with a log in form that goes off and ties a facebook account to a user account in our system. However, I keep getting this error. It was working fine (you can see the app on my profile fine and when a new user goes to add the app through http://www.facebook.com/apps/application.php?id=2423402089 then can access it fine). I think it started breaking after I changed the name of my app. Does the name entered in Facebook need to match the web.config exactly, e.g. spaces and all? Any other insight you can provide? This app is based off the SampleApp included in the download.

Thanks
Sep 10, 2007 at 4:32 AM
I fixed it by changing EnableExternalBrowsing to false. Not sure why that fixed it, but it did.


rimsystems wrote:
http://apps.facebook.com/nscslfall/

You should be seeing a page with a log in form that goes off and ties a facebook account to a user account in our system. However, I keep getting this error. It was working fine (you can see the app on my profile fine and when a new user goes to add the app through http://www.facebook.com/apps/application.php?id=2423402089 then can access it fine). I think it started breaking after I changed the name of my app. Does the name entered in Facebook need to match the web.config exactly, e.g. spaces and all? Any other insight you can provide? This app is based off the SampleApp included in the download.

Thanks

Sep 10, 2007 at 7:20 PM
EnableExternalBrowsing allows your app to continue running without redirecting to Facebook if there is no session info. Thats the intent - you want to run the page external to Facebook. In that context a FacebookSession isn't created. If you want to use the FacebookService, you'll need an infinite session (set it by handling SessionCreating, and set it on the event args). If you don't do that, there is no FacebookService instance - thats probably the likely reason for your error.

The first question to ask is whether you want the external browsing feature. If you do not want it, then leave it set to False (default). If you want it, you need to decide whether you want to access the Facebook service when browsing externally. If you do, then you need some session to work against...

Hope that helps.