Class: FacebookAds::ServerSide::HttpUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/facebook_ads/ad_objects/server_side/http_util.rb

Class Method Summary collapse

Class Method Details

.appsecret_proof(app_secret, access_token) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/facebook_ads/ad_objects/server_side/http_util.rb', line 22

def self.appsecret_proof(app_secret, access_token)
    OpenSSL::HMAC.hexdigest(
        OpenSSL::Digest.new('sha256'),
        app_secret,
        access_token
    )
end