我正在使用 facebook open graph,新的 api,我可以这样做:
<fb:login-button show-faces="true" max-rows="9" perms="email" autologoutlink="true" onlogin="window.location = 'http://www.example.com/facebook/facebook_test/'"></fb:login-button>
但是当我阅读文档时,如果我需要更多选项http://developers.facebook.com/docs/reference/javascript/FB.login说我可以:
FB.login(function(response) {
if (response.session) {
if (response.perms) {
// user is logged in and granted some permissions.
// perms is a comma separated list of granted permissions
} else {
// user is logged in, but did not grant any permissions
}
} else {
// user is not logged in
}
}, {perms:'read_stream,publish_stream,offline_access'});
但是,如果我需要另一个图像作为 fb 按钮,并且如果我需要其他东西,我无法找到如何做到这一点,我可以在 html 的哪个部分调用 FB.login,在标签“脚本”之间?