I want to make a site for me in which I can use the facebook api features.
I got a tomcat webserver ans liferay is installed on it.
Now I need to implement the facebook.php to this but I don't know where to put it.
I wrote some code in php to get for example my id or to post into my own profile. But liferay oder tomcat couldn't load the things from facebook.php so the server doesn't know the methods and can't do what I want him to do.
Can anybody tell me how to solve this problem?
I've never actually done it before because I've tried to keep PHP code off Liferay and used other methods to access 3rd APIs. However the Tomcat wiki has a post on it:
Installing PHP on Tomcat
Or what maybe a better option is you use the Facebook JavaScript API and you create a new Liferay portlet which uses this API instead of using PHP.
How can I use Facebook JAVA API in my application? will help you find the java api for facebook. With regards to getting started with programming: That one is far beyond what can be answered here. But basically: Try to access the API in the language that you're working in. Don't bridge to a different language in order to bridge then to an external system.
There are a lot more hits when you google for facebook java api in case that link doesn't help.
Related
I have an existing java web application, servlet based. I plan to add a module to show news articles to visitors. So i choose liferay as our CMS. The solution in my mind is that using an iframe in my web site to show news articles managed by liferay CMS. If i do so, is it convenient for our news editor to manage news articles with liferay CMS? Shall he/she switched to liferay to do this? It seems that the preview function of liferay CMS could guarantee only the inline iframe's visual effect is nice, am i right here?
Besides, could you please advise me a better solution other than iframe based solution?
I am looking forward for your comments, any help here would be appreciated!
Maybe it's better that liferay includes the existing Web app.
I've downloaded Zend framework, but the ZEND_JABBER library isn't included. How can I download it? (http://framework.zend.com/wiki/pages/viewpage.action?pageId=30641)
That page is a proposal for a class for ZF but it doesn't appear to have ever been completed. It never was part of ZF 1 anyway. There don't appear to be any packages for ZF2 that handle Jabber at the moment either. The code for that proposal is available on google code but hasn't been changed since 2007 and may be incomplete.
xmpphp looks like a promising library for xmpp as does JAXL. There are also many other php jabber clients that should all work with your ZF app.
How to implement restful access from Dojo client to java server running in tomcat?
I need to make restful request to server and get data (json or xml format) and update the grid. How to do it?
I read the following posts, but i couldn't understand anything.
http://www.sitepen.com/blog/2008/06/13/restful-json-dojo-data/
http://www.sitepen.com/blog/2008/11/21/effective-use-of-jsonreststore-referencing-lazy-loading-and-more/
Can anyone give me complete source code and the explanation ?
Since I am new to Dojo I feel hard to do this. I don't want web services to be included.
For the REST part, you can use the Wizard of Netbeans (the tutorial is on Glassfish, but I don't see any reason why this should not work on Tomcat as well). See here the tutorial:
http://netbeans.org/kb/docs/websvc/rest.html .
For the dojo part, I have posted a complete example (which integrates perfectly with the REST implementation provided by Netbeans) here:
Dojo grid nested json
EDITED
In the Netbeans' tutorial there is a link for Tomcat users.
I'm new in GWT and I made some simple projects and in the last one I use google maps api.
The problem is that there is no result when I wrote the code and the script and add the libraries and I have problems to locate the source of the nocache.js file. Can somebody tell me how to do a simple web site with google maps api (gwt - maps).
Try starting with a tutorial they provide.
Is there any test framework or software that can automatically go through a site and find 404 errors from links?
You could use an extension for your favourite browser, i.e. LinkChecker for Firefox.
Are you looking for a tool that does complete validation/checking of the site? Or one that does use-case testing of specific parts of the site.
For the latter I recommend TestPlan, it has the ability to check the headers of pages and work with the so-called "meta" response of the page.
The original web-site is no longer available but the project is now hosted on Launchpad.
For the former it isn't the best tool, but as part of a test framework it is easy enough to get it to scan through links on the site looking for errors.
If you're running on Windows there is this one.