Skip to content

pawelgalerczykcat/napoleon-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook page feed scanner

Implement facebook page feed scanner.
In this case you can use simple FB Graph Api MOCK.

Use InboxItem to represent posts and comment ( subcomment ).
Prepare command for print the result

Mock

  • Feed: https://demo4003292.mockable.io/105477064851833/feed
  • Comment: https://demo4003292.mockable.io/{{$OBJECT_ID}}/comments

Example

php app app:feed 105477064851833

105477064851833 it's example FB page

╰─$ php app app:feed 105477064851833 -p                                                     
Drugi post na stronie
         Tylko jeden komentarz
---------
Testowy post pierwszy na stronie
         Pierwszy komentarz 
                 Testowa strona Drugi komentarz
                 Drugi subcoment
---------
Flat array:
105477064851833_105491108183762: Drugi post na stronie
105491108183762_105491241517082: Tylko jeden komentarz => 105477064851833_105491108183762
105477064851833_105477468185126: Testowy post pierwszy na stronie
105477468185126_105477574851782: Pierwszy komentarz  => 105477064851833_105477468185126
105477468185126_105478384851701: Testowa strona Drugi komentarz => 105477468185126_105477574851782
105477468185126_105495888183284: Drugi subcoment => 105477468185126_105477574851782

Help:

https://symfony.com/doc/4.4/console.html#console-output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages