Extracting friends' likes data of facebook [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I am making a tool that will predict the likes on a certain post using the data of friends likes using information retrieval and machine learning but for that I need the data.Can anyone help me with how to get the data of my friends likes.I just want to extract which friend has likes which post?

It is easy. Just login into your website with certain permission like user_friends (for now you can try it in graph api explorer) and then you can find likes of any posts of your friends with this code:
FB.api(
'/me',
'GET',
{"fields":"id,name,friends{likes,name}"},
function(response) {
// Insert your code here
}
);
For now, you can try the following query in graph api explorer and check if that is what you want:
me?fields=id,name,friends{likes,name}

Related

Making a request to end points wrong [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I submitted my project about fetching popular movies data in Udacity, and when i saw my review there was one thing to change, "The end points are perfectly implemented and fetches the correct result every time a request is made. But there is a small problem that instead of making a request to end point top_rated you are making a request to vote_average which makes it fetch wrong result!" But when i change to top_rated, the app doesn't fetch at all what is the problem? I don't get it, it fetches perfectly like this,And I don't see in the moviesDB nothing in JSON that says top_rated..
ScreeenShot
Information about the Project>> https://docs.google.com/document/d/1ZlN1fUsCSKuInLECcJkslIqvpKlP7jWL2TP9m6UiA6I/pub?embedded=true
My project >> https://drive.google.com/open?id=1wxYsxio2kbo44anndE9_93h13pWKTk0J
What does your json look like thats coming back from the url.
It looks like you also never make a request to
http://api.themoviedb.org/3/movie/popular?api_key=[YOUR_API_KEY]
based on your code and the project it seems like you need to fetch the top rated, then add it to your movie object.
in the project description look for Stage 1 - API Hints

I would like to make an invice in java using netbeans 8 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
My question is this that i want to make an invice or we can say bill for our customer , so that now i want to make an invice that has a special style it mean customer logos,address
like this and then i want to print it directly by printer devices so plz can anyone help me .
I use netbeas 8 IDE .
You could create a report, using iReport, and send data to fill it. All data can be organized in a model report, like images, grid (sub-report) with monetary values, bar-codes, etc...
http://community.jaspersoft.com/wiki/ireport-designer-tutorials-help

How can i import some information result in website to my program [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm working on a project (java) that search for whois information for websites, so I started searching for a good websites that provides information about whois lookup, it could be easy for me if I find xml service.
This is the
the site that provides the information I want to get all the result to my program .
Somone have an idea ?
first step: to load
InputStream in = new URL("http://toolbar.netcraft.com/site_report?url=http://louisville.edu").openStream();
String content=IOUtils.toString(in);
in.close();
Second step: parse XML: use DOM, read some tutorial
for example: DOM XML Parser Example

How to automatically retweet a twitter page? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How to automate the task of retweetsof a page: twitter.com/promotional/sample_page in such a way that whenever there is tweet posted on twitter from that page then the automated script retweeted from my twitter account twitter.com/demo-account/ .
Can it be implemented using python or java?
Following the attached link:
http://www.techcovered.org/how-to-create-your-own-twitter-auto-retweet-bot/
You can easily do this in python using TwitterAPI.
The steps are basically:
Authenticate
from TwitterAPI import TwitterAPI api = TwitterAPI(consumer_key,
consumer_secret, access_token_key, access_token_secret)
Grab the tweet you want to retweet
Tweet it
x = api.request('statuses/update', {'status': the tweets text})
print(x.status_code)
It is quite straight forward, I won't spoil it for you posting the full working code.

Search or filter JTable on button click [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How can I perform a search in JTable?
My CSV file contains:
stdid 001
stdname monish
dob 03/5/1789
And similar records for the rest of the file. I am able to bind using CSV Parser and get data into JTable. I want to perform a search on it the table using input from a JTextField. How can I perform this?
You can use a RowFilter/RowSorter. You can read more at Sorting and Filtering from the How to use Tables tutorial.
You can can also see a working example in the question posted here.
The accepted answer also provides a solution for case-insensitive filtering, if you're interested in that functionality

Categories