Skip to content

Commit 304d1b5

Browse files
committed
Use app_id on plate object instead of reading from Facebook
Fixes app_id-based bugs from heroku#11.
1 parent 0d21bdb commit 304d1b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/index.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<meta property="og:image" content="<%= url('/logo.png') %>" />
2424
<meta property="og:site_name" content="<%= app.name %>" />
2525
<meta property="og:description" content="My first app" />
26-
<meta property="fb:app_id" content="<%= app.id %>" />
26+
<meta property="fb:app_id" content="<%= req.facebook.plate.app_id %>" />
2727

2828
<script type="text/javascript" src="/scripts/jquery.min.js"></script>
2929

@@ -96,7 +96,7 @@
9696
<script type="text/javascript">
9797
window.fbAsyncInit = function() {
9898
FB.init({
99-
appId : '<%= app.id %>', // App ID
99+
appId : '<%= req.facebook.plate.app_id %>', // App ID
100100
channelUrl : '<%= url_no_scheme('/channel.html') %>', // Channel File
101101
status : true, // check login status
102102
cookie : true, // enable cookies to allow the server to access the session

0 commit comments

Comments
 (0)