mediapop / django-friendface

Getting Facebook to work for Django.
2 stars 0 forks source link

Add a root canvas view. #50

Open kitsunde opened 11 years ago

kitsunde commented 11 years ago

We really do the same thing in the canvas, this could be a default view that also could have a mixin for handling apprequests #13:

{% load staticfiles %}

<!DOCTYPE html>
<html>
<head>
    <meta property="og:title" content="{{ request.facebook.name }}">
    <meta property="og:description" content="{{ request.facebook.description }}">
    <meta property="og:image" content="{{ request.facebook.logo_url }}">
</head>
<body>
<script>
    top.location.href = "{{ request.facebook.facebooktab_set.all.0.get_absolute_url }}";
</script>
</body>
</html>
gaqzi commented 11 years ago

This should also handle Google Analytics.