Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook ASP.NET Coding Problems (Trying to get the CodePlex examples to work)
    text
    copied!<p>I'm trying to get the following code to work:</p> <pre><code>Imports Microsoft.VisualBasic Imports System Imports System.Data Imports System.Configuration Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports System.Web.UI.HtmlControls Imports System.Collections.ObjectModel Imports Facebook Imports Facebook.WebControls Public Partial Class _Default Inherits CanvasIFrameBasePage Private Const FACEBOOK_API_KEY As String = "xxxxxxxxxx" Private Const FACEBOOK_SECRET As String = "yyyyyyyyyy" Shadows Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) MyBase.Api = FACEBOOK_API_KEY MyBase.Secret = FACEBOOK_SECRET MyBase.Page_Load(sender, e) If (Not IsPostBack) Then Try ' Use the FacebookService Component to populate Friends Dim u As Facebook.Entity.User = Me.FBService.GetUserInfo() Dim f As Collection(Of Facebook.Entity.User) = Me.FBService.GetFriends() Dim s As String = "" If f.Count &lt;&gt; 1 Then s = "s" End If lblHelloWorld.Text = "Hello " &amp; u.Name &amp; " you have " &amp; f.Count &amp; " friend" &amp; s &amp; "..." &amp; Me.FBService.SessionKey Me.FBService.SetFBML("Hello " &amp; u.Name &amp; " you have " &amp; f.Count &amp; " friend" &amp; s) Catch e1 As Exception 'Throw End Try End If End Sub End Class </code></pre> <p>But I keep getting the error:</p> <blockquote> <p>Requested value 'Networking' was not found.</p> </blockquote> <p>failing on this line:</p> <pre><code>Dim u As Facebook.Entity.User = Me.FBService.GetUserInfo() </code></pre> <p>Can anyone help please?</p> <p>It is called the Facebook Toolkit, located at <a href="http://facebooktoolkit.codeplex.com/" rel="nofollow noreferrer">http://facebooktoolkit.codeplex.com/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload