Facebook iframe app being redirected out of canvas after user authorization

≡放荡痞女 提交于 2019-11-29 02:44:19

Step 1, Step 2, Step 3 are ok

Step 4: When the user authorize your app, it will be redirected to yourapp.com (canvas url) at canvas url, you'll do:

<script>
window.top.location='https://apps.facebook.com/yourapp' //(canvas page)
</script>

step 5: as your canvas page is called you'll get signed_request then with your fb api you'll parse it.

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