Skip to main content

Microsoft Silverlight

Unanswered Question problem with facebook integrationRSS Feed

(0)

kulwinder_singh
kulwinde...

Member

Member

2 points

14 Posts

problem with facebook integration

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...

KULWINDER

amyo
amyo

Contributor

Contributor

3630 points

495 Posts

Re: problem with facebook integration

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>
  Check your Facebook application Connect URL port matches to you web application port number

Amyo Kabir
Solution Architect & Sr. Developer
Blog

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities