我正在为我的现场建造一页桌子,需要用手提页id,因此,我就此提出了看法。
@csrf_exempt
def iframe_playlist(request):
code = request.REQUEST.get("signed_request", None)
code = none if code == None else none
return HttpResponse(code) #<<< I tried to output the request
#<<< and see if the request exists. but it always shows to none.
code = code.split( . , 2)
code = facebook.base64_url_encode(code)
code = json.loads(code)
uid = json[ user_id ]
site_user = get_object_or_404(FacebookProfile, uid=uid)
app = get_object_or_404(AppPage, user=site_user.user)
playlist = app.playlist
image = app.image if app.image else None