Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6690717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:40:10+00:00 2026-05-26T05:40:10+00:00

I am working on a java application, which asks for a url as input,

  • 0

I am working on a java application, which asks for a url as input, and outputs some analyses on that site url, into a pdf report.

I want to add the number of facebook likes for that url/domain, to the pdf report.

At the facebook site, I searched and found the following code sample (in javascript) that obtains this data–

Javascript code–

<h1>Number of likes-</h1>
<fb:like href="http://www.fbrell.com"></fb:like>

The output looks like this (in a regular web page)–

Number of likes-

Like 14,296 people like this. Be the first of your friends.

Note that for ‘Like’ an image with Like written on it, is shown.

I just want to put the number of people figure for number of likes, to be shown in my pdf report. Currently the java application is a desktop application, but can be converted into java web application with minimal effort. I am using the itext library for creation of pdf.

Is there some way to obtain the data as shown above, for output into the report.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:40:10+00:00Added an answer on May 26, 2026 at 5:40 am

    There is a way of calling java methods from java script an vice versa, but for this you will need to remake your desktop application to java applet(probably also need to sign this).
    So the procedure could be:
    1) Extract the data you need form web site
    2) Call from Java the JavaScript function which parses the site and return the number of likes
    3) Insert number of likes to the rest of data from web site

    Quite simple example of how calling JavaScript function from Java can be found here

    Hope this helps,

    Serhiy

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Java application that will use some Hibernate (annotated by
I am working on a Java application which does some reasoning on basic terms
I am working on a web application in Java which gets data from servlets
I'm working on a cross platform application in Java which currently works nicely on
I'm working on a Swing application (currently running on Java 1.6 update 11) which
I'm working on a Java application that uses JavaSpace. We're developing this in Eclipse.
I am working on a Java/Struts application that uses Tomcat 6.0.10. It's a typical
I'm working on a Java web application in which files will be stored in
I am working on a project which is basically a Java application with an
I'm working on a Java application which should allow users to optimize their daily

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.