Many features are not available in external Iframe apps using REST api
1. Passing variables/data over surface profile to canvas
In Opensocial JS API the link from profile page that reads http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=xxxxxx&var1
=hello
can pass data to canvas surface by appending it (var1=hello) in canvas url
The same thing for external iframe based app will not work
External Iframe in canvas page reads like this
<iframe id="apppanel_XXXXXX_canvas" src="http://externaldomain.com/app/?country=CA&lang=en&oauth_consumer_key=http%3
A%2F%2Fwww.myspace.com%2FXXXXXXXX&oauth_nonce=xxxxxxxxxxxxxxxxxxxx
&oauth_signature=xxxxxxxxxxxxxxxxxxx%3D&oauth_signature_method=HMAC-SHA1
&oauth_timestamp=1209183007&oauth_token=&oauth_version=1.0
&opensocial_owner_id=xxxxxxxxxx&opensocial_viewer_id=xxxxxxxx
&pto=COMMENTS%2CBLOG%2CBULLETINS%2CPROFILE%2CSEND_MESSAGE"
width="800" height="5000" scrolling="no" frameborder="0"
style="border: none; background:transparent;"></iframe>
If any data appended in canvas url http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=xxxxxx
&var1=hello&var2=xyz
is reflected in src attribute of iframe like
<iframe src="http://externaldomain.com/app/?country=CA..................&var1=hello
&var2=xyz"></iframe>
then external iframe based app can also pass data from profile to canvas surface
2. POST TO feature
Messaging feature is still not available in REST API.
It will take time to get released. But till then if MDP team could implement this:
URL for send message page reads like this
http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=XXXXXXXXX
Here also if we could append subject and body parameter in url so that it pre fills up the subject and message textbox there like
http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=XXXXXXXXX
&subject=check this app&body=my app link
Similarly for comment and bulletin post like this
http://comment.myspace.com/index.cfm?fuseaction=user.viewProfile_commentForm
&friendID=278378076&body=my comment text
http://bulletins.myspace.com/index.cfm?fuseaction=bulletin.edit&subject=bulletin subject
&body=bulletin body text
I guess it will not take much time to implement for MDP team.
You guys are doing great.
Thanks