Facebook C# SDK OAuth Exception “ClientID required”?

Finally I managed to solve the problem, but most likely this is a bug in the SDK.

Finally I managed to solve the problem, but most likely this is a bug in the SDK. The cause The problem is that the FacebookApplication. Current is empty, as it does not get populated with data set in the FacebookWebContext ctor.

This leads to the problem of the access token: in FacebookSession. AccessToken on line 119 FacebookOAuthClient is instantiated with FacebookApplication. Current, that of course is practically empty.So FacebookOAuthClient is throwing the exception as it doesn't get the application settings.

The solution The workaround is to simply explicitly set the current FacebookApplication together with the instantiation of FacebookWebContext: var app = new DefaultFacebookApplication(); app. AppId = "appId"; app. AppSecret = "secret"; var fb = new FacebookWebContext(app); FacebookApplication.

SetApplication(app); // Note this is the new line.

Also opened an issue: facebooksdk.codeplex. Com/workitem/5902 – Piedone Sep 12 '11 at 10:58 Prabir Shrestha already olled out a quick fix with the latest check-in: facebooksdk.codeplex. Com/SourceControl/changeset/changes/… – Piedone Sep 12 '11 at 15:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions