嘿,我用facebooker连接到facebook。所有的工作都很好,除了我不能设置我希望用户允许的烫发。
虽然我通过了offline_access权限,但当弹出打开时,它只显示基本的信息权限。
代码在我看来
<%= fb_connect_javascript_tag %>
<%= init_fb_connect "XFBML"%>
<%= fb_login_button("window.location = 'some_url';", :perms => "offline_access")%>生成
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">
Event.observe(window,'load', function() {
FB_RequireFeatures(["XFBML"], function() {
FB.init('myapikey','/xd_receiver.html', {});
});
});
</script>
<fb:login-button onlogin="window.location = 'http://localhost:3000/users/show';" permissions="offline_access"></fb:login-button>发布于 2011-02-11 13:24:01
我认为属性应该是"perms“而不是”权限“?
http://developers.facebook.com/docs/reference/plugins/login/
发布于 2011-04-21 05:53:41
这不管用。您需要使用init_fb_connect传递权限,如下所示
init_fb_connect "XFBML", { :js => :jquery, :app_settings => " { permsToRequestOnConnect : 'status_update,user_events' }" }https://stackoverflow.com/questions/4968980
复制相似问题