Facebook api: how to obtain current app namespace? -
i want create open graph request need current app namespace. how can obtain current app namespace using javascript? have several apps (with different namespaces) , want avoid setting constant in code.
you can use namespace field of app object:
get /{app_id}?fields=namespace where {app_id} current app's id, or js sdk
fb.api('/{app_id}', {fields: 'namespace'}, function(response) { console.log(response); });
Comments
Post a Comment