Hi Jota,

Expect it to be launched within next two weeks.
Yes, users will either have to mark "Allow access to my photos" or the
application can dynamically request permissions for albums access via
requestPermission api. The example code is given below which should run on
sandbox.

Hope that helps!
Sachin

// -- Copy it in OpenSocial Dev App. and Execute.

var permission = 'albums';

function callback(data) {
  if (data.hadError()) {
    output("There was a problem: " + data.getErrorMessage());
  } else {
    output("You now have access to the " + permission);
  }
};

var has_permission = opensocial.hasPermission(
    permission);

if (!has_permission) {
  output("You do not have access to the " + permission);
  opensocial.requestPermission(
      [ permission ],
      "Get Albums Access",
      callback);
} else {
  output("You have access to the " + permission);
}

// End of code.


On Thu, Apr 16, 2009 at 10:58 PM, Jota <jefferson.ru...@gmail.com> wrote:

> Anybody knows when we will can access photo albuns in production, I mean,
> outside the sandbox?
>
> Will users have to mark "Allow access to my photos" or this option will be
> shown selected by default (on adding a new app)?
>
>
> regards,
> Jota
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to