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
{{ message }}
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.
Standalone usage works over request, response and domain, but the documentation does not mention this.
This causes various errors such as with the following code:
var fbapp = new fbsdk.Facebook({
appId : 'YOUR APP ID',
secret : 'YOUR API SECRET'
});
fbapp.getLoginUrl();
Which causes an exception: "No request host available"
From what I gather, it is expected that one sets the aforementioned variables as configuration parameters like the appId and secret.
This has is the cause for a problem in my end; it would require an object per socket connection, whereas one would have been enough (the solution would be to have a different Facebook SDK instance each time).
The text was updated successfully, but these errors were encountered:
app.post( '/facebook/register', function ( req, res, next ){
var facebook = new fbsdk.Facebook({
appId : cfg.fb_appId,
secret : cfg.fb_appSecret,
request : req,
response: res
});
var fbInfo = {};
if (facebook.getSession() ) {
fbInfo.uid = facebook.getSession().uid; // fbuid
fbInfo.access_token = facebook.getSession().access_token;
fbInfo.sig = facebook.getSession().sig;
fbInfo.registration = facebook.getSignedRequest().registration; // contain all the entries in the FB registration form.
fbInfo.oauth_token = facebook.getSignedRequest().oauth_token; // not necessary
}
... do the rest of the stuff, like add user to local DB..etc
Standalone usage works over request, response and domain, but the documentation does not mention this.
This causes various errors such as with the following code:
Which causes an exception: "No request host available"
From what I gather, it is expected that one sets the aforementioned variables as configuration parameters like the appId and secret.
This has is the cause for a problem in my end; it would require an object per socket connection, whereas one would have been enough (the solution would be to have a different Facebook SDK instance each time).
The text was updated successfully, but these errors were encountered: