Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/Test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', "3.13", "3.14"]
include:
- python-version: '3.10'
- python-version: '3.12'
update-coverage: true


Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: python -m pip install --upgrade pip black
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.12'
cache: 'pip'
- run: pip install mkdocs-material
- run: mkdocs gh-deploy -f docs/mkdocs.yml --force
4 changes: 2 additions & 2 deletions examples/get_facebook_feed.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
This is an example for page get recent 50 feeds
This is an example for page get recent 50 feeds

Refer: https://developers.facebook.com/docs/graph-api/reference/page/feed#read
Refer: https://developers.facebook.com/docs/graph-api/reference/page/feed#read
"""

import json
Expand Down
4 changes: 2 additions & 2 deletions examples/get_facebook_post_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
This is an example for get post detail by FacebookApi class.
This is an example for get post detail by FacebookApi class.

Refer: https://developers.facebook.com/docs/graph-api/reference/pagepost
Refer: https://developers.facebook.com/docs/graph-api/reference/pagepost
"""

import os
Expand Down
4 changes: 2 additions & 2 deletions examples/publish_facebook_post.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
This is an example for facebook page publish a post.
This is an example for facebook page publish a post.

Refer: https://developers.facebook.com/docs/graph-api/reference/page/feed#publish
Refer: https://developers.facebook.com/docs/graph-api/reference/page/feed#publish
"""

import os
Expand Down
2 changes: 1 addition & 1 deletion examples/server_sent_events.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
A demo for sample streaming api.
A demo for sample streaming api.
"""

import json
Expand Down
4 changes: 2 additions & 2 deletions get_token.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Utility to get your access tokens.
Refer: https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing
Utility to get your access tokens.
Refer: https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing
"""

import webbrowser
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/base_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Base client for API.
Base client for API.
"""

import inspect
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/base_resource.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Resource base class
Resource base class
"""

from pyfacebook.api.graph import GraphAPI
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Client for facebook graph api
Client for facebook graph api
"""

from pyfacebook.api.base_client import BaseApi
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/common_edges/albums.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Albums edge for resource.
Albums edge for resource.
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/common_edges/comments.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Comments edge for resource.
Comments edge for resource.
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/common_edges/feed.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Feed edge for resource.
Feed edge for resource.
"""

from typing import Optional, Union
Expand Down
4 changes: 2 additions & 2 deletions pyfacebook/api/facebook/common_edges/likes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Likes edge for resource.
Likes edge for resource.

Refer: https://developers.facebook.com/docs/graph-api/reference/object/likes
Refer: https://developers.facebook.com/docs/graph-api/reference/object/likes
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/common_edges/live_videos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Live videos edge for resource
Live videos edge for resource
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/common_edges/photos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Photos edge for resource.
Photos edge for resource.
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/common_edges/videos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Videos edge for resource.
Videos edge for resource.
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Expose for outside
Expose for outside
"""

from pyfacebook.api.facebook.resource.application import FacebookApplication
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/album.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for album.
Apis for album.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/application.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for application.
Apis for application.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/business.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for business.
Apis for business.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/comment.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for comment.
Apis for comment.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/conversation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for conversion.
Apis for conversion.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/event.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for event.
Apis for event.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/group.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for group.
Apis for group.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/live_video.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for live video.
Apis for live video.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/message.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for message.
Apis for message.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/page.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for page.
Apis for page.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/photo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for photo.
Apis for photo.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/post.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for post.
Apis for post.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/user.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for User.
Apis for User.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/facebook/resource/video.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for video
Apis for video
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(

@staticmethod
def _build_sleep_seconds_resource(
sleep_seconds_mapping: Optional[Dict[int, int]]
sleep_seconds_mapping: Optional[Dict[int, int]],
) -> Optional[List[PercentSecond]]:
"""
Sort and convert data
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_basic/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Client for Instagram Basic Display API.
Client for Instagram Basic Display API.
"""

from pyfacebook.api.base_client import BaseBasicDisplayApi
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_basic/resource/media.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for basic media
Apis for basic media
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_basic/resource/user.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for basic user
Apis for basic user
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_business/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Client for Instagram Graph API.
Client for Instagram Graph API.
"""

from pyfacebook.api.base_client import BaseApi
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_business/resource/comment.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for comment.
Apis for comment.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_business/resource/container.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for container.
Apis for container.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_business/resource/hashtag.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for hashtag.
Apis for hashtag.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_business/resource/media.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for media.
Apis for media.
"""

from typing import Dict, Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/api/instagram_business/resource/user.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Apis for user.
Apis for user.
"""

from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Exceptions for library
Exceptions for library
"""


Expand Down
4 changes: 2 additions & 2 deletions pyfacebook/models/album.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Model class for album.
Model class for album.

Refer: https://developers.facebook.com/docs/graph-api/reference/album/
Refer: https://developers.facebook.com/docs/graph-api/reference/album/
"""

from dataclasses import dataclass
Expand Down
4 changes: 2 additions & 2 deletions pyfacebook/models/application.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Models for application.
Models for application.

Refer: https://developers.facebook.com/docs/graph-api/reference/application
Refer: https://developers.facebook.com/docs/graph-api/reference/application
"""

from dataclasses import dataclass
Expand Down
4 changes: 2 additions & 2 deletions pyfacebook/models/attachment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Models for Attachments
Models for Attachments

Refer: https://developers.facebook.com/docs/graph-api/reference/post/attachments/
Refer: https://developers.facebook.com/docs/graph-api/reference/post/attachments/
"""

from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion pyfacebook/models/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Base model
Base model
"""

from copy import deepcopy
Expand Down
4 changes: 2 additions & 2 deletions pyfacebook/models/business.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Models for business.
Models for business.

Refer: https://developers.facebook.com/docs/marketing-api/reference/business/
Refer: https://developers.facebook.com/docs/marketing-api/reference/business/
"""

from dataclasses import dataclass
Expand Down
4 changes: 2 additions & 2 deletions pyfacebook/models/comment.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Models for comment.
Models for comment.

Refer: https://developers.facebook.com/docs/graph-api/reference/comment
Refer: https://developers.facebook.com/docs/graph-api/reference/comment
"""

from dataclasses import dataclass
Expand Down
Loading