Skip to main content
Home Forums Silverlight Programming Programming with .NET - General problem with facebook integration
1 replies. Latest Post by amyo on November 17, 2009.
(0)
kulwinde...
Member
2 points
14 Posts
11-17-2009 12:51 AM |
hello everybody
i am developing an application in silverlight in which i want to integrate facebook api..i am using the new sdk launched by the microsoft
for silverlight and i have a demo project too..but in that demo when i start the application it call the login function of dll and get me to the login page of facebook and ask for credientials..after i provided credientials...it does not fire the login compeleted event for further functionality..if anybody know about it or have any sample in silverlight please help me out with this...
amyo
Contributor
3630 points
495 Posts
11-17-2009 10:22 AM |
Check APP Key of your SL app matches with your Facebook application app key:
_browserSession = new BrowserSession(ApplicationKey);
Check that your test page Silverlight plugin ID matches with your fblogin.js silverlightPluginId :
fblogin.js:
var silverlightPluginId = '_sl_facebookapp';
Test Page:
<form id="form1" runat="server" style="height: 100%"> <div id="silverlightControlHost"> <object id="_sl_facebookapp" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="ClientBin/SilverlightFacebookApp.xap" /> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="3.0.40624.0" /> <param name="autoUpgrade" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration: none"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /> </a> </object> <iframe id="_sl_historyFrame" style="visibility: hidden; height: 0px; width: 0px; border: 0px"></iframe> </div>