Ruby facebook graph api appsecret_proof

后端 未结 2 842
情话喂你
情话喂你 2021-01-14 08:29

How can I create an appsecret_proof using Ruby for the facebook graph api?

Facebook has an example in PHP. I also saw an example in ruby in this gist.

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 09:03

    I've found another way to generate the appsecret_proof for Facebook:

    OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha256'), , )
    

    Excerpt taken from this gist thread

提交回复
热议问题