MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

request permissions

Last post 11-02-2009 9:30 AM by Mahesh. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 11-02-2009 9:30 AM

    • Mahesh
    • Not Ranked
    • Joined on 10-05-2009
    • Posts 5

    request permissions

    Hello guys, I have an application in which I'm loading content from my website in an IFrame. From the IFrame, I'm trying to prompt the user to add the application like on this page - http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=124833. I've followed all the recommended steps, like adding the script tags to my code, and registering the required variables (panelId). However, no matter what I do, I can't seem to get it to work. Here's the code snippet inside my IFrame: var perms = MyOpenSpace.Permission['VIEWER_DISPLAY_ON_PROFILE']; var hasPerm = container.hasPermission(perms); alert('has permissions: ' + hasPerm); var reason = "Test permission request"; reqCallback = function (response) { alert("call back!"); }; if (!hasPerm) { alert('about to call request permission, container:' + container.requestPermission); container.requestPermission(perms, reason, reqCallback); } The first alert (inside the if block) appears. When I checked what was happening using Firebug, I noticed the error message "Unknown RPC service" right after the alert - on the line that says container.requestPermissions(.... Can anyone help please?
Page 1 of 1 (1 items)