...
You will then need to create 2 tables in your PortalDb database (if you use MySQL, just execute the following):
No Format |
---|
CREATE TABLE IF NOT EXISTS `UPC_FACEBOOK` (
`UID` varchar(128) NOT NULL,
`SESSION` varchar(255) DEFAULT NULL,
`PREFERENCES` text,
PRIMARY KEY (`UID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE IF NOT EXISTS `UPC_FACEBOOK_PREFS` (
`UID` varchar(128) NOT NULL,
`PREF_NM` varchar(128) DEFAULT NULL,
`PREF_VAL` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
...
Once you get your keys, change the values in edu.uci.vcsa.portal.portlets.FacebookPortlet.Almost done! You will want to update the URLs for the icons in the JSP files. The icons are located in a zip file in the main directory of the portlet. Unzip them onto your web server and edit the image URLs in the appropriate JSPs in /webpages/WEB-INF/jsp/java.
Run ant deploy to compile and package.
Deploy to uPortal like any other portlet, ant deployPortletApp -DportletApp=/path/to/dir/build/Facebook.war. Use the Channel Manager to add a new Portlet with ID: Facebook.FacebookPortlet.
You may also want to add 2 CSS classes to your styleshee that are used in the JSPs:
No Format |
---|
/* facebook portlet styles */ .fb-image-block { clear: both; float: left; width: 100%; display: block; margin: 5px 0 5px 0; } .fb-image { padding: 3px; margin: 3px 3px 0 0; border: 1px solid #ccc; position: relative; float: left; } |
Screenshots
...