Instagram Invalid Response Error - 400

前端 未结 1 1021
清歌不尽
清歌不尽 2021-01-26 06:13

I have the following code.

    params = {\'client_id\':settings.SOCIAL_AUTH_INSTAGRAM_KEY,
              \'client_secret\':settings.SOCIAL_AUTH_INSTAGRAM_SECRET,         


        
1条回答
  •  -上瘾入骨i
    2021-01-26 07:00

    This was because Instagram sends a GET request to my callback_url and wants me to response with hub.challenge parameter like below

        if self.request.GET:
                response = request.GET.get('hub.challenge')
                return HttpResponse(response)
    

    0 讨论(0)
提交回复
热议问题