我正在嘗試使用Facebook SDK for .NET進行學習。特別適用於Windows Phone 8.1通用應用程序(不是Silverlight)。爲此,我構建了可在此處找到的'LoginButton Control'示例:http://facebooksdk.net/docs/windows/controls/login-ui-control/ 我已成功登錄到Facebook並帶有示例,但名稱更新顯示。它涉及到這部分代碼:Facebook SDK for .NET的'LoginButton Control'示例不顯示GraphUser對象
<!--user information-->
<StackPanel HorizontalAlignment="Right">
<TextBlock
HorizontalAlignment="Center"
Text="{Binding CurrentUser.Name, ElementName=loginButton}" />
</StackPanel>
看來,「CurrentUser.x」是無法檢索其他數據一樣ID,名稱等。對於進一步的測試,我添加了「ProfilePicture控制」樣本。事實證明,配置文件圖片顯示很好,但其他所有GraphUser對象都無法顯示。
我使用的是Visual Studio 2013,Facebook 6.8.0,Facebook.Client 1.0.2。
有沒有人有解釋爲什麼這個樣本不能訪問GraphUser對象?
最好的問候
您能否提供過時零件的更多信息?在我的情況下,SessionStateChanged使用Openin調用並關閉,但從未使用LoginButton重定向到Login頁面後打開。遵循「配置」和「登錄按鈕」教程。 – morningbird 2015-05-13 14:23:26