Metadata-Version: 1.1
Name: Facebook-PyBot
Version: 0.6a14
Summary: This is an Unofficial Facebook bot API in python. Facebook Bots can be build using this library.
Home-page: https://github.com/hundredeir/Facebook_PyBot
Author: hundredeir
Author-email: hundredeir@protonmail.com
License: GPL3
Description: Readme:
        
        # Project Title
        
        Facebook_PyBot
        
        ## Description
        This is an Unofficial Facebook bot API in python. Facebook Bots can be build using this library.
        
        
        ## Installing
        Using pip:
        
        
        	pip install Facebook_PyBot
        
        Or install from the source with:
        
        
        	$ git clone https://github.com/hundredeir/Facebook_PyBot
        	$ cd Facebook_Pybot
        	$ python setup.py install
        
        ## Getting Started
        
        First of all you have to create an App and a page on facebook platform.
        But, before you create them. We should first setup the webhook.
        
        create a new script and write:
        
        
        	import os
        	from facebook import webhook
        
        then create a new Verify Token; It can be alphanumeric. And store it in a variable named.
        
        	Token="user generated token"
        
        Now, add anothers lines to the script
        
        	PORT = int(os.environ.get('PORT', '5000'))
        	webhook.startServer(Verify_Token=Token,port=PORT)
        
        
        Tip:
        >For the non initiated you can use a heroku service for hosting your bots. Which provides to host the app and also comes with a free plan.
        
        >Guide for setting up hosting is given here https://devcenter.heroku.com/articles/getting-started-with-python#introduction
        
        >Note: Since, we are using cherrpy instead of gunicorn. You only to type the line below in your procfile
        
        	web: python yourscript.py
        
        
        Now, you can go ahead and create a Facebook page and App
        
        Facebook provides a guide for that:	https://developers.facebook.com/docs/messenger-platform/guides/setup
        
        
        After the verification is done, You can create your script torun bots. A few examples are given in the repository
        
        ### List of available methods
        
        1. send_text(User_id, message, notification_type)
        2. send_attachment(User_id, type, url, file, notification_type)
        3. sender_action(User_id, action)
        4. get_UserInfo(User_id)
        5. sendButton_template(User_id, text, Button_1, Button_2, Button_3)
        6. sendGeneric_Template(User_id, *args)
        7. sendList_template(User_id, top_element_style, *args)
        8. button(type, title, url, payload, webview_height)	//Generates payload for button
        9. element(title, subtitle, image_url, *args)		//Generates payload for an element for Template
        
        Note: This wrapper is still in alpha. Even though everything is working but things may change for the improvement of the module.
        
        A wiki is in work in progress
        
Keywords: Facebook Bot API Wrapper Python
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Internet
Classifier: Programming Language :: Python
