mediapop / django-friendface

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

Add StickyPageTab view that can sticks to the tab where user first entered the application. #56

Open kitsunde opened 11 years ago

kitsunde commented 11 years ago

A few times our clients have wanted to run the same promotion on multiple pages at once. We could solve this by having a PageTab view which sets:

session[request.facebook.id]['tab'] = request.FACEBOOK['page']['id]

Then when the user wants to return to the tab it can redirect the user to the correct tab. If there is nothing in the session (because the user didn't enter through a tab), we would do what we do now and send the user to the first installed tab.

We could also add a preferred_tab property that lets us specify where we would like to send the user if the application is installed there:

class StickyPageTab(stuff):
    prefered_tab = 1234567890

This means we can give the installation link to the client #54 and have the application be configured #55 in a simple fashion without our help.

kitsunde commented 11 years ago

We would need to find a solution for #50 that is just picking the first page tab.

kitsunde commented 11 years ago

Another issue is if the same app has two page tabs. Would need to also namespace on the url.