Facebook permission dialog (JavaScript sdk)

走远了吗. 提交于 2019-12-03 21:19:17

The reason you are not seeing it is because the application process has become a two step process.

  1. Being that the person accepts to login into your application.
  2. Being the person accept your extended permission which is where the callback url comes into play.

Documentation can be found here.

So the reason your callback isn't being called is because the two step process. I would suggest making the response attached to second page that is called.

I am not sure how the JS SDK works but it is how I managed to do it.

Goodluck.

You need before calling autorization window to add the fb token to the url to identify your user to fb.

I think try this to get the token : FB.getAccessToken();

I have the same issues here. The documentation says only developers/tester of this app will be able to get the publish permission but I could manage to make it work only with the id that was used to create the app. Other test users (even though are authorized developers) are not able to get past the 'add-to-timeline' stage.

It could be a major bug.

I was struggling with this issue for few hours, and my lovely co-worker helped me fix it just now. Make sure you don't refresh the page after login was called. Basically, don't do something like below:

FB.login(...);
window.location.refresh();

Include the refresh code inside of the callback for FB.login!

Man, I feel so stupid, but sometimes you get confused and forget how callbacks work in terms of execution orders of code.

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