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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -