开发者

Not able to show permissions dialog on facebook iframe application

i am not 开发者_如何学Pythonable to show permissions dialog on facebook iframe application.

can any one help me?


Paste Your Code That You Are Using here: in general the code would be:

FB_RequireFeatures(["Connect"], function() { FB.init('be13f687478ca790529ba5900f7f1152', 'xd_receiver.htm'); FB.ensureInit(function() { function callback (){ window.location = "http://www.wanamo.com/fb/wmce/index.php?"; }; FB.Connect.showPermissionDialog("publish_stream", callback); }); });


Debjit's method uses the old Javascript SDK. I recommend using the latest SDK. You can learn more here:

http://developers.facebook.com/docs/reference/javascript/FB.ui

PS. Let me also add that your question is as vague as it can get. It helps to provide more detail. You'll have a better chance of getting a useful response.


Use the Facebook API's available on codeplex.com and use the following code to show the permission page, just add this code in the ASP Page_PreInit Method

            base.RequiredPermissions = new List(); 
            base.RequiredPermissions.Add(Facebook.Schema.Enums.ExtendedPermissions.publish_stream); 
            base.RequiredPermissions.Add(Facebook.Schema.Enums.ExtendedPermissions.status_update); 
            base.RequiredPermissions.Add(Facebook.Schema.Enums.ExtendedPermissions.offline_access);

            base.RequireLogin = true;

Kind of a duplicate:http://stackoverflow.com/questions/3713353/how-to-do-permission-page-to-facebook-application/3759721#3759721

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜