Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Hello every body I have figured what is the problem and thanks prabir for your help the problem was I was a new in Facebook application development the problem was i want to make more than one application use the same solution so there is no need the settings in the config file because i set them problematically on the run time and here is the peace of code i am using :</p> <p>I create a class the implement ifacebookapplication whisch contain this method :</p> <pre><code> private IFacebookApplication GetCurrent() { RouteData UrlData = HttpContext.Current.Request.RequestContext.RouteData; FaceBookSettings fbSettings = FaceBookSettingsManager.GetFaceBookSettingsByAppId((string)UrlData.Values["appId"]); var FBApp = new DefaultFacebookApplication(); FBApp.AppId=fbSettings.AppId; FBApp.AppSecret=fbSettings.AppSecret; FBApp.CancelUrlPath=fbSettings.CancelUrlPath; FBApp.CanvasPage=fbSettings.CanvasPage; FBApp.CanvasUrl=fbSettings.CanvasUrl; FBApp.SecureCanvasUrl=fbSettings.SecureCanvasURL; FBApp.SiteUrl=fbSettings.SiteUrl; FBApp.UseFacebookBeta = fbSettings.UseFacebookBeta; return FBApp; } </code></pre> <p>and within my application start I st this :</p> <pre><code> FacebookApplication.SetApplication(new FaceBookApplicationSettings()); </code></pre> <p>and within my config file i am not setting any configuration except :</p> <pre><code> &lt;httpHandlers&gt; &lt;add verb="*" path="facebookredirect.axd" type="Facebook.Web.FacebookAppRedirectHttpHandler, Facebook.Web" /&gt; &lt;/httpHandlers&gt; </code></pre> <p>that is all thanks alot :)</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