Created
August 22, 2011 19:20
-
-
Save tmilewski/1163267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Example</title> | |
</head> | |
<body> | |
<div id="fb-root"></div> | |
<iframe src="http://www.facebook.com/plugins/like.php?app_id=140499949374170&href=http%3A%2F%2Fexample.com&send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe> | |
<fb:comments href="example.com" num_posts="2" width="500"></fb:comments> | |
</body> | |
</html> | |
<script type='text/javascript'> | |
window.fbAsyncInit = function() { | |
// Note: Removed the App ID | |
FB.init({appId: '00000000000000', status: true, cookie: true, xfbml: true}); | |
// Comment Added | |
FB.Event.subscribe('comment.create', function(response) { | |
console.log(response); | |
}); | |
// Comment Removed | |
FB.Event.subscribe('comment.remove', function(response) { | |
console.log(response); | |
}); | |
// Like Added | |
FB.Event.subscribe('edge.create', function(response) { | |
console.log(response); | |
}); | |
// Like Removed | |
FB.Event.subscribe('edge.remove', function(response) { | |
console.log(response); | |
}); | |
}; | |
(function() { | |
var e = document.createElement('script'); | |
e.async = true; | |
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js#xfbml=1'; | |
document.getElementById('fb-root').appendChild(e); | |
}()); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unsafe JavaScript attempt to access frame with URL http://www.facebook.com/extern/login_status.php?api_key=140499949374170&app_id=140499949374170&channel_url=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df138ed09bc%26origin%3Dhttp%253A%252F%252Fexample.com%252Ff2597e9d0c%26relation%3Dparent.parent%26transport%3Dpostmessage&display=hidden&extern=2&locale=en_US&next=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df1b9bd88%26origin%3Dhttp%253A%252F%252Fexample.com%252Ff2597e9d0c%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df1e56cea84%26result%3D%2522xxRESULTTOKENxx%2522&no_session=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df12c98329%26origin%3Dhttp%253A%252F%252Fexample.com%252Ff2597e9d0c%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df1e56cea84&no_user=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Df1dc2d59f4%26origin%3Dhttp%253A%252F%252Fexample.com%252Ff2597e9d0c%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df1e56cea84&ok_session=http%3A%2F%2Fstatic.ak.fbcdn.net%2Fconnect%2Fxd_proxy.php%3Fversion%3D3%23cb%3Dfb79dcf8c%26origin%3Dhttp%253A%252F%252Fexample.com%252Ff2597e9d0c%26relation%3Dparent%26transport%3Dpostmessage%26frame%3Df1e56cea84&sdk=joey&session_origin=1&session_version=3 from frame with URL http://www.facebook.com/plugins/like.php?app_id=140499949374170&href=http%3A%2F%2Fexample.com&send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35. Domains, protocols and ports must match. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (;;);{"__ar":1,"payload":{"requires_login":false,"error_info":null,"show_error":false,"node_type":"ExternalLink","node_id":21728924544,"edge_type":"ExternalLinkLike","connect_text":0,"success":true,"already_connected":true,"user_profile":{"name":"Tom","profile_url":"http:\/\/www.facebook.com\/tmilewski","pic_square":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/211682_8201087_808641_q.jpg"},"story_fbid":"10100336026008063","is_admin":false,"admin_url":""},"invalidate_cache":[0]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
comment.create and comment.remove both work.
edge.create and edge.remove do not.