|
|
|
|
Gigya's Developer Documentation > Wildfire Sharing Tool > Developer's Guide > Post to Social Networks > MySpace
MySpaceFrom $1Table of contentsGuidelines for Posting Content to MySpace
Example of a universal Flash embedded in HTML code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="300" height="400" id="widget_name" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://www.domain.com/path/to/widget.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://www.domain.com/path/to/widget.swf" quality="high" bgcolor="#ffffff"
width="300" height="400" name="widget_name" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
FlashVars="var1=12345&var2=67890"/>
</embed>
<param name="FlashVars" value="var1=12345&var2=67890" />
</object>
Available SectionsThe following is a list of the available sections for posting content to MySpace profiles: Content Sections: About, Blog, Meet, Interests, Music, Movies, Television, Books, Heroes, Artist_Bio, Artist_Members, Artist_Influences, Artist_Sounds_Like. Layout Sections: ProfileLayout, BlogLayout, AllLayouts.
You can restrict the list of sections displayed in the section selection dropdown by using the myspaceSections parameter. Example:To have MySpace show only the "About me" and "I'd like to meet" sections, add the following code to your configuration object: myspaceSections:'About,Meet'
Note - Layout sections are meant to be used in conjunction with the contentIsLayout parameter. The next section elaborates on this point.
Posting a Layout to MySpaceYou may post either a profile layout or a blog layout to MySpace, as described below: Posting a Profile LayoutTo post a profile layout, a couple of parameters in your configuration object should be set as follows:
contentIsLayout: 'true', myspaceSections: 'ProfileLayout', If the user is using MySpace Profile 2.0, the content will be placed within the "Custom Style Sheet" box. If the user has the old profile then the content will be placed in the content of the "About Me" section.
Posting a Blog LayoutTo post a blog layout, a couple of parameters in your configuration object should be set as follows:
In this scenario, please tag the content you provide with the following tags: <gigyaBlogLayoutHeader> The content within the first two tags will be placed in the "Header HTML" box and the content within the latter pair will be placed in the "Blog CSS" box. Note: If you have configured Wildfire to show a codebox on MySpace, please use the myspaceContent parameter to provide content, making sure you have set it to the same content you provided within the <gigyaBlogLayoutCSS> tags.
Code ExampleThe following HTML code is an example of using Wildfire configured to post layout to a MySpace profile: <textarea id="myspaceLayout" style="display: _fckstyle="display: none">
<gigyaLayoutHeader>
<!-- MEDIA CODE GOES HERE -->
</gigyaLayoutHeader>
<gigyaLayoutCSS>
<!-- CSS CODE GOES HERE -->
</gigyaLayoutCSS>
</textarea>
<div id="divWildfirePost"></div>
<script>
var pconf={
contentIsLayout: 'true',
myspaceSections: 'ProfileLayout',
myspaceProfileLayoutContent: 'myspaceLayout',
myspaceContent: 'myspaceLayout',
UIConfig: '<config><display showPost="true" networksToShow="myspace" networksWithCodebox="myspace"></display></config>'
};
Wildfire.initPost('123456', 'divWildfirePost', 400, 300, pconf);
</script>
Tags:
|
||||
|