简体   繁体   English

Facebook应用POST显示空白页

[英]Facebook app POST displays blank page

I'm programming a Facebook app on localhost. 我正在本地主机上编程一个Facebook应用程序。 When some event triggers, the user gets a notification on Facebook. 当某些事件触发时,用户会在Facebook上收到通知。 The notification works great, but however when he opens it, it sends a POST request to: 通知效果很好,但是当他打开通知时,它会向以下位置发送POST请求:

http://localhost:5939/Home/Messages/20

and displays like this in the browser: 并在浏览器中显示如下:

https://apps.facebook.com/{FACEBOOK-APP-ID}/Home/Messages/20?fb_source=notification&ref=notif&notif_t=app_notification

If the user is located outside the app on Facebook (but on Facebook), the app loads correctly. 如果用户位于Facebook(但位于Facebook)上的应用程序外部,则该应用程序将正确加载。 If the user refreshes the page while in the app, it displays correctly. 如果用户在应用程序中刷新页面,它将正确显示。 However when the user is located INSIDE the app and clicks the notification, it displays a white blank page. 但是,当用户位于应用程序内部并单击通知时,它将显示白色空白页。

What could be causing this? 是什么原因造成的?

I'm using ASP.NET MVC 4 .NET framework 4.5 and yes, my Messages controller function is POST. 我正在使用ASP.NET MVC 4 .NET Framework 4.5,是的,我的Messages控制器功能是POST。

I got this fixed by changing the apps Namespace to something other than blank. 我通过将应用程序的Namespace更改Namespace空白来解决此问题。 Now it works. 现在可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM