FB.ui feed dialog requires redirect_uri, dialog does not close

后端 未结 3 1099
一向
一向 2021-02-09 23:15

I am trying to open a feed dialog using the JS SDK\'s FB.ui method and have it close after the user shares. My problem is the feed dialog is requiring a redirect_uri even though

3条回答
  •  生来不讨喜
    2021-02-09 23:58

    It appears this is a known change in Facebook's JavaScript SDK: http://developers.facebook.com/bugs/302946973066993

    When using the Facebook JavaScript API, invoking FB.ui will fail unless a 'redirect_uri' property is supplied in the params object - this behavior is unexpected because:

    1.) The documentation states that the 'redirect_uri' will be automatically appended by most SDKs [1] - previously the JavaScript SDK was providing one which closed the Lightbox iFrame. 2.) Adding a redirect_uri param results in the Facebook Lightbox iFrame redirecting which stops the user from being able to close it. 3.) The redirect_uri param was not required previously.

    This is the behavior I'm used to and have been trying to duplicate. A FB dev reports that this is now "by design."

提交回复
热议问题