I'm planning to use the PHP-SDK to post user custom object actions. The PHP side of things work, but when trying to use the JavaScript SDK to auth the user prior to the post, I get a pop up load, but then shut down immediately. It's not being blocked as a pop - it loads but it is immediately shut down in a variety of browsers.
Note: I am mixing XFBML and HTML5 Like/Login below but it also happens when they use the same method. I am using custom namespaces to define the page in the OG, but I am not sure that matters.
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=MY_APP_ID";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
...
<fb:like send="false" width="450" show_faces="false"></fb:like>
...
<div class="fb-login-button" scope="publish_actions" data-show-faces="false" data-width="400" data-max-rows="1">Login with Facebook first to share your review.</div>
I have the app setup, enabled for Facebook login (although I am only using the login button to force permissions for posting this custom action).
根据上面的评论,这似乎是由于我已经以具有相关权限的用户身份登录。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.