Creating a Like-Gate (reveal tab) for a Facebook app, using Django/Python

后端 未结 3 1844
独厮守ぢ
独厮守ぢ 2021-01-14 15:00

I\'m building a Facebook app using Python/Django. I\'ve installed FanDjango and that works great. Just one more thing I need.

I\'d like to build a \"like-gate\" fo

3条回答
  •  执笔经年
    2021-01-14 15:38

    Fandjango wraps facepy so it's actually easier. Install only Fandjango via pip to avoid conflicts.

    In the view with the request object, you can simply check against

    request.facebook.signed_request.page.is_liked
    

    and perform different actions. Remember that page will be None if the app is not in a page.

提交回复
热议问题