perhaps because your enum references are wrong? you need

opensocial.getEnvironment().supportsField(opensocial.Environment.ObjectType.PERSON,
opensocial.Person.Field.NAME <http://opensocial.person.field.name/>);

or you can just try
opensocial.getEnvironment().supportsField('person',
'name'<http://opensocial.person.field.name/>
);

- cassie


On Fri, Jul 11, 2008 at 7:07 AM, ajay singh
<[EMAIL PROTECTED]>wrote:

> Thanks Chris,
> But these lines always reutrn false
>
> opensocial.getEnvironment().supportsField(opensocial.Environment.person,
> opensocial.Person.Field.name);
>
> what is wrong here?
> Chris Chabot <[EMAIL PROTECTED]> wrote: check out
> shindig/config/container.js
>
> Specifically the part that reads:
>
>     "supportedFields" : {
>        "person" : ["id", "name", "thumbnailUrl", "profileUrl"],
>        "activity" : ["id", "title"]
>     },
>
> Just add the fields you want to support through the open social api
> calls to the person list (make sure you get the naming right though:P)
>
>  -- Chris
>
> On Jul 11, 2008, at 3:45 PM, ajay singh wrote:
>
> > Thank you Chris for previous reply, it helped lot.
> >
> > How Shindig came to know that any field is supported by SNS.
> > As I know opensocial uses this for getting supported field -
> > opensocial
> > .getEnvironment().supportsField(opensocial.Environment.PERSON,
> > opensocial.Person.Field.GENDER);
> > (If I am wrong please correct me. because it always return false for
> > partuja code)
> >
> > But How will shindig know this information OR we have to write this
> > code in SNS.
> >
> > Thanks
> > Ajay
> >
> >
> >
>
>
>
>
>

Reply via email to