fbtoolsbox


Namefbtoolsbox JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/Dapunta/FBToolsBox
SummaryFacebook Tools Box
upload_time2024-01-07 14:56:40
maintainer
docs_urlNone
authorDapunta Khurayra X
requires_python>=3.10
licenseMIT
keywords facebook-scraper facebook-parser facebook-scraper-without-apikey facebook-tools facebook
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # FBToolsBox
Facebook Automation Tools  
Author  : [**Dapunta Khurayra X**](https://www.facebook.com/Dapunta.Khurayra.X)  
Library : [**FBToolsBox**](https://github.com/Dapunta/FBToolsBox)  
Release : 01/01/2024  
Last Update : 07/01/2024  
Version : 0.0.2  
Python  : 3.10 - 3.12  
<br>  
<br>

## Installation
```python
pip install fbtoolsbox
```
<br>  
<br>  
<br>

## Features
After Finishing Reading The Documentation,  
See The [**Instructions**](#instructions-for-use) For Usage
1. Login via Cookie, Email, and Phone
   - [Login Cookie](#login-with-cookie)
   - [Login Email](#login-with-email--password)
   - [Login Phone](#login-with-phone--password)
2. Get Access Token `EAAG`, `EAAB`, `EAAD`, `EAAC`, `EAAF` and `EABB`
   - [Token EAAG](#get-access-token)
   - [Token EAAB](#get-access-token)
   - [Token EAAD](#get-access-token)
   - [Token EAAC](#get-access-token)
   - [Token EAAC](#get-access-token)
   - [Token EABB](#get-access-token)
3. Get Information of Profile, Page, and Group
   - [Info Profile](#get-info-profile)
   - [Info Page](#get-info-page)
   - [Info Group](#get-info-group)
4. Automation 1 
   - [Post To Feed](#post-to-feed)
   - [Post To Group](#post-to-group)
   - [Comment To Post](#comment-to-post)
   - [React To Post](#react-to-post)
   - [Share To Feed](#share-to-feed)
   - [Share To Group](#share-to-group)
5. Change Privacy
   - [Post](#post-privacy)
   - [Photo](#photo-privacy)
   - [Album](#album-privacy)
6. Friend Option
   - [Add Friend](#friend-option)
   - [Unfriend](#friend-option)
   - [Follow](#friend-option)
   - [Unfollow](#friend-option)
   - [Block](#friend-option)
   - [Unblock](#friend-option)
<br>  
<br>
<br>

## Create Account
```python
from FBTools.CreateAccount import CreateAccount

name = 'Input Your Name Here'
password = 'Input Your Password Here'
birthday = '25/12/1995' # DD/MM/YYYY
email = 'examplename@example.com'
gender = 1 # 1=Male, 0=Female
CA = CreateAccount()
CA.SetData(name=name, password=password, birthday=birthday, email=email, gender=gender)
CA.Create()
```
Parameter  
>name : Name You Want To Create (string, default=None)  
password : Password You Want To Create (string, default=None)  
birthday : Birth Date You Want To Set (string, default=None)  
email : Email You Want To Register (string, default=None)  
phone : Phone You Want To Register (string, default=None)  
gender : Gender You Want To Set (bool, default=0 -> female)  
<br> 
<br> 
<br>

## Login

#### Parameter
```python
cookie   = 'datr=nxbaxnynx; sb=axn...' # Input Your Cookie Here
email    = 'dapuntaxayonara@gmail.com' # Input Your Email Here
phone    = '6282245780524'             # Input Your Phone Here
password = 'satusampaidelapan'         # Input Your Password Here
```

#### Login With Cookie
```python
from FBTools import Start
FB = Start(cookie=cookie)
```

#### Login With Email & Password
```python
from FBTools import Start
FB = Start(email=email, password=password)
```

#### Login With Phone & Password
```python
from FBTools import Start
FB = Start(phone=phone, password=password)
```
<br>  
<br>  
<br>

## Instructions For Use
If you want to use **one cookie** (single cookie) to run this tools, put [```LoginCookie```](#login-with-cookie) or [```LoginEmail```](#login-with-email--password) or [```LoginPhone```](#login-with-phone--password) on top, or put it in a different def (make your own ```def login()```)
```python
from FBTools import Start

def Login():
    cok = input('Input Your Cookie : ')
    FB = Start(cookie=cok) #--> Single Cookie
    if FB.IsValid:
        BotComment(FB)
    else:
        exit('Cookie Invalid')

def BotComment(FB):
    post = input('Input ID Post : ')
    comt = input('Write Comment : ')
    loop = int(input('How Many : '))
    for i in range(loop):
        Comment = FB.CommentToPost(post=post, text=comt)
        print(Comment)

if __name__ == '__main__':
   Login()
```
If you want to use **many cookies** (multi cookies) to run this tools, put [```LoginCookie```](#login-with-cookie) or [```LoginEmail```](#login-with-email--password) or [```LoginPhone```](#login-with-phone--password) in the same function as the next object call                  
```python
from FBTools import Start

list_cookie = ['cookie1','cookie2','cookie3','cookie4']
id_target   = '1827084332'

def BotFollow():
   for cok in list_cookie:
      FB = Start(cookie=cok) #--> Multi Cookies
      FO = FB.Follow(id_target)
      print(FO)

if __name__ == '__main__':
   BotFollow()
```
<br>  
<br>  
<br>

## Get Access Token
```python
TokenEAAG = FB.TokenEAAG()
TokenEAAB = FB.TokenEAAB()
TokenEAAD = FB.TokenEAAD()
TokenEAAC = FB.TokenEAAC()
TokenEAAF = FB.TokenEAAF()
TokenEABB = FB.TokenEABB()
```
<br>  
<br>  
<br>

## Get Info Account, Page, Group

#### Parameter
```python
# Must Be Included
target_profile = '100000198243102'               # ID/URL Profile Target (string, default=False)
target_page    = '100044426739616'               # ID/URL Page Target (string, default=False)
target_group   = '1824553201274304'              # ID/URL Group Target (string, default=False)
```

#### Get Info Profile
```python
profile = FB.GetInfoProfile(target_profile)
print(profile.id)
print(profile.username)
print(profile.name)
print(profile.short_name)
print(profile.gender)
print(profile.work)
print(profile.education)
print(profile.current_city)
print(profile.hometown)
print(profile.relationship)
print(profile.birthday)
print(profile.language)
print(profile.website)
print(profile.github)
print(profile.instagram)
print(profile.friend)
print(profile.follower)
```

#### Get Info Page
```python
page = FB.GetInfoPage(target_page)
print(page.id)
print(page.username)
print(page.name)
print(page.follower)
print(page.category)
```

#### Get Info Group
```python
group = FB.GetInfoGroup(target_group)
print(group.id)
print(group.username)
print(group.name)
print(group.privacy)
print(group.membership)
print(group.admin)
print(group.moderator)
print(group.member)
print(group.new_member)
print(group.post_last_day)
print(group.post_last_month)
print(group.visibility)
print(group.history)
print(group.description)
```
<br>  
<br>  
<br>

## Auto Post

#### Parameter
```python
# Must Be Included
text    = 'Hello! Test Bot Post'                             # Caption (string, default=None)
group   = '1824553201274304'                                 # Group ID (string, default=None)
# 'group' must include if post to group
# You must post at least 1 text or 1 photo

# Optional
url     = ['https://e.top4top.io/p_2916o42201.jpg']          # Picture URL (list, default=None)
tag     = ['1827084332','100000415317575','100000200420913'] # Friend ID You Want To Tag (list, default=None)
privacy = 1 # 1=Public, 2=Friends, 3=OnlyMe                  # Post Privacy (int, default=None)
```

#### Post To Feed
```python
Post = FB.PostToFeed(text=text, url=url, tag=tag, privacy=privacy)
```

#### Post To Group
```python
Post = FB.PostToGroup(group=group, text=text, url=url, tag=tag, privacy=privacy)
```

#### Return
```python
{'status':'success','id':idpost,'message':None}
{'status':'pending','id':idpost,'message':'Pending Post'}
{'status':'failed','id':None,'message':'cookie invalid'}
{'status':'failed','id':None,'message':"Don't Create Same/Duplicate Post"}
{'status':'failed','id':None,'message':'Your Account Restricted To Post In Group'}
{'status':'failed','id':None,'message':'Terjadi Kesalahan'}
```
<br>  
<br>  
<br>

## Auto Comment

#### Parameter
```python
# Must Be Included
post   = 'Facebook.com/6929777330379375'                    # ID/URL Post Target (string, default=None)
text   = 'Hello! Test Bot Comment'                          # Caption (string, default=None)
# You must comment at least 1 text or 1 photo

# Optional
photo  = 'https://e.top4top.io/p_2916o42201.jpg'            # Picture URL (string, default=None)
tag    = ['1827084332','100000415317575','100000200420913'] # Friend ID You Want To Tag (list, default=None)
```

#### Comment To Post
```python
Comment = FB.CommentToPost(post=post, text=text, photo=photo, tag=tag)
```

#### Return
```python
{'status':'success','id':comment_id,'message':None}
{'status':'failed','id':None,'message':'cookie invalid'}
{'status':'failed','id':None,'message':'Spam Or Something Else'}
{'status':'failed','id':None,'message':'Terjadi Kesalahan'}
```
<br>  
<br>  
<br>

## Auto React

#### Parameter
```python
# Must Be Included
post   = 'Facebook.com/6929777330379375'                            # ID/URL Post Target (string, default=None)
react  = 5 # 1=Like, 2=Love, 3=Haha, 4=Wow, 5=Care, 6=Sad, 7=Angry  # Reaction Type (int, default=2=Love)
```

#### React To Post
```python
Reaction = FB.ReactToPost(post=post, react=react)
```

#### Return
```python
{'status':'success','react_type':react_type,'message':None}
{'status':'failed','react_type':react_type,'message':'Spam Or Something Else'}
{'status':'failed','react_type':react_type,'message':'Terjadi Kesalahan'}
```
<br>  
<br>  
<br>

## Auto Share

#### Parameter
```python
# Must Be Included
post    = 'Facebook.com/6929777330379375'                    # ID/URL Post You Want To Share (string, default=None)
group   = '1824553201274304'                                 # Group ID (string, default=None)
# 'group' must include if share to group

# Optional
text    = 'Hello! Test Bot Share'                            # Caption (string, default=None)
tag     = ['1827084332','100000415317575','100000200420913'] # Friend ID You Want To Tag (list, default=None)
privacy = 1 # 1=Public, 2=Friends, 3=OnlyMe                  # Share Privacy (int, default=None)
```

#### Share To Feed
```python
Share = FB.ShareToFeed(post=post, text=text, tag=tag, privacy=privacy)
```

#### Share To Group
```python
Share = FB.ShareToGroup(post=post, group=group, text=text, tag=tag, privacy=privacy)
```

#### Return
```python
{'status':'success','id':idshare,'message':None}
{'status':'pending','id':idshare,'message':'Pending Post'}
{'status':'failed','id':None,'message':"Don't Create Same/Duplicate Post"}
{'status':'failed','id':None,'message':'post has been deleted or there is an error'}
{'status':'failed','id':None,'message':'Your Account Restricted To Post In Group'}
{'status':'failed','id':None,'message':'Terjadi Kesalahan'}
```
<br>  
<br>  
<br>

## Change Privacy

#### Parameter
```python
# Must Be Included
post    = '10217059556200871'                  # ID/URL Post  You Want To Change Privacy (string, default=None)
photo   = '10214228940637251'                  # ID/URL Photo You Want To Change Privacy (string, default=None)
album   = '146803788687013'                    # ID/URL Album You Want To Change Privacy (string, default=None)
privacy = 3 # 1=Public, 2=Friends, 3=OnlyMe    # Selected Privacy (int, default=3)
```

#### Post Privacy
```python
Privacy = FB.PostPrivacy(post=post, privacy=privacy)
```

#### Photo Privacy
```python
Privacy = FB.PhotoPrivacy(photo=photo, privacy=privacy)
```

#### Album Privacy
```python
Privacy = FB.AlbumPrivacy(album=album, privacy=privacy)
```

#### Return
```python
{'status':'success','id':id,'privacy':privacy,'message':None}
{'status':'failed','id':id,'privacy':None,'message':'Spam Or Something'}
{'status':'failed','id':None,'privacy':None,'message':'Something Went Wrong'}
```
<br>  
<br>  
<br>

## Friend Option

### Parameter
```python
id_target = '1827084332'    # ID Profile You Want To Give Action (string, default=False)
```

#### Add Friend
```python
AD = FB.AddFriend(id_target)
```

#### Unfriend
```python
UF = FB.UnFriend(id_target)
```

#### Follow
```python
FO = FB.Follow(id_target)
```

#### Unfollow
```python
UO = FB.UnFollow(id_target)
```

#### Block
```python
BL = FB.Block(id_target)
```

#### Unblock
```python
UB = FB.UnBlock(id_target)
```

#### Return
```python
{'status':'success','id':id_target,'message':None}
{'status':'failed','id':id_target,'message':'Account Spam or Cookie Invalid'}
{'status':'failed','id':None,'message':'ID Not Found or Cookie Invalid'}
```
<br>  
<br>  
<br>

## Account Settings
<br>

### 2 Factor Authentication
`Parameter`
```python
active   = True # True=On, False=Off    # 2FA Option (bool, default=None)
password = 'acumalaka99'                # Account Password (string, default=None)
```
`Code`
```python
A2F = FB.Authentication(active=active, password=password)
```
`Return`
```python
{'status':'success','key':Key2FA,'recovery':RecoveryCode,'message':None}
{'status':'failed','key':None,'recovery':None,'message':'Wrong Password'}
{'status':'failed','key':None,'recovery':None,'message':'Account Spam'}
{'status':'failed','key':None,'recovery':None,'message':'Failed To Authenticate'}
{'status':'failed','key':None,'recovery':None,'message':'Unknown Error'}
```
<br>

### Check Application
`Code`
```python
APP = FB.CheckApp()
```
`Return`
```python
{'active':[ActiveApps],'expired':[ExpiredApps]}
```
<br>

### Profile Guard
`Code`
```python
PG = FB.ProfileGuard(True) # True=On, False=Off
```
`Return`
```python
{'status':'active','message':None}
{'status':'inactive','message':None}
{'status':'failed','message':'Token EAAG Invalid, Please Remove Your 2FA'}
{'status':'failed','message':'Error, Something Went Wrong'}
```
<br>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Dapunta/FBToolsBox",
    "name": "fbtoolsbox",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "facebook-scraper,facebook-parser,facebook-scraper-without-apikey,facebook-tools,facebook",
    "author": "Dapunta Khurayra X",
    "author_email": "dapuntaxd@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d4/80/1794ccd2a683038d719e8ebbb82fe09d238d632424975dee8da93ef9aa03/fbtoolsbox-0.0.2.tar.gz",
    "platform": null,
    "description": "# FBToolsBox\r\nFacebook Automation Tools  \r\nAuthor  : [**Dapunta Khurayra X**](https://www.facebook.com/Dapunta.Khurayra.X)  \r\nLibrary : [**FBToolsBox**](https://github.com/Dapunta/FBToolsBox)  \r\nRelease : 01/01/2024  \r\nLast Update : 07/01/2024  \r\nVersion : 0.0.2  \r\nPython  : 3.10 - 3.12  \r\n<br>  \r\n<br>\r\n\r\n## Installation\r\n```python\r\npip install fbtoolsbox\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Features\r\nAfter Finishing Reading The Documentation,  \r\nSee The [**Instructions**](#instructions-for-use) For Usage\r\n1. Login via Cookie, Email, and Phone\r\n   - [Login Cookie](#login-with-cookie)\r\n   - [Login Email](#login-with-email--password)\r\n   - [Login Phone](#login-with-phone--password)\r\n2. Get Access Token `EAAG`, `EAAB`, `EAAD`, `EAAC`, `EAAF` and `EABB`\r\n   - [Token EAAG](#get-access-token)\r\n   - [Token EAAB](#get-access-token)\r\n   - [Token EAAD](#get-access-token)\r\n   - [Token EAAC](#get-access-token)\r\n   - [Token EAAC](#get-access-token)\r\n   - [Token EABB](#get-access-token)\r\n3. Get Information of Profile, Page, and Group\r\n   - [Info Profile](#get-info-profile)\r\n   - [Info Page](#get-info-page)\r\n   - [Info Group](#get-info-group)\r\n4. Automation 1 \r\n   - [Post To Feed](#post-to-feed)\r\n   - [Post To Group](#post-to-group)\r\n   - [Comment To Post](#comment-to-post)\r\n   - [React To Post](#react-to-post)\r\n   - [Share To Feed](#share-to-feed)\r\n   - [Share To Group](#share-to-group)\r\n5. Change Privacy\r\n   - [Post](#post-privacy)\r\n   - [Photo](#photo-privacy)\r\n   - [Album](#album-privacy)\r\n6. Friend Option\r\n   - [Add Friend](#friend-option)\r\n   - [Unfriend](#friend-option)\r\n   - [Follow](#friend-option)\r\n   - [Unfollow](#friend-option)\r\n   - [Block](#friend-option)\r\n   - [Unblock](#friend-option)\r\n<br>  \r\n<br>\r\n<br>\r\n\r\n## Create Account\r\n```python\r\nfrom FBTools.CreateAccount import CreateAccount\r\n\r\nname = 'Input Your Name Here'\r\npassword = 'Input Your Password Here'\r\nbirthday = '25/12/1995' # DD/MM/YYYY\r\nemail = 'examplename@example.com'\r\ngender = 1 # 1=Male, 0=Female\r\nCA = CreateAccount()\r\nCA.SetData(name=name, password=password, birthday=birthday, email=email, gender=gender)\r\nCA.Create()\r\n```\r\nParameter  \r\n>name : Name You Want To Create (string, default=None)  \r\npassword : Password You Want To Create (string, default=None)  \r\nbirthday : Birth Date You Want To Set (string, default=None)  \r\nemail : Email You Want To Register (string, default=None)  \r\nphone : Phone You Want To Register (string, default=None)  \r\ngender : Gender You Want To Set (bool, default=0 -> female)  \r\n<br> \r\n<br> \r\n<br>\r\n\r\n## Login\r\n\r\n#### Parameter\r\n```python\r\ncookie   = 'datr=nxbaxnynx; sb=axn...' # Input Your Cookie Here\r\nemail    = 'dapuntaxayonara@gmail.com' # Input Your Email Here\r\nphone    = '6282245780524'             # Input Your Phone Here\r\npassword = 'satusampaidelapan'         # Input Your Password Here\r\n```\r\n\r\n#### Login With Cookie\r\n```python\r\nfrom FBTools import Start\r\nFB = Start(cookie=cookie)\r\n```\r\n\r\n#### Login With Email & Password\r\n```python\r\nfrom FBTools import Start\r\nFB = Start(email=email, password=password)\r\n```\r\n\r\n#### Login With Phone & Password\r\n```python\r\nfrom FBTools import Start\r\nFB = Start(phone=phone, password=password)\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Instructions For Use\r\nIf you want to use **one cookie** (single cookie) to run this tools, put [```LoginCookie```](#login-with-cookie) or [```LoginEmail```](#login-with-email--password) or [```LoginPhone```](#login-with-phone--password) on top, or put it in a different def (make your own ```def login()```)\r\n```python\r\nfrom FBTools import Start\r\n\r\ndef Login():\r\n    cok = input('Input Your Cookie : ')\r\n    FB = Start(cookie=cok) #--> Single Cookie\r\n    if FB.IsValid:\r\n        BotComment(FB)\r\n    else:\r\n        exit('Cookie Invalid')\r\n\r\ndef BotComment(FB):\r\n    post = input('Input ID Post : ')\r\n    comt = input('Write Comment : ')\r\n    loop = int(input('How Many : '))\r\n    for i in range(loop):\r\n        Comment = FB.CommentToPost(post=post, text=comt)\r\n        print(Comment)\r\n\r\nif __name__ == '__main__':\r\n   Login()\r\n```\r\nIf you want to use **many cookies** (multi cookies) to run this tools, put [```LoginCookie```](#login-with-cookie) or [```LoginEmail```](#login-with-email--password) or [```LoginPhone```](#login-with-phone--password) in the same function as the next object call                  \r\n```python\r\nfrom FBTools import Start\r\n\r\nlist_cookie = ['cookie1','cookie2','cookie3','cookie4']\r\nid_target   = '1827084332'\r\n\r\ndef BotFollow():\r\n   for cok in list_cookie:\r\n      FB = Start(cookie=cok) #--> Multi Cookies\r\n      FO = FB.Follow(id_target)\r\n      print(FO)\r\n\r\nif __name__ == '__main__':\r\n   BotFollow()\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Get Access Token\r\n```python\r\nTokenEAAG = FB.TokenEAAG()\r\nTokenEAAB = FB.TokenEAAB()\r\nTokenEAAD = FB.TokenEAAD()\r\nTokenEAAC = FB.TokenEAAC()\r\nTokenEAAF = FB.TokenEAAF()\r\nTokenEABB = FB.TokenEABB()\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Get Info Account, Page, Group\r\n\r\n#### Parameter\r\n```python\r\n# Must Be Included\r\ntarget_profile = '100000198243102'               # ID/URL Profile Target (string, default=False)\r\ntarget_page    = '100044426739616'               # ID/URL Page Target (string, default=False)\r\ntarget_group   = '1824553201274304'              # ID/URL Group Target (string, default=False)\r\n```\r\n\r\n#### Get Info Profile\r\n```python\r\nprofile = FB.GetInfoProfile(target_profile)\r\nprint(profile.id)\r\nprint(profile.username)\r\nprint(profile.name)\r\nprint(profile.short_name)\r\nprint(profile.gender)\r\nprint(profile.work)\r\nprint(profile.education)\r\nprint(profile.current_city)\r\nprint(profile.hometown)\r\nprint(profile.relationship)\r\nprint(profile.birthday)\r\nprint(profile.language)\r\nprint(profile.website)\r\nprint(profile.github)\r\nprint(profile.instagram)\r\nprint(profile.friend)\r\nprint(profile.follower)\r\n```\r\n\r\n#### Get Info Page\r\n```python\r\npage = FB.GetInfoPage(target_page)\r\nprint(page.id)\r\nprint(page.username)\r\nprint(page.name)\r\nprint(page.follower)\r\nprint(page.category)\r\n```\r\n\r\n#### Get Info Group\r\n```python\r\ngroup = FB.GetInfoGroup(target_group)\r\nprint(group.id)\r\nprint(group.username)\r\nprint(group.name)\r\nprint(group.privacy)\r\nprint(group.membership)\r\nprint(group.admin)\r\nprint(group.moderator)\r\nprint(group.member)\r\nprint(group.new_member)\r\nprint(group.post_last_day)\r\nprint(group.post_last_month)\r\nprint(group.visibility)\r\nprint(group.history)\r\nprint(group.description)\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Auto Post\r\n\r\n#### Parameter\r\n```python\r\n# Must Be Included\r\ntext    = 'Hello! Test Bot Post'                             # Caption (string, default=None)\r\ngroup   = '1824553201274304'                                 # Group ID (string, default=None)\r\n# 'group' must include if post to group\r\n# You must post at least 1 text or 1 photo\r\n\r\n# Optional\r\nurl     = ['https://e.top4top.io/p_2916o42201.jpg']          # Picture URL (list, default=None)\r\ntag     = ['1827084332','100000415317575','100000200420913'] # Friend ID You Want To Tag (list, default=None)\r\nprivacy = 1 # 1=Public, 2=Friends, 3=OnlyMe                  # Post Privacy (int, default=None)\r\n```\r\n\r\n#### Post To Feed\r\n```python\r\nPost = FB.PostToFeed(text=text, url=url, tag=tag, privacy=privacy)\r\n```\r\n\r\n#### Post To Group\r\n```python\r\nPost = FB.PostToGroup(group=group, text=text, url=url, tag=tag, privacy=privacy)\r\n```\r\n\r\n#### Return\r\n```python\r\n{'status':'success','id':idpost,'message':None}\r\n{'status':'pending','id':idpost,'message':'Pending Post'}\r\n{'status':'failed','id':None,'message':'cookie invalid'}\r\n{'status':'failed','id':None,'message':\"Don't Create Same/Duplicate Post\"}\r\n{'status':'failed','id':None,'message':'Your Account Restricted To Post In Group'}\r\n{'status':'failed','id':None,'message':'Terjadi Kesalahan'}\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Auto Comment\r\n\r\n#### Parameter\r\n```python\r\n# Must Be Included\r\npost   = 'Facebook.com/6929777330379375'                    # ID/URL Post Target (string, default=None)\r\ntext   = 'Hello! Test Bot Comment'                          # Caption (string, default=None)\r\n# You must comment at least 1 text or 1 photo\r\n\r\n# Optional\r\nphoto  = 'https://e.top4top.io/p_2916o42201.jpg'            # Picture URL (string, default=None)\r\ntag    = ['1827084332','100000415317575','100000200420913'] # Friend ID You Want To Tag (list, default=None)\r\n```\r\n\r\n#### Comment To Post\r\n```python\r\nComment = FB.CommentToPost(post=post, text=text, photo=photo, tag=tag)\r\n```\r\n\r\n#### Return\r\n```python\r\n{'status':'success','id':comment_id,'message':None}\r\n{'status':'failed','id':None,'message':'cookie invalid'}\r\n{'status':'failed','id':None,'message':'Spam Or Something Else'}\r\n{'status':'failed','id':None,'message':'Terjadi Kesalahan'}\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Auto React\r\n\r\n#### Parameter\r\n```python\r\n# Must Be Included\r\npost   = 'Facebook.com/6929777330379375'                            # ID/URL Post Target (string, default=None)\r\nreact  = 5 # 1=Like, 2=Love, 3=Haha, 4=Wow, 5=Care, 6=Sad, 7=Angry  # Reaction Type (int, default=2=Love)\r\n```\r\n\r\n#### React To Post\r\n```python\r\nReaction = FB.ReactToPost(post=post, react=react)\r\n```\r\n\r\n#### Return\r\n```python\r\n{'status':'success','react_type':react_type,'message':None}\r\n{'status':'failed','react_type':react_type,'message':'Spam Or Something Else'}\r\n{'status':'failed','react_type':react_type,'message':'Terjadi Kesalahan'}\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Auto Share\r\n\r\n#### Parameter\r\n```python\r\n# Must Be Included\r\npost    = 'Facebook.com/6929777330379375'                    # ID/URL Post You Want To Share (string, default=None)\r\ngroup   = '1824553201274304'                                 # Group ID (string, default=None)\r\n# 'group' must include if share to group\r\n\r\n# Optional\r\ntext    = 'Hello! Test Bot Share'                            # Caption (string, default=None)\r\ntag     = ['1827084332','100000415317575','100000200420913'] # Friend ID You Want To Tag (list, default=None)\r\nprivacy = 1 # 1=Public, 2=Friends, 3=OnlyMe                  # Share Privacy (int, default=None)\r\n```\r\n\r\n#### Share To Feed\r\n```python\r\nShare = FB.ShareToFeed(post=post, text=text, tag=tag, privacy=privacy)\r\n```\r\n\r\n#### Share To Group\r\n```python\r\nShare = FB.ShareToGroup(post=post, group=group, text=text, tag=tag, privacy=privacy)\r\n```\r\n\r\n#### Return\r\n```python\r\n{'status':'success','id':idshare,'message':None}\r\n{'status':'pending','id':idshare,'message':'Pending Post'}\r\n{'status':'failed','id':None,'message':\"Don't Create Same/Duplicate Post\"}\r\n{'status':'failed','id':None,'message':'post has been deleted or there is an error'}\r\n{'status':'failed','id':None,'message':'Your Account Restricted To Post In Group'}\r\n{'status':'failed','id':None,'message':'Terjadi Kesalahan'}\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Change Privacy\r\n\r\n#### Parameter\r\n```python\r\n# Must Be Included\r\npost    = '10217059556200871'                  # ID/URL Post  You Want To Change Privacy (string, default=None)\r\nphoto   = '10214228940637251'                  # ID/URL Photo You Want To Change Privacy (string, default=None)\r\nalbum   = '146803788687013'                    # ID/URL Album You Want To Change Privacy (string, default=None)\r\nprivacy = 3 # 1=Public, 2=Friends, 3=OnlyMe    # Selected Privacy (int, default=3)\r\n```\r\n\r\n#### Post Privacy\r\n```python\r\nPrivacy = FB.PostPrivacy(post=post, privacy=privacy)\r\n```\r\n\r\n#### Photo Privacy\r\n```python\r\nPrivacy = FB.PhotoPrivacy(photo=photo, privacy=privacy)\r\n```\r\n\r\n#### Album Privacy\r\n```python\r\nPrivacy = FB.AlbumPrivacy(album=album, privacy=privacy)\r\n```\r\n\r\n#### Return\r\n```python\r\n{'status':'success','id':id,'privacy':privacy,'message':None}\r\n{'status':'failed','id':id,'privacy':None,'message':'Spam Or Something'}\r\n{'status':'failed','id':None,'privacy':None,'message':'Something Went Wrong'}\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Friend Option\r\n\r\n### Parameter\r\n```python\r\nid_target = '1827084332'    # ID Profile You Want To Give Action (string, default=False)\r\n```\r\n\r\n#### Add Friend\r\n```python\r\nAD = FB.AddFriend(id_target)\r\n```\r\n\r\n#### Unfriend\r\n```python\r\nUF = FB.UnFriend(id_target)\r\n```\r\n\r\n#### Follow\r\n```python\r\nFO = FB.Follow(id_target)\r\n```\r\n\r\n#### Unfollow\r\n```python\r\nUO = FB.UnFollow(id_target)\r\n```\r\n\r\n#### Block\r\n```python\r\nBL = FB.Block(id_target)\r\n```\r\n\r\n#### Unblock\r\n```python\r\nUB = FB.UnBlock(id_target)\r\n```\r\n\r\n#### Return\r\n```python\r\n{'status':'success','id':id_target,'message':None}\r\n{'status':'failed','id':id_target,'message':'Account Spam or Cookie Invalid'}\r\n{'status':'failed','id':None,'message':'ID Not Found or Cookie Invalid'}\r\n```\r\n<br>  \r\n<br>  \r\n<br>\r\n\r\n## Account Settings\r\n<br>\r\n\r\n### 2 Factor Authentication\r\n`Parameter`\r\n```python\r\nactive   = True # True=On, False=Off    # 2FA Option (bool, default=None)\r\npassword = 'acumalaka99'                # Account Password (string, default=None)\r\n```\r\n`Code`\r\n```python\r\nA2F = FB.Authentication(active=active, password=password)\r\n```\r\n`Return`\r\n```python\r\n{'status':'success','key':Key2FA,'recovery':RecoveryCode,'message':None}\r\n{'status':'failed','key':None,'recovery':None,'message':'Wrong Password'}\r\n{'status':'failed','key':None,'recovery':None,'message':'Account Spam'}\r\n{'status':'failed','key':None,'recovery':None,'message':'Failed To Authenticate'}\r\n{'status':'failed','key':None,'recovery':None,'message':'Unknown Error'}\r\n```\r\n<br>\r\n\r\n### Check Application\r\n`Code`\r\n```python\r\nAPP = FB.CheckApp()\r\n```\r\n`Return`\r\n```python\r\n{'active':[ActiveApps],'expired':[ExpiredApps]}\r\n```\r\n<br>\r\n\r\n### Profile Guard\r\n`Code`\r\n```python\r\nPG = FB.ProfileGuard(True) # True=On, False=Off\r\n```\r\n`Return`\r\n```python\r\n{'status':'active','message':None}\r\n{'status':'inactive','message':None}\r\n{'status':'failed','message':'Token EAAG Invalid, Please Remove Your 2FA'}\r\n{'status':'failed','message':'Error, Something Went Wrong'}\r\n```\r\n<br>\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Facebook Tools Box",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Dapunta/FBToolsBox"
    },
    "split_keywords": [
        "facebook-scraper",
        "facebook-parser",
        "facebook-scraper-without-apikey",
        "facebook-tools",
        "facebook"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4801794ccd2a683038d719e8ebbb82fe09d238d632424975dee8da93ef9aa03",
                "md5": "336cc3a7c984686a739972c696b0e62a",
                "sha256": "bb656d553d307b65f0ed3fb7f2dee3d442fad68911815785168d849d025327cc"
            },
            "downloads": -1,
            "filename": "fbtoolsbox-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "336cc3a7c984686a739972c696b0e62a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 22639,
            "upload_time": "2024-01-07T14:56:40",
            "upload_time_iso_8601": "2024-01-07T14:56:40.298877Z",
            "url": "https://files.pythonhosted.org/packages/d4/80/1794ccd2a683038d719e8ebbb82fe09d238d632424975dee8da93ef9aa03/fbtoolsbox-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-07 14:56:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Dapunta",
    "github_project": "FBToolsBox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fbtoolsbox"
}
        
Elapsed time: 1.92556s