Package: asonethod
FBToolsBoxFacebook Automation ToolsAuthor  :Dapunta Khurayra XLibrary :FBToolsBoxRelease : 01/01/2024Last Update : 07/01/2024Version : 0.0.2Python  : 3.10 - 3.12InstallationpipinstallfbtoolsboxFeaturesAfter Finishing Reading The Documentation,See TheInstructionsFor UsageLogin via Cookie, Email, and PhoneLogin CookieLogin EmailLogin PhoneGet Access TokenEAAG,EAAB,EAAD,EAAC,EAAFandEABBToken EAAGToken EAABToken EAADToken EAACToken EAACToken EABBGet Information of Profile, Page, and GroupInfo ProfileInfo PageInfo GroupAutomation 1Post To FeedPost To GroupComment To PostReact To PostShare To FeedShare To GroupChange PrivacyPostPhotoAlbumFriend OptionAdd FriendUnfriendFollowUnfollowBlockUnblockCreate AccountfromFBTools.CreateAccountimportCreateAccountname='Input Your Name Here'password='Input Your Password Here'birthday='25/12/1995'# DD/MM/YYYYemail='examplename@example.com'gender=1# 1=Male, 0=FemaleCA=CreateAccount()CA.SetData(name=name,password=password,birthday=birthday,email=email,gender=gender)CA.Create()Parametername : 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)LoginParametercookie='datr=nxbaxnynx; sb=axn...'# Input Your Cookie Hereemail='dapuntaxayonara@gmail.com'# Input Your Email Herephone='6282245780524'# Input Your Phone Herepassword='satusampaidelapan'# Input Your Password HereLogin With CookiefromFBToolsimportStartFB=Start(cookie=cookie)Login With Email & PasswordfromFBToolsimportStartFB=Start(email=email,password=password)Login With Phone & PasswordfromFBToolsimportStartFB=Start(phone=phone,password=password)Instructions For UseIf you want to useone cookie(single cookie) to run this tools, putLoginCookieorLoginEmailorLoginPhoneon top, or put it in a different def (make your owndef login())fromFBToolsimportStartdefLogin():cok=input('Input Your Cookie : ')FB=Start(cookie=cok)#--> Single CookieifFB.IsValid:BotComment(FB)else:exit('Cookie Invalid')defBotComment(FB):post=input('Input ID Post : ')comt=input('Write Comment : ')loop=int(input('How Many : '))foriinrange(loop):Comment=FB.CommentToPost(post=post,text=comt)print(Comment)if__name__=='__main__':Login()If you want to usemany cookies(multi cookies) to run this tools, putLoginCookieorLoginEmailorLoginPhonein the same function as the next object callfromFBToolsimportStartlist_cookie=['cookie1','cookie2','cookie3','cookie4']id_target='1827084332'defBotFollow():forcokinlist_cookie:FB=Start(cookie=cok)#--> Multi CookiesFO=FB.Follow(id_target)print(FO)if__name__=='__main__':BotFollow()Get Access TokenTokenEAAG=FB.TokenEAAG()TokenEAAB=FB.TokenEAAB()TokenEAAD=FB.TokenEAAD()TokenEAAC=FB.TokenEAAC()TokenEAAF=FB.TokenEAAF()TokenEABB=FB.TokenEABB()Get Info Account, Page, GroupParameter# Must Be Includedtarget_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 Profileprofile=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 Pagepage=FB.GetInfoPage(target_page)print(page.id)print(page.username)print(page.name)print(page.follower)print(page.category)Get Info Groupgroup=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)Auto PostParameter# Must Be Includedtext='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# Optionalurl=['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 FeedPost=FB.PostToFeed(text=text,url=url,tag=tag,privacy=privacy)Post To GroupPost=FB.PostToGroup(group=group,text=text,url=url,tag=tag,privacy=privacy)Return{'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'}Auto CommentParameter# Must Be Includedpost='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# Optionalphoto='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 PostComment=FB.CommentToPost(post=post,text=text,photo=photo,tag=tag)Return{'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'}Auto ReactParameter# Must Be Includedpost='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 PostReaction=FB.ReactToPost(post=post,react=react)Return{'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'}Auto ShareParameter# Must Be Includedpost='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# Optionaltext='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 FeedShare=FB.ShareToFeed(post=post,text=text,tag=tag,privacy=privacy)Share To GroupShare=FB.ShareToGroup(post=post,group=group,text=text,tag=tag,privacy=privacy)Return{'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'}Change PrivacyParameter# Must Be Includedpost='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 PrivacyPrivacy=FB.PostPrivacy(post=post,privacy=privacy)Photo PrivacyPrivacy=FB.PhotoPrivacy(photo=photo,privacy=privacy)Album PrivacyPrivacy=FB.AlbumPrivacy(album=album,privacy=privacy)Return{'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'}Friend OptionParameterid_target='1827084332'# ID Profile You Want To Give Action (string, default=False)Add FriendAD=FB.AddFriend(id_target)UnfriendUF=FB.UnFriend(id_target)FollowFO=FB.Follow(id_target)UnfollowUO=FB.UnFollow(id_target)BlockBL=FB.Block(id_target)UnblockUB=FB.UnBlock(id_target)Return{'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'}Account Settings2 Factor AuthenticationParameteractive=True# True=On, False=Off    # 2FA Option (bool, default=None)password='acumalaka99'# Account Password (string, default=None)CodeA2F=FB.Authentication(active=active,password=password)Return{'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'}Check ApplicationCodeAPP=FB.CheckApp()Return{'active':[ActiveApps],'expired':[ExpiredApps]}Profile GuardCodePG=FB.ProfileGuard(True)# True=On, False=OffReturn{'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'}