facepy | Facepy | REST library
kandi X-RAY | facepy Summary
kandi X-RAY | facepy Summary
Facepy makes it really easy to use Facebook's Graph API with Python
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse a signed request
- Perform a request
- Parse the response
- Retrieve a single page
- Returns the URL for the given path
- Generate an app secret proof
- Get error params
- Create a GraphAPI object for an application
- Get an OAuth access token
- Fetch user data
facepy Key Features
facepy Examples and Code Snippets
pip install facebook-sdk
import facebook
page_token = '...'
page_id = '...'
post_id = '...'
fb = facebook.GraphAPI(access_token = page_token, version="2.12")
fb.put_object(parent_object=page_id+'_'+post_id, connec
def test_get_user_facebook_data_1(self):
facebook_oauth_response = {u'name': u'Jack Jacker', u'email': u'jack@jack.jack', u'id': u'sd5Jtvtk6'}
with mock.patch('module.path.to.user_service.facepy') as mock_facepy:
mock_facepy.
posts = []
tmp = {"likerId":liker_id,"likername":liker_name}
posts.append(tmp)
Community Discussions
Trending Discussions on facepy
QUESTION
I have a post on my fb page which I need to update several times a day with data elaborated in a python script. I tried using Selenium, but it gets often stuck when saving the post hence the script gets stuck too, so I'm trying to find a way to do the job within python itself without using a web browser.
I wonder is there a way to edit a FB post using a python library such as Facepy or similar?
I'm reading the graph API reference but there are no examples to learn from, but I guess first thing is to set up the login. On the facepy github page is written that
note that Facepy does not do authentication with Facebook; it only consumes its API. To get an access token to consume the API on behalf of a user, use a suitable OAuth library for your platform
I tried logging in with BeautifulSoup
...ANSWER
Answered 2020-Dec-01 at 02:42Install the facebook
package
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install facepy
You can use facepy like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page