saurabh-deochake / comp-networks-project Goto Github PK
View Code? Open in Web Editor NEWSemester project for the course CS552 Computer Networks
License: GNU General Public License v3.0
Semester project for the course CS552 Computer Networks
License: GNU General Public License v3.0
I want to parse json returned by graph API and get the event related fields. But, it gives me the following error on with open(fb.get_data(data)) as data_file.
If we log out from Facebook or try running facebook_graph.py after a gap of a few days, FB api throws following error:
facebook.GraphAPIError: Error validating access token: Session has expired on Friday, 07-Apr-17 23:00:00 PDT. The current time is Thursday, 13-Apr-17 19:46:27 PDT.
Need to figure out a way to refresh access token or a workaround to fool FB API in thinking that we never logged out. THINK!
To check a friend list or a wall post by a friend, we need to check /user_id node of Graph API but unless that user is logged into our app or has used our app on Facebook app platform (app is already created by the name "Evently friends") we cannot fetch any information about that friend.
We somehow have to use issue number #5 to make sure user is registered to our app.
Facebook Graph API gives paginated replies in JSON. Therefore, not all events will be listed in one page in JSON. The next page is mentioned in Paging section of JSON in "next" field. Cursors are also provided using "after" and "before".
We need to find a way to loop through all pages using cursors or next fields and retrieve IDs, Event Names and Attending list of all events.
If we are able to fetch tagged_location from every user who is attending an event, then we can check if the user has entered the place.
But the thing is we cannot obtain user_id of any user, let alone tagged_location on that user account,
How can we solve this?
We have to get every user that is going to register on our website to register on our Facebook app as well. We might have to see if we have to get that user registered on our Twitter/Instagram app as well.
Discussions to follow!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.