Testing OG
parent
d5691bf83a
commit
e559b07a7b
|
@ -10,6 +10,13 @@
|
|||
<link rel="stylesheet" href="/styles/main.css" />
|
||||
<link rel="stylesheet" href="/styles/icomoon/style.css" />
|
||||
<link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light+Two|Coming+Soon' rel='stylesheet' type='text/css'>
|
||||
<meta property="og:title" content="{{ page.title }}" />
|
||||
<meta property="og:description" content="{{ page.ogdescription }}" />
|
||||
{% if page.ogisarticle %}<meta property="og:type" content="article" />{% endif %}
|
||||
<meta property="og:site_name" content="2punny" />
|
||||
<meta property="og:image" content="/images/puns{{ page.url }}.png" />
|
||||
<meta property="og:url" content="http://2punny.uni.me{{ page.url }}" />
|
||||
<meta property="fb:app_id" content="560376084090127" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
layout: default
|
||||
footer: hidden
|
||||
ogdescription: "Check out more puns at 2punny.uni.me! "
|
||||
ogisarticle: true
|
||||
---
|
||||
<main class="pun">
|
||||
<div class="puncontent" style="background: {{ page.background }}; color: {{ page.color }};">
|
||||
|
@ -25,7 +27,7 @@ document.querySelector(".twitter").addEventListener("click", function (e) {
|
|||
|
||||
document.querySelector(".facebook").addEventListener("click", function (e) {
|
||||
e.preventDefault();
|
||||
// window.open("https://www.facebook.com/dialog/share?app_id=556080077853061&display=popup&href=" + url + "&redirect_uri=" + url, "_blank", "height=320,width=480");
|
||||
// window.open("https://www.facebook.com/dialog/share?app_id=556080077853061&display=popup&href=" + url + "&redirect_uri=" + url + "", "_blank", "height=320,width=480");
|
||||
FB.ui(
|
||||
{
|
||||
method: 'share',
|
||||
|
@ -35,9 +37,9 @@ document.querySelector(".facebook").addEventListener("click", function (e) {
|
|||
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
appId : '556080077853061',
|
||||
appId : '560376084090127',
|
||||
xfbml : false,
|
||||
// version : 'v2.0'
|
||||
version : 'v2.0'
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -45,7 +47,7 @@ document.querySelector(".facebook").addEventListener("click", function (e) {
|
|||
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";
|
||||
js.src = "//connect.facebook.net/en_US/sdk.js";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
After Width: | Height: | Size: 82 KiB |
Loading…
Reference in New Issue