Note that there are some explanatory texts on larger screens.

plurals
  1. POfacebook open graph API name and namespace properties
    primarykey
    data
    text
    <p>I am using facebook Graph API to validate Facebook APPs, there was a property <code>canvas_name</code> which was returned by Graph API but Facebook replaced it with <code>namespace</code> and I started to use <code>namespace</code> instead of <code>canvas_name</code>. As the Facebook API documentation says we have removed the canvas name with namespace. The issue is that when I call the Graph API it sometimes returns <code>namespace</code> and sometimes only <code>name</code> it is confusing to decide which property to use.</p> <p>Here are two different Facebook APPs I am validating through Graph API and getting different properties.</p> <p>Which property should I use? <code>name</code> or <code>namespace</code>?</p> <p><strong>http://graph.facebook.com/173782752713273</strong> </p> <pre><code>{ "id": "173782752713273", "name": "fbfarooqtv", "link": "http://www.facebook.com/apps/application.php?id=173782752713273", "namespace": "fbfarooqtv", "icon_url": "http://photos-g.ak.fbcdn.net/photos-ak-snc7/v85006/137/173782752713273/app_2_173782752713273_9103.gif", "logo_url": "http://photos-g.ak.fbcdn.net/photos-ak-snc7/v85006/137/173782752713273/app_1_173782752713273_8525.gif", "weekly_active_users": "1", "monthly_active_users": "2" } </code></pre> <p>and other returns </p> <p><strong>http://graph.facebook.com/342927909107736</strong></p> <pre><code>{ "id": "342927909107736", "name": "Ticketveri", "link": "http://www.facebook.com/apps/application.php?id=342927909107736", "icon_url": "http://static.ak.fbcdn.net/rsrc.php/v1/yT/r/4QVMqOjUhcd.gif?_fbgz=1", "logo_url": "http://static.ak.fbcdn.net/rsrc.php/v1/y_/r/9myDd8iyu0B.gif?_fbgz=1" } </code></pre> <p><strong>Thanks all of you have given answers</strong>, I have accomplished my above task using appId, if anyone do not specify namespace for facebook app they can navigate to there app using appId like this <code>http://apps.facebook.com/173782752713273</code></p> <p>and if one specify the namespace then one can navigate to there app using appId and namespace too, as <code>http://apps.facebook.com/342927909107736</code> and <code>http://apps.facebook.com/fbfarooqtv</code>. and I was validating facebook app from referrer of page, now I have added the fall back on namespace if any app do not have namespace then I takes the appId from referrer and validates it by calling graph API which returns the information about app if it exists. as bellow</p> <pre><code>http://graph.facebook.com/173782752713273 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload