Until the REST API is available, you can use the gadgets.rpc library
to issue a remote procedure call to your OpenSocial application to
trigger a JavaScript function that posts a new activity. For more on
gadgets.rpc, see these resources:

http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.rpc
http://code.google.com/p/opensocial-resources/wiki/RPC

- Jason

On Sep 13, 6:14 am, Viveka <[EMAIL PROTECTED]> wrote:
> What is the best practice to post activity while running the app under
> iframe?
>
> I am developing an app that is written in PHP. Orkut app calls the
> javascript, js submits the form to PHP program and PHP program execute
> the app. Once the control is handed over to PHP, I have no way of
> accessing opensocial APIs. I am thinking of following ways to post the
> activity.
>
> 1. Run a cron job to take the recent activity from the database and
> post it using opensocial.requestCreateActivity.
> 2. Execute makeRequest API when a user views the app in profile view
> and get the activity data and post it.
>
> Is there a better way to do it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to