You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until the pattern is fixed, it looks possible to create an appsecret_proof signature for API calls and inject them into the parameters in 0.7.3 (not in npm though however)
var crypto = require('crypto'),
FB = require('fb');
function initParams(accessToken, clientSecret) {
var hmac = crypto.createHmac('sha256', clientSecret),
params = {};
hmac.update(accessToken);
params.access_token = accessToken;
params.appsecret_proof = hmac.digest('hex');
return params;
}
var args = initParams('access_token', 'client_secret');
FB.api('/me/accounts', 'get', args, function(response) {
// ... do something
} );
Hello
We've got a single game server which is used to support multiple games on facebook. Is there any way we could specify multiple app id's and secretes?
Thanks
Krystian
The text was updated successfully, but these errors were encountered: