Faulty assumptions waste time

Iv spent the last 3 hours looking into the Facebook.NET api, which is a headache. I would have expected alot better code from someone who is very high up in the .NET community. The issue is, when visiting this Facebook application, if you don't have the application added, this redirects you to add the application. I know this is wrong, because I read alot of the Facebook documentation, and it says you dont have to do this. After tracking down the code through alot of painful debugging (Facebook don’t make things easy), I came across this line:

image

Facebook.Web.FacebookFbmlSession.cs line 61

That piece of code, buried deep in the Facebook.Net framework makes a faulty assumption - you can only view this application if you have added it. I have proven you don’t need to do this, the only requirement is to have your self logged into the Facebook application.

Implications?

Basically, the way the Facebook.net API was written, if you want a user to interact with your application, they will HAVE to add the application - this is a pain in the arse for what im trying todo, since I only want certain people to have the application added (and stuff added to their profile) - for simple things like registering a vote, you shouldn't need to have the application added - only their uid (user id), and we can do the rest.

Way forward?

Well im taking out that line, since it makes a wrong assumption. I'm not sure if it was an oversight on the developers side, or wishful thinking.

Leave a comment

Please be polite and on topic. Your e-mail will never be published.

Please add 3 and 5 and type the answer here: