facebook apps redirect to hosting url in the first usage

夙愿已清 提交于 2019-11-26 23:42:06

问题


I built a facebook apps from an tutorial with using adobe flash builder 4.5 . It is hosted on heroku.

This app gets name, image, birthday and status message . It displays these infos in the screen. And you can also post status message to your fb account. As you understand, it is very simple apps.

In the first usage of this app, after permission dialog, url is redirected to hosting url.

When you want to use it again, You can use it on facebook.com

do you have any idea why it is redirected to hosting url in the first usage after permission dialogs.

Thanks, cergun


回答1:


Selam Ceyhun,

This is expected behavior, what you can do for this is simply:

<script type='text/javascript'>
if (window.top.location == window.location) 
  window.top.location = 'https://apps.facebook.com/myapp';
</script>

that's it.



来源:https://stackoverflow.com/questions/8103986/facebook-apps-redirect-to-hosting-url-in-the-first-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!