あなたはJavascript SDKを使用してのようなボタンをクリックの上にユーザーをリダイレクトすることができますし、FB.Event.Subscribe
FB.Event.subscribe('edge.create', function(response) {
window.parent.location = 'http://www.google.com';
});
これまで、ユーザーがページ
応答に何かを好きなときedge.createが呼び出されますちょうど好きだったURLです。ページ上の複数のようなボタンがある場合はif文
、ページのみボタンのように、特定のためにリダイレクトを確認するために応答して使用することができ
ここでは完全なJavaScriptコードなどのボタンです
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID', // App ID
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
oauth : true, // enable OAuth 2.0
xfbml : true // parse XFBML
});
FB.Event.subscribe('edge.create', function(response) {
window.parent.location = 'http://www.google.com';
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/<?php if(isset($fb_user['locale'])){echo $fb_user['locale'];}else{echo'en_US';}?>/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
<fb:like href="http://www.google.com" send="false" width="450" show_faces="true"></fb:like>
非常に詳細な回答ありがとうございます。私はそれを試してみましょう、と私はそれが仕事になることができない場合でも私はあなた自身の検索を行うために十分な情報を与えたと思う:) – brunn