Giter Site home page Giter Site logo

facebook's People

Contributors

nabildroid avatar

Stargazers

 avatar

Watchers

 avatar  avatar

facebook's Issues

add check if user is my friend or not

in Profile add function to check whether any Profile is friend with Account or not
that helps to avoid sending sendFriendRequest to already friend

save html content of similar request in one class

for example the main page of facebook in wall class you need it in get all posts and when publish new post or event to get all notification or test if the password works
but if you save the html for example when you test password then the content ready for grab from it all posts and the form for publish and the number of unread notification

publish doesn't always works

sometimes when there's any unexpected element above the publish form, the selected form will be wrong in

$form=$this->dom("<form",1)[1];

so, we should select by dynamic way for exemple search in the content of any form until getting some indication about desire form

save all previous http request in array

facebook/oop/common.php

Lines 16 to 18 in 6154656

if($this->lastHttpRequest===[$url,$data,$headers,$responseHeader])
return $this->html;
else $this->lastHttpRequest=[$url,$data,$headers,$responseHeader];

now if you two different http request in same class you will lose the first and that wasting of data and time for sure
so if you store any http request end using in_array to check if such request it done before or not
and add parameter to our function to force any http request

Ability of executing algorithm by scheduling all the events

For example algorithm require load all user first posts then get who like it then send friend invitations to all those who liked.

So this feature will schedule all the Facebook events fetcher. And each time the code get executed, one event from the schedule will execute

fetch existing information

sometimes the information is ready to use but the fetch is called
for example when you like a page it may the page have already link to like provided when it
created but so we don't have to call fetch if the link is exist

sharing page or post to wall or event to group

i notice that there's two extra hidden input for sharing any post through it ID
<input type="hidden" name="c_src" value="share">
<input type="hidden" name="sid" value="1387663991262465">
those for sharing only page id but it's maybe works for posts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.